# Gimp.Pattern.prototype.get_pixels

    function get_pixels(): [ok: Boolean, width: Number(gint), height: Number(gint), bpp: Number(gint), color_bytes: Uint8Array] {
        // Gjs wrapper for gimp_pattern_get_pixels()
    }

Gets information about the pattern (including pixels).

Gets information about the pattern: the pattern extents (width and height), its bpp, and its pixel data. The pixel data is an array in C or a list in some languages.

Since 2.2

ok

  TRUE on success.

width

  The pattern width.

height

  The pattern height.

bpp

  The pattern bpp.

color_bytes

  The pattern data.