Image.exportPixels

Extracts the pixel data from the specified rectangle.

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

Parameters

area Geometry

Area to extract.

map 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