Class jls.util.Image

This class represents an image
Defined in: Image.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
jls.util.Image(width, height, mode)
Creates an image.
Method Summary
Method Attributes Method Name and Description
 
Returns the image buffer.
 
Returns the image height.
 
getPixel(x, y)
Returns a pixel value.
 
Returns the image width.
<static>  
jls.util.Image.readBMP(input)
Reads a BMP.
<static>  
jls.util.Image.readJPEG(input)
Reads a JPEG.
 
setPixel(x, y, r, g, b)
Sets a pixel.
Class Detail
jls.util.Image(width, height, mode)
Creates an image.
Parameters:
{Number} width
The image width.
{Number} height
The image height.
{Number} mode Optional
The image mode.
Method Detail
{jls.lang.Buffer} getBuffer()
Returns the image buffer.
Returns:
{jls.lang.Buffer} The image buffer.

{Number} getHeight()
Returns the image height.
Returns:
{Number} The image height.

{Array} getPixel(x, y)
Returns a pixel value.
Parameters:
{Number} x
The x coordinate of the pixel.
{Number} y
The y coordinate of the pixel.
Returns:
{Array} The pixel value.

{Number} getWidth()
Returns the image width.
Returns:
{Number} The image width.

<static> {jls.util.Image} jls.util.Image.readBMP(input)
Reads a BMP.
Parameters:
{jls.io.FileInputStream} input
The input to read the image.
Returns:
{jls.util.Image} The image.

<static> {jls.util.Image} jls.util.Image.readJPEG(input)
Reads a JPEG.
Parameters:
{jls.io.FileInputStream} input
The input to read the image.
Returns:
{jls.util.Image} The image.

setPixel(x, y, r, g, b)
Sets a pixel.
Parameters:
{Number} x
The x coordinate of the pixel.
{Number} y
The y coordinate of the pixel.
{Number} r
The red value to set.
{Number} g
The green value to set.
{Number} b
The blue value to set.

Documentation generated by JsDoc Toolkit 2.3.2 on Sat Jan 08 2011 02:00:15 GMT+0100 (CET)