pImage
PImage is a class in Processing that represents bitmap image data. An instance stores the image’s width, height, and the color data for each pixel, and it can be drawn to the screen or used as a texture in 2D or 3D rendering.
Images are obtained by loading from disk with loadImage() or created from scratch with createImage(width, height,
Pixel access and manipulation are a central use of PImage. To modify the pixel data, call loadPixels(),
Common operations supported by PImage include resize(), copy(), and various filters, as well as save(filename) to
Notes and context: PImage is a core part of Processing’s image-processing capabilities and integrates with the