put_image_data method

put_image_data

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.

def put_image_data(self, imagedata, dx, dy):
    ...
ParameterTypeDescription
imagedataIImageDataAn ImageData object containing the array of pixel values.
dxfloatHorizontal position (x-coordinate) at which to place the image data in the destination canvas.
dyfloatVertical position (y-coordinate) at which to place the image data in the destination canvas.

put_image_data

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.

def put_image_data(self, imagedata, dx, dy, dirty_x, dirty_y, dirty_width, dirty_height):
    ...
ParameterTypeDescription
imagedataIImageDataAn ImageData object containing the array of pixel values.
dxfloatHorizontal position (x-coordinate) at which to place the image data in the destination canvas.
dyfloatVertical position (y-coordinate) at which to place the image data in the destination canvas.
dirty_xfloatHorizontal position (x-coordinate). The x coordinate of the top left hand corner of your Image data. Defaults to 0.
dirty_yfloatVertical position (y-coordinate). The y coordinate of the top left hand corner of your Image data. Defaults to 0.
dirty_widthfloatWidth of the rectangle to be painted. Defaults to the width of the image data.
dirty_heightfloatHeight of the rectangle to be painted. Defaults to the height of the image data.

See Also