Interface CanvasImageData
interface CanvasImageData {
createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
createImageData(imagedata: ImageData): ImageData;
getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;
putImageData(imagedata: ImageData, dx: number, dy: number): void;
putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;
}
createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;
createImageData(imagedata: ImageData): ImageData;
getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;
putImageData(imagedata: ImageData, dx: number, dy: number): void;
putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;
}
Hierarchy
- CanvasImageData (view full)
Index
Methods
createImageData
getImageData
- get
Image (sx, sy, sw, sh, settings?): ImageDataData Parameters
- sx: number
- sy: number
- sw: number
- sh: number
Optional
settings: ImageDataSettings
Returns ImageData
putImageData
- put
Image (imagedata, dx, dy): voidData Parameters
- imagedata: ImageData
- dx: number
- dy: number
Returns void
- put
Image (imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight): voidData Parameters
- imagedata: ImageData
- dx: number
- dy: number
- dirtyX: number
- dirtyY: number
- dirtyWidth: number
- dirtyHeight: number
Returns void
MDN Reference