Reference for the BALTENSPERGER programming language, an art project of Stefan Baltensperger
| Name |
Bild |
| Examples |
 Bild b;
b = lad_s_Bild("laDefense.jpg");
zeig_s_Bild(b, 0, 0); |
| Description |
Datatype for storing images. Processing can display of .gif, .jpg, .tga, and .png images. Images may be displayed in 2D and 3D space. Before an image is used, it must be loaded with the lad_s_Bild() function. The Bild object contains fields for the Feischterbreiti and Feischterhoechi of the image, as well as an array called pixels[] which contains the values for every pixel in the image. A group of methods, described below, allow easy access to the image's pixels and alpha channel and simplify the process of compositing. |
| Fields |
|
| Methods |
| farb_vom_Pixel() |
Reads the Farb of any pixel or grabs a rectangle of pixels |
| setz() |
Writes a Farb to any pixel or writes an image into another |
| kopier() |
Copies the entire image |
| mask() |
Masks part of the image from displaying |
| misch() |
Copies a pixel or rectangle of pixels using different blending modes |
| filter() |
Converts the image to grayscale or black and white |
| sichere() |
Saves the image to a TIFF, TARGA, PNG, or JPEG file |
|
| Constructor |
Bild()
Bild(Feischterbreiti, Feischterhoechi)
Bild(img) |
| Parameters |
| Feischterbreiti |
Ganzizahl: image Feischterbreiti |
| Feischterhoechi |
Ganzizahl: image Feischterhoechi |
| pixels[] |
Ganzizahl[] or Farb[]: array of integers or colors, must be the same dimension as Feischterbreiti*Feischterhoechi |
| format |
Either RGB, ARGB, ALPHA (grayscale alpha channel) |
| img |
java.awt.Image: assumes a MediaTracker has been used to fully download the data and the img is valid |
|
| Usage |
Web & Application |
| Related |
lad_s_Bild() Bildmodus()
|
Stefan Baltensperger 2009