MCPcopy Index your code
hub / github.com/benfry/processing4 / createImage

Method createImage

core/src/processing/core/PApplet.java:2006–2010  ·  view source on GitHub ↗

Creates a new PImage (the datatype for storing images). This provides a fresh buffer of pixels to play with. Set the size of the buffer with the width and height parameters. The format parameter defines how the pixels are stored. See the PImage reference for more information. <b

(int w, int h, int format)

Source from the content-addressed store, hash-verified

2004 * @see PGraphics
2005 */
2006 public PImage createImage(int w, int h, int format) {
2007 PImage image = new PImage(w, h, format);
2008 image.parent = this; // make save() work
2009 return image;
2010 }
2011
2012
2013 //////////////////////////////////////////////////////////////

Callers 2

requestImageMethod · 0.95
SplashMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected