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 Summary)
Index
Methods
createImageData
- createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData
Parameters
- sw: number
- sh: number
Optional
settings: ImageDataSettings
Returns ImageData
- createImageData(imagedata: ImageData): ImageData
Parameters
- imagedata: ImageData
Returns ImageData
getImageData
- getImageData(
sx: number,
sy: number,
sw: number,
sh: number,
settings?: ImageDataSettings,
): ImageData Parameters
- sx: number
- sy: number
- sw: number
- sh: number
Optional
settings: ImageDataSettings
Returns ImageData
putImageData
- putImageData(imagedata: ImageData, dx: number, dy: number): void
Parameters
- imagedata: ImageData
- dx: number
- dy: number
Returns void
- putImageData(
imagedata: ImageData,
dx: number,
dy: number,
dirtyX: number,
dirtyY: number,
dirtyWidth: number,
dirtyHeight: number,
): void Parameters
- imagedata: ImageData
- dx: number
- dy: number
- dirtyX: number
- dirtyY: number
- dirtyWidth: number
- dirtyHeight: number
Returns void
MDN Reference