 |
 |
 |
 |
Name |
|
BImage |
 |
|
|
Examples |
|
 |
BImage b;
b = loadImage("laDefense.jpg");
image(b, 0, 0);
|
 |
|
Description |
|
Datatype for storing images. Processing allows display of .gif and .jpg images. Images may be displayed in 2D and 3D space. Before an image is used, it must be loaded with the loadImage() function. The BImage object contains properties for the width and height of the image, as well as an array called pixels[] which contains the values for every pixel in the image. |
 |
|
|
Syntax |
|
BImage name
name.pixels[]
name.width
name.height
|
 |
|
|
Parameters |
|
name |
|
any legal variable name
|
|
 |
|
|
Usage |
|
Web & Application |
 |
|
|
Related |
|
loadImage() imageMode() |
|