|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.siemens.mp.misc.NativeMem
com.siemens.mp.ui.Image
com.siemens.mp.lcdui.Image
Siemens LCDUI API provides an improved implementation of the javax.microedition.lcdui.Image
class.
This is currently only available on MC60! For all other phones pleas use com.siemens.mp.ui.Image
!
Field Summary |
Fields inherited from class com.siemens.mp.ui.Image |
COLOR_BMP_8BIT |
Method Summary | |
static Image |
createImageFromFile(String filename,
boolean ScaleToFullScreen)
Create an image from a PNG/JPG/GIF/BMP file. |
static Image |
createImageFromFile(String filename,
int ScaleToWidth,
int ScaleToHeight)
Create an image from a PNG/JPG/GIF/BMP file. |
static int |
getPixelColor(Image image,
int x,
int y)
Gets the current pixel color. |
static void |
setPixelColor(Image image,
int x,
int y,
int color)
Sets the color of a pixel. |
static void |
writeBmpToFile(Image image,
String filename)
write an image to a BMP picture file |
Methods inherited from class com.siemens.mp.ui.Image |
createImageFromBitmap, createImageWithoutScaling, createImageWithScaling, createRGBImage, createTransparentImageFromBitmap, getHeight, getNativeImage, getWidth, mirrorImageHorizontally, mirrorImageVertically, setNativeImage |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void writeBmpToFile(Image image, String filename) throws IOException
image
- the image to export to BMP filefilename
- path and file name to write to
IOException
- in case of I/O problemspublic static Image createImageFromFile(String filename, boolean ScaleToFullScreen) throws IOException
filename
- path and file name to read fromScaleToFullScreen
- set to true to scale to the screen size.
Note that the aspect ratio of image may change.
IOException
- in case of I/O problemspublic static Image createImageFromFile(String filename, int ScaleToWidth, int ScaleToHeight) throws IOException
filename
- path and file name to read fromScaleToWidth
- set to the desired size or 0.ScaleToHeight
- set to the desired size or 0.
IOException
- in case of I/O problemspublic static int getPixelColor(Image image, int x, int y) throws IllegalArgumentException
image
- the imagex
- the x coordinate of the pixely
- the y coordinate of the pixel
IllegalArgumentException
- if x or y are out of the imagepublic static void setPixelColor(Image image, int x, int y, int color) throws IllegalArgumentException
image
- the imagex
- the x coordinate of the pixely
- the y coordinate of the pixelcolor
- the color to set, an integer in form 0xAARRGGBB
IllegalArgumentException
- if x or y are out of the image
|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Generated on 2003-10-17 | For further information and updates, please visit Siemens mobile Developer Portal |