pixels[]

Image / Pixels

Description

Array containing the values for all the pixels in the display window or PImage. Must call loadPixels() before reading and updatePixels() after writing. Each value is a packed ARGB color integer.

Syntax

pixels[i] pixels[y * width + x]

Parameters

None

Returns

std::vector

Related

Under the Hood

From Processing.h:

std::vector<unsigned int> pixels; : width(o.width), height(o.height), pixels(std::move(o.pixels)), texID(o.texID), dirty(o.dirty) { o.texID=0; }

Under the Hood

From Processing.cpp:

gi.pixels = rgba.data();