createImage()

Image

Description

Creates a new PImage (the datatype for storing images) with the given width and height.

Syntax

PImage* createImage(int w, int h, int mode)

Parameters

NameTypeDescription
wintwidth in pixels
hintheight in pixels
modeintARGB or RGB

Returns

PImage*

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...