|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectutils.DrawUtils
public class DrawUtils
A helper class for poping alerts, rescaling and blending images.
| Constructor Summary | |
|---|---|
DrawUtils()
|
|
| Method Summary | |
|---|---|
static void |
blend(int[] raw,
int alphaValue)
Makes a given image transparent with a given alphaValue (255..maximum Transparency) |
static void |
blend(int[] raw,
int alphaValue,
int maskColor,
int dontmaskColor)
Makes a given image transparent with a given alphaValue (255..maximum Transparency) |
static int[] |
reescalaArray(int[] ini,
int width,
int height,
int new_width,
int new_height)
Scales an Image with size (width, height) to a desired size (new_width, new_height). |
static void |
showAlert(java.lang.String title,
java.lang.String message,
int duration,
javax.microedition.lcdui.Display display)
Shows an alert on screen. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DrawUtils()
| Method Detail |
|---|
public static void showAlert(java.lang.String title,
java.lang.String message,
int duration,
javax.microedition.lcdui.Display display)
title - the titel of the alertmessage - a detailed messageduration - how long the alert should be displayed
(in millisec or Alert.FOREVER)display - the display on which the alert should occur
public static int[] reescalaArray(int[] ini,
int width,
int height,
int new_width,
int new_height)
c = scaledInt[x+width*y]
ini - an array, holding the image which will be rescaledwidth - the width of the original imageheight - the height of the original imagenew_width - the new width of the scaled imagenew_height - the new height of the scaled image
public static void blend(int[] raw,
int alphaValue,
int maskColor,
int dontmaskColor)
maskColor - -dontmaskColor - -raw - is the image arrayalphaValue - the intensity of transparency
public static void blend(int[] raw,
int alphaValue)
raw - is the image arrayalphaValue - the intensity of transparency
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||