ICanvasRenderingContext2DPutImageData Method (IImageData, Double, Double, Double, Double, Double, Double) |
Paints data from the given ImageData object onto the bitmap.
If a dirty rectangle is provided, only the pixels from that rectangle are painted.
This method is not affected by the canvas transformation matrix.
Namespace: Aspose.Html.Dom.CanvasAssembly: Aspose.HTML (in Aspose.HTML.dll) Version: 20.3
Syntaxvoid PutImageData(
IImageData imagedata,
double dx,
double dy,
double dirtyX,
double dirtyY,
double dirtyWidth,
double dirtyHeight
)
Sub PutImageData (
imagedata As IImageData,
dx As Double,
dy As Double,
dirtyX As Double,
dirtyY As Double,
dirtyWidth As Double,
dirtyHeight As Double
)
void PutImageData(
IImageData^ imagedata,
double dx,
double dy,
double dirtyX,
double dirtyY,
double dirtyWidth,
double dirtyHeight
)
abstract PutImageData :
imagedata : IImageData *
dx : float *
dy : float *
dirtyX : float *
dirtyY : float *
dirtyWidth : float *
dirtyHeight : float -> unit
Parameters
- imagedata
- Type: Aspose.Html.Dom.CanvasIImageData
An ImageData object containing the array of pixel values. - dx
- Type: SystemDouble
Horizontal position (x-coordinate) at which to place the image data in the destination canvas. - dy
- Type: SystemDouble
Vertical position (y-coordinate) at which to place the image data in the destination canvas. - dirtyX
- Type: SystemDouble
Horizontal position (x-coordinate). The x coordinate of the top left hand corner of your Image data. Defaults to 0. - dirtyY
- Type: SystemDouble
Vertical position (y-coordinate). The y coordinate of the top left hand corner of your Image data. Defaults to 0. - dirtyWidth
- Type: SystemDouble
Width of the rectangle to be painted. Defaults to the width of the image data. - dirtyHeight
- Type: SystemDouble
Height of the rectangle to be painted. Defaults to the height of the image data.
See Also