| Language \ Environment \ Comparison |

| Index

| The Processing 1.0 _ALPHA_ Reference is a work in progress. If you see any errors or have any comments, please write to: reas at groupc.net

Name |  | ### loadImage()
Examples |  |
    BImage b;
    b = loadImage("laDefense.jpg");
    image(b, 0, 0);
Description |  | Loads an image into a variable of type BImage. Both .gif and .jpg images may be loaded. To load correctly, images must be located in the data directory of the current sketch.
Syntax |  |
    loadImage(filename)
Parameters |  |
filename |  | string: name of file to load, must be either .gif or .jpg
Returns |  | BImage
Usage |  | Web & Application
Related |  | BImage image() imageMode() background()

| © 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea |
| Processing is an open project initiated by Ben Fry and Casey Reas |