ICanvasRenderingContext2D.PutImageData

PutImageData(IImageData, 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.

public void PutImageData(IImageData imagedata, double dx, double dy)
ParameterTypeDescription
imagedataIImageDataAn ImageData object containing the array of pixel values.
dxDoubleHorizontal position (x-coordinate) at which to place the image data in the destination canvas.
dyDoubleVertical position (y-coordinate) at which to place the image data in the destination canvas.

See Also


PutImageData(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.

public void PutImageData(IImageData imagedata, double dx, double dy, double dirtyX, double dirtyY, 
    double dirtyWidth, double dirtyHeight)
ParameterTypeDescription
imagedataIImageDataAn ImageData object containing the array of pixel values.
dxDoubleHorizontal position (x-coordinate) at which to place the image data in the destination canvas.
dyDoubleVertical position (y-coordinate) at which to place the image data in the destination canvas.
dirtyXDoubleHorizontal position (x-coordinate). The x coordinate of the top left hand corner of your Image data. Defaults to 0.
dirtyYDoubleVertical position (y-coordinate). The y coordinate of the top left hand corner of your Image data. Defaults to 0.
dirtyWidthDoubleWidth of the rectangle to be painted. Defaults to the width of the image data.
dirtyHeightDoubleHeight of the rectangle to be painted. Defaults to the height of the image data.

See Also