public class ImagePainter
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
computeOptimalSize(ej.microui.display.Image image,
ej.mwt.util.Size size)
Computes the optimal size of an image.
|
static void |
drawImageInArea(ej.microui.display.GraphicsContext g,
ej.microui.display.Image image,
int x,
int y,
int width,
int height,
int horizontalAlignment,
int verticalAlignment)
Draws an image aligned in a area.
|
public static void computeOptimalSize(ej.microui.display.Image image,
ej.mwt.util.Size size)
The given size is modified to set the optimal size.
image - the image.size - the size to modify.public static void drawImageInArea(ej.microui.display.GraphicsContext g,
ej.microui.display.Image image,
int x,
int y,
int width,
int height,
int horizontalAlignment,
int verticalAlignment)
g - the graphics context.image - the image.x - the area x coordinate.y - the area y coordinate.width - the area width.height - the area height.horizontalAlignment - the horizontal alignment.verticalAlignment - the vertical alignment.