Gimp.Drawable.prototype.get_sub_thumbnail_data
function get_sub_thumbnail_data(src_x: Number(gint), src_y: Number(gint), src_width: Number(gint), src_height: Number(gint), dest_width: Number(gint), dest_height: Number(gint)): [return_value: Uint8Array, actual_width: Number(gint), actual_height: Number(gint), bpp: Number(gint)] {
// Gjs wrapper for gimp_drawable_get_sub_thumbnail_data()
}
Retrieves thumbnail data for the drawable identified by drawable. The thumbnail will be not larger than the requested size.
- src_x
the x coordinate of the area
- src_y
the y coordinate of the area
- src_width
the width of the area
- src_height
the height of the area
- dest_width
the requested thumbnail width (<= 1024 pixels)
- dest_height
the requested thumbnail height (<= 1024 pixels)
- return_value
thumbnail data or null if drawable is invalid.
- actual_width
the width of the returned thumbnail
- actual_height
the height of the returned thumbnail
- bpp
the bytes per pixel of the returned thumbnail data