Package | Description |
---|---|
ej.microui.display |
Contains display management.
|
ej.microui.display.transform |
Contains image transformation management.
|
Modifier and Type | Method and Description |
---|---|
static Image |
Image.createImage(Display d,
int width,
int height)
Creates a new mutable image which respects the pixel organization (layout, bpp etc.) of the given display and
with the given size.
|
static Image |
Image.createImage(Image image,
int x,
int y,
int width,
int height)
Creates an immutable image from another image area.
|
static Image |
Image.createImage(Image image,
int x,
int y,
int width,
int height,
Image.OutputFormat format)
Creates an immutable image from another image area.
|
static Image |
Image.createImage(java.io.InputStream stream,
int size)
Creates an immutable image from an
InputStream .The resource image format (input format) is a standard image format ( PNG etc.) According the MicroUI
implementation the image can be loaded or not. |
static Image |
Image.createImage(java.io.InputStream stream,
int size,
Image.OutputFormat format)
Creates an immutable image from an
InputStream .The resource image format (input format) is a standard image format ( PNG etc.) According the
MicroUI implementation the image can be loaded or not. |
static Image |
Image.createImage(int width,
int height)
Creates a new mutable image which respects the pixel organization (layout, bpp etc.) of the default display and
with the given size.
|
static Image |
Image.createImage(java.lang.String name)
Creates an immutable image from a resource.
The resource image format (input format) is a standard image format ( PNG etc.) or an internal
MicroUI implementation specific format. |
static Image |
Image.createImage(java.lang.String name,
Image.OutputFormat format)
Creates an immutable image from a resource.
The resource image format (input format) is a standard image format ( PNG etc.) or an internal
MicroUI implementation specific format. |
Image |
FlyingImage.getImage()
Returns the image associated to the
FlyingImage . |
Image |
Display.getScreenshot()
Creates an image with the full content of the display.
|
Image |
Display.getScreenshot(int x,
int y,
int width,
int height)
Creates an image with the content of the display region specified thanks the given rectangle.
|
Modifier and Type | Method and Description |
---|---|
static Image |
Image.createImage(Image image,
int x,
int y,
int width,
int height)
Creates an immutable image from another image area.
|
static Image |
Image.createImage(Image image,
int x,
int y,
int width,
int height,
Image.OutputFormat format)
Creates an immutable image from another image area.
|
void |
GraphicsContext.drawImage(Image img,
int x,
int y,
int anchor)
Draws an image at the given anchor point.
|
void |
GraphicsContext.drawImage(Image img,
int x,
int y,
int anchor,
int alpha)
Draws an image at the given anchor point.
|
void |
GraphicsContext.drawRegion(Image src,
int xSrc,
int ySrc,
int width,
int height,
int xDest,
int yDest,
int anchor)
Draws a region of an image.
|
void |
GraphicsContext.drawRegion(Image src,
int xSrc,
int ySrc,
int width,
int height,
int xDest,
int yDest,
int anchor,
int alpha)
Draws a region of an image.
|
Constructor and Description |
---|
FlyingImage(Display display,
Image skin)
Creates a new
FlyingImage . |
FlyingImage(Image skin)
Creates a new
FlyingImage . |
Modifier and Type | Method and Description |
---|---|
void |
ImageDeformation.draw(GraphicsContext gc,
Image image,
int[] xys,
int x,
int y,
int anchor)
Draws a deformed image at the given anchor point.
The image anchor point is at position @{code (x,y)}. |
void |
ImageScale.draw(GraphicsContext gc,
Image image,
int x,
int y,
int anchor)
|
void |
ImageFlip.draw(GraphicsContext gc,
Image image,
int x,
int y,
int anchor)
Draw the
Image in the GraphicsContext at given anchor position and using the current
ImageFlip.Action . |
void |
ImageRotation.drawBilinear(GraphicsContext gc,
Image image,
int x,
int y,
int anchor)
Draws the given
Image applying the current rotation. |
void |
ImageScale.drawBilinear(GraphicsContext gc,
Image image,
int x,
int y,
int anchor)
Draw the
Image in the GraphicsContext at given anchor position and using the current scaling
factor. |
void |
ImageRotation.drawNearestNeighbor(GraphicsContext gc,
Image image,
int x,
int y,
int anchor)
Draws the given
Image applying the current rotation. |
void |
ImageScale.drawNearestNeighbor(GraphicsContext gc,
Image image,
int x,
int y,
int anchor)
Draw the
Image in the GraphicsContext at given anchor position and using the current scaling
factor. |