Javadoc
( begin auto-generated from image.xml )
Displays images to the screen. The images must be in the sketch's "data"
directory to load correctly. Select "Add file..." from the "Sketch" menu
to add the image. Processing currently works with GIF, JPEG, and Targa
images. The img parameter specifies the image to display and the
x and y parameters define the location of the image from
its upper-left corner. The image is displayed at its original size
unless the width and height parameters specify a different
size.
The imageMode() function changes the way the parameters work. For
example, a call to imageMode(CORNERS) will change the
width and height parameters to define the x and y values
of the opposite corner of the image.
The color of an image may be modified with the tint() function.
This function will maintain transparency for GIF and PNG images.
( end auto-generated )
Advanced
Starting with release 0124, when using the default (JAVA2D) renderer,
smooth() will also improve image quality of resized images.