Gimp.Brush.get_pixels

@accepts(Gimp.Brush, int, int, int, GLib.Bytes, int, GLib.Bytes)
@returns(bool)
def get_pixels(self, width, height, mask_bpp, mask_bytes, color_bpp, color_bytes):
    # Python 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

self

The brush.

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.

Returns