java.lang.Object
|
+--javax.microedition.lcdui.Image
- See Also:
- Source Code,
getHeight()
, getWidth()
, Display.numAlphaLevels()
, createImage
, getGraphics()
public static Image createImage(byte[] imageData,
int imageOffset,
int imageLength)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Image createImage(int width,
int height)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Image createImage(java.io.InputStream stream)
throws java.io.IOException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Image createImage(String name)
throws java.io.IOException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Image createImage(Image source)
- See Also:
getGraphics()
, createImage(w, h)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Image createImage(Image image,
int x,
int y,
int width,
int height,
int transform)
- See Also:
Sprite
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static Image createRGBImage(int[] rgb,
int width,
int height,
boolean processAlpha)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Graphics getGraphics()
- See Also:
- IllegalStateException,
SOLID
, Font.getDefaultFont()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getHeight()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void getRGB(int[] rgbData,
int offset,
int scanlength,
int x,
int y,
int width,
int height)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[1970]how to get the byte value of an image using getRGB()?
By Anonymous on 2008/06/19 15:13:36 Rate
Hi,
Does anyone know how I should complete the following code to get the byte value of the image?
private byte [ ] getByteValue ( Image image ) {
byte [ ] byte_data;
int [ ] dest = new int [ image.getWidth ( ) *image.getHeight ( ) ] ;
image.getRGB ( dest, 0, image.getWidth ( ) , 0, 0, image.getWidth ( ) , image.getHeight ( ) ) ;
.........
.........
//should return the byte value of the image
return byte_data;
}
public int getWidth()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean isMutable()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
cHRM gAMA hIST iCCP iTXt pHYs
sBIT sPLT sRGB tEXt tIME zTXt
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples