Gimp.Brush.prototype.get_pixels
function get_pixels(): [ok: Boolean, width: Number(gint), height: Number(gint), mask_bpp: Number(gint), mask_bytes: Uint8Array, color_bpp: Number(gint), color_bytes: Uint8Array] {
// Gjs wrapper for gimp_brush_get_pixels()
}
Gets information about the brush.
Gets information about the brush: the brush extents (width and height) and its pixels data. The color bpp is zero and pixels empty when the brush is parametric versus raster.
Since 2.2
- ok
TRUE on success.
- width
The brush width.
- height
The brush height.
- mask_bpp
The brush mask bpp.
- mask_bytes
The brush mask data.
- color_bpp
The brush color bpp.
- color_bytes
The brush color data.