We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
image() reference (Read 1404 times)
image() reference
Apr 17th, 2010, 2:49am
 
Quote:
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 color of an image may be modified with the tint()  function and if a GIF has transparency, it will maintain its transparency.

I think the blue part belongs more to loadImage() page. The image formats sentence too, but I wanted to point out that it misses PNG format... And the "if a GIF has transparency" part too. Well, it should be "if image has transparency", since the image can be created from scratch.
Page Index Toggle Pages: 1