Open Bug 1024674 Opened 10 years ago Updated 3 months ago

copyRect for ImageData or PixelArray

Categories

(Core :: DOM: Workers, defect, P5)

x86
macOS
defect

Tracking

()

People

(Reporter: mbx, Unassigned)

References

Details

(Whiteboard: [Shumway])

A very popular use case for Flash is to write pixel art games. This is made possible by a fast copyPixels method on BitmapData class: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/BitmapData.html#copyPixels%28%29 Flash game authors compose multiple BitmapData regions into a larger BitmapData and then draw it scaled with linear sampling. Currently this can be achieved with CanvasRenderingContext2D.drawImage but this is not available in Workers. Having such a feature on ImageData would make it possible to write such games entirely in Workers. Another possibility is to provide an additional view on ArrayBuffers, perhaps a PixelArray view that has low level block pixel operations like fillRect, copyRect, etc.
Whiteboard: [Shumway]
Blocks: 927828
We need to triage whether this is needed at all anymore. In any case, it's not GFX-related, really.
No longer blocks: 927828
Would still be nice, but is not critical at all for our initial release.
Blocks: shumway-later
No longer blocks: shumway-m4
Priority: -- → P5
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.