|
loadImage()
|
||||
|
Description
Parameters char[] “mypic.bmp” – The image file name that was uploaded to flash memory. Note: Keep your image file names under 10 characters. Returns PImage – A new image that can be used for drawing on the screen. 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()
|
||||



