mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
Implement Canvas pixel manipulation
This commit is contained in:
parent
e68d6d2924
commit
325400dce4
14 changed files with 305 additions and 84 deletions
|
@ -96,9 +96,12 @@ interface CanvasRenderingContext2D {
|
|||
//void removeHitRegion(DOMString id);
|
||||
|
||||
// pixel manipulation
|
||||
//ImageData createImageData(double sw, double sh);
|
||||
//ImageData createImageData(ImageData imagedata);
|
||||
//ImageData getImageData(double sx, double sy, double sw, double sh);
|
||||
//void putImageData(ImageData imagedata, double dx, double dy);
|
||||
//void putImageData(ImageData imagedata, double dx, double dy, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight);
|
||||
[Throws]
|
||||
ImageData createImageData(double sw, double sh);
|
||||
[Throws]
|
||||
ImageData createImageData(ImageData imagedata);
|
||||
[Throws]
|
||||
ImageData getImageData(double sx, double sy, double sw, double sh);
|
||||
void putImageData(ImageData imagedata, double dx, double dy);
|
||||
void putImageData(ImageData imagedata, double dx, double dy, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue