Cogl.Texture.prototype.set_region_from_bitmap
function set_region_from_bitmap(src_x: Number(gint), src_y: Number(gint), dst_x: Number(gint), dst_y: Number(gint), dst_width: Number(guint), dst_height: Number(guint), bitmap: Cogl.Bitmap): Cogl.Bool { // Gjs wrapper for cogl_texture_set_region_from_bitmap() }
Copies a specified source region from bitmap to the position (src_x, src_y) of the given destination texture @handle.
<note>The region updated can't be larger than the source bitmap</note>
Since 1.8
- src_x
upper left coordinate to use from the source bitmap.
- src_y
upper left coordinate to use from the source bitmap
- dst_x
upper left destination horizontal coordinate.
- dst_y
upper left destination vertical coordinate.
- dst_width
width of destination region to write. (Must be less than or equal to the bitmap width)
- dst_height
height of destination region to write. (Must be less than or equal to the bitmap height)
- bitmap
The source bitmap to read from
- Returns
true if the subregion upload was successful, and false otherwise