PImage

Description

Use this variable type when working with images.

Syntax


PImage mypic;


Parameters

None.

Returns

None.

Example

PImage battlePic; //Create an image

void setup() {
background(0); //set the entire screen to black

open(FlashTransfer); //Waits for the IDE to send files to TouchShield’s flash storage.
battlePic = loadImage(“battle.bmp”); //read the uploaded image file from memory

image(battlePic,0,0); //paint image at pixel location (0,0)
}

void loop() {
// Do nothing!
}

Related

open(FlashTransfer)
FlashTransfer
PImage
image()
loadImage()




Edit History