Package | Description |
---|---|
com.dukescript.api.canvas |
Create instance of
GraphicsContext2D
and draw on it
using Java. |
com.dukescript.spi.canvas |
SPI for enabling the Canvas API on different platforms.
|
Modifier and Type | Method and Description |
---|---|
static Image |
Image.create(String src)
Creates a new image referencing a specified URL.
|
Image |
Style.Pattern.getImageResource()
Get the base image of this pattern
|
abstract Image |
GraphicsContext2D.merge(Image a,
Image b)
Merges two images drawing one on top of the other and returning the
result.
|
Modifier and Type | Method and Description |
---|---|
abstract Style.Pattern |
GraphicsContext2D.createPattern(Image image,
String repeat)
Create an Image Pattern from a source Image and a repeat style.
|
abstract void |
GraphicsContext2D.drawImage(Image image,
double x,
double y)
Draws an image at the given x, y position using the width and height of
the given image.
|
abstract void |
GraphicsContext2D.drawImage(Image image,
double x,
double y,
double width,
double height)
Draws an image into the given destination rectangle of the canvas.
|
abstract void |
GraphicsContext2D.drawImage(Image image,
double sx,
double sy,
double sw,
double sh,
double dx,
double dy,
double dw,
double dh)
Draws the current source rectangle of the given image to the given
destination rectangle of the Canvas.
|
abstract Dimension |
GraphicsContext2D.getDimension(Image img)
Get the Dimension of an Image
|
abstract Image |
GraphicsContext2D.merge(Image a,
Image b)
Merges two images drawing one on top of the other and returning the
result.
|
Constructor and Description |
---|
Pattern(Image imageResource,
String repeat) |
Modifier and Type | Method and Description |
---|---|
Object |
GraphicsEnvironment.drawImage(Canvas canvas,
Image image,
double sx,
double sy,
double sWidth,
double sHeight,
double x,
double y,
double width,
double height,
Object nativeImage)
Draws the current source rectangle of the given image to the given
destination rectangle of the Canvas.
|
Object |
GraphicsEnvironment.drawImage(Canvas canvas,
Image image,
double x,
double y,
double width,
double height,
Object nativeImage)
Draws an image into the given destination rectangle of the canvas.
|
Object |
GraphicsEnvironment.drawImage(Canvas canvas,
Image image,
double x,
double y,
Object nativeImage)
Draws an image at the given x, y position using the width and height of
the given image.
|
int |
GraphicsEnvironment.getHeight(Canvas canvas,
Image image,
Object nativeImage)
Get the height of this Image
|
int |
GraphicsEnvironment.getWidth(Canvas canvas,
Image image,
Object nativeImage)
Get the width of this Image
|
Object |
GraphicsEnvironment.mergeImages(Canvas canvas,
Image a,
Image b,
Object cachedA,
Object cachedB)
Merges two images drawing one on top of the other and returning the
result.
|
Copyright © 2018. All Rights Reserved.