These pages are auto-generated from self-documenting comments embedded
in class files.
For more information on breve and steve, refer to the
breve homepage.
The Image class provides an interface to work with images. The individual pixels of the image can then be read or changed by the simulation.
Loading and Creating Images
Getting information about the size and format of an image
Getting the value of pixels
Setting the value of pixels
Returns the alpha channel pixel at the image coordinates (x, y). The pixel value is given on a scale from 0.0 to 1.0.
Returns the blue pixel at the image coordinates (x, y). The pixel value is given on a scale from 0.0 to 1.0.
Returns the green pixel at the image coordinates (x, y). The pixel value is given on a scale from 0.0 to 1.0.
Returns the width of the image.
Returns the red pixel at the image coordinates (x, y). The pixel value is given on a scale from 0.0 to 1.0.
Returns the red, green and blue components of the pixel at image coordinates (x, y) as a vector.
Returns the width of the image.
Creates an empty image buffer with width imageWidth and length imageLength.
Loads an image from the file imageFile.
Sets the alpha pixel value at coordinates (x, y) to alphaPixel. alphaPixel should be a value between 0.0 and 1.0.
Sets the blue pixel value at coordinates (x, y) to bluePixel. bluePixel should be a value between 0.0 and 1.0.
Sets the green pixel value at coordinates (x, y) to greenPixel. greenPixel should be a value between 0.0 and 1.0.
Sets the red, green and blue pixel values at image coordinates (x, y) from the values in pixelVector.
Sets the red pixel value at coordinates (x, y) to redPixel. redPixel should be a value between 0.0 and 1.0.
Write the image to imageFile. The image is written as a PNG file, so imageFile should end with .PNG.