| java.lang.Object | |
| ↳ | casmi.image.Image |
Image class. Wrap javax.imageio.ImageIO and make it easy to use.
| Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| height | |||||||||||
| mode | |||||||||||
| texture | |||||||||||
| width | |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new Image object using width and height.
| |||||||||||
Creates a new Image object using the Image path.
| |||||||||||
Creates a new Image object using the Image url.
| |||||||||||
Creates a new Image object using BufferedImage.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Returns the clone of the input image.
| |||||||||||
Copies a Image object using BuffedImage.
| |||||||||||
Makes texture not to be used.
| |||||||||||
Makes texture to be used.
| |||||||||||
Returns the alpha value of the pixel data in this Image.
| |||||||||||
Returns the blue color value of the pixel data in this Image.
| |||||||||||
Returns the pixel color of this Image.
| |||||||||||
Returns the gray-scale value of the pixel data in this Image.
| |||||||||||
Returns the green color value of the pixel data in this Image.
| |||||||||||
Returns the height of this Image.
| |||||||||||
Returns ImageMode of this Image.
| |||||||||||
Returns the red color value of the pixel data in this Image.
| |||||||||||
Returns Texture binded this Image
| |||||||||||
Returns the width of this Image.
| |||||||||||
Sets the ImageMode of this Image.
| |||||||||||
Loads a texture using image data.
| |||||||||||
Sets the alpha value of the pixel data in this Image.
| |||||||||||
Sets the color value of the pixel data in this Image.
| |||||||||||
Sets the color values to this Image.
| |||||||||||
Sets ImageMode of this Image.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Creates a new Image object using width and height.
| width | The width of the Image. |
|---|---|
| height | The height of the Image. |
Creates a new Image object using the Image path.
| path | The path of this Image. |
|---|
Creates a new Image object using the Image url.
| url | The URL of this Image. |
|---|
Creates a new Image object using BufferedImage.
| image | <<<<<<< HEAD The BufferedImge of this Image. ======= The BufferedImge of this Image. >>>>>>> 16121fd9fe4eeaef3cb56619769a3119a9e6531a |
|---|
Returns the clone of the input image.
| image | The image you want to clone. |
|---|
Copies a Image object using BuffedImage.
| image | <<<<<<< HEAD The BufferedImage of this Image. ======= The BufferedImage of this Image. >>>>>>> 16121fd9fe4eeaef3cb56619769a3119a9e6531a |
|---|
Makes texture not to be used. This function is similar to glDisable( GL_TEXTURE_2D ) in OpenGL
| gl | The variable of GL2. |
|---|
Makes texture to be used. This function is similar to glEnable( GL_TEXTURE_2D ) and glBindTexture() in OpenGL
| gl | The variable of GL2. |
|---|
Returns the alpha value of the pixel data in this Image.
| x | The x-coordinate of the pixel. |
|---|---|
| y | The y-coordinate of the pixel. |
Returns the blue color value of the pixel data in this Image.
| x | The x-coordinate of the pixel. |
|---|---|
| y | The y-coordinate of the pixel. |
Returns the pixel color of this Image.
| x | The x-coordinate of the pixel. |
|---|---|
| y | The y-coordinate of the pixel. |
Returns the gray-scale value of the pixel data in this Image.
| x | The x-coordinate of the pixel. |
|---|---|
| y | The y-coordinate of the pixel. |
Returns the green color value of the pixel data in this Image.
| x | The x-coordinate of the pixel. |
|---|---|
| y | The y-coordinate of the pixel. |
Returns the height of this Image.
Returns ImageMode of this Image.
Returns the red color value of the pixel data in this Image.
| x | The x-coordinate of the pixel. |
|---|---|
| y | The y-coordinate of the pixel. |
Returns Texture binded this Image
Returns the width of this Image.
Loads a texture using image data.
Sets the alpha value of the pixel data in this Image.
| alpha | The alpha value of the pixel. |
|---|---|
| x | The x-coordinate of the pixel. |
| y | The y-coordinate of the pixel. |
Sets the color value of the pixel data in this Image.
| color | <<<<<<< HEAD The color value of the pixel. ======= The color value of the pixel. >>>>>>> 16121fd9fe4eeaef3cb56619769a3119a9e6531a |
|---|---|
| x | The x-coordinate of the pixel. |
| y | The y-coordinate of the pixel. |
Sets the color values to this Image.
| colors | <<<<<<< HEAD The array of Color which size is width * height of this Image. ======= The array of Color which size is width * height of this Image. >>>>>>> 16121fd9fe4eeaef3cb56619769a3119a9e6531a |
|---|
Sets ImageMode of this Image.
| mode | <<<<<<< HEAD The ImageMode of the Image. ======= The ImageMode of the Image. >>>>>>> 16121fd9fe4eeaef3cb56619769a3119a9e6531a |
|---|