Image.exportPixels

Extracts the pixel data from the specified rectangle.

  1. T[] exportPixels(Geometry area, string map = "RGBA")
    class Image
    T[]
    exportPixels
    const
    (
    T
    )
    (
    ,
    string map = "RGBA"
    )
  2. void exportPixels(Geometry area, T[] pixels, string map = "RGBA")

Parameters

area
Type: Geometry

Area to extract.

map
Type: string

This character string can be any combination or order of R = red, G = green, B = blue, A = alpha, C = cyan, Y = yellow, M = magenta, and K = black. The ordering reflects the order of the pixels in the supplied pixel array.

Return Value

Type: T[]

An array of values containing the pixel components as defined by the map parameter and the Type.

Meta