Skip to main content

Bitmap:create_partial_bitmap()

Bitmap:create_partial_bitmap(x, y, width, height)

This method creates a bitmap that corresponds to a specific area within the original bitmap.

Parameters

ParameterTypeDescription
xnumberX-coordinate of the top-left corner of the specific area.
ynumberY-coordinate of the top-left corner of the specific area.
widthnumberWidth of the specific area.
heightnumberHeight of the specific area.

Return Values

This method returns a Bitmap object.

See Also