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 |
---|---|
abstract ImageData |
GraphicsContext2D.createPixelMap(double x,
double y)
Get a pixel array that you can manipulate, e.g.
|
abstract ImageData |
GraphicsContext2D.createPixelMap(double x,
double y,
int[] data)
Get a pixel array that you can manipulate, e.g.
|
abstract ImageData |
GraphicsContext2D.createPixelMap(ImageData pixelMap)
Create a new ImageData object with the same dimensions as the object
specified by imageData (this does not copy the image data)
|
abstract ImageData |
GraphicsContext2D.getSnapshot(double x,
double y,
double width,
double height)
Get the pixels for a region of your GraphicsContext2D
|
Modifier and Type | Method and Description |
---|---|
abstract ImageData |
GraphicsContext2D.createPixelMap(ImageData pixelMap)
Create a new ImageData object with the same dimensions as the object
specified by imageData (this does not copy the image data)
|
abstract void |
GraphicsContext2D.drawPixelMap(ImageData pixelMap,
double x,
double y)
Render an ImageData Object at the specified position
|
Modifier and Type | Method and Description |
---|---|
ImageData |
GraphicsEnvironment.createPixelMap(Canvas canvas,
double x,
double y)
Get a pixel array that you can manipulate, e.g.
|
ImageData |
GraphicsEnvironment.createPixelMap(Canvas canvas,
double x,
double y,
int[] all)
Get a pixel array that you can manipulate, e.g.
|
ImageData |
GraphicsEnvironment.createPixelMap(Canvas canvas,
ImageData imageData)
Create a new ImageData object with the same dimensions as the
object specified by imageData (this does not copy the image data)
|
ImageData |
GraphicsEnvironment.getPixelMap(Canvas canvas,
double x,
double y,
double width,
double height)
Get the pixels for a region of your GraphicsContext2D
|
Modifier and Type | Method and Description |
---|---|
ImageData |
GraphicsEnvironment.createPixelMap(Canvas canvas,
ImageData imageData)
Create a new ImageData object with the same dimensions as the
object specified by imageData (this does not copy the image data)
|
void |
GraphicsEnvironment.putPixelMap(Canvas canvas,
ImageData imageData,
double x,
double y)
Render an ImageData Object at the specified position
|
Copyright © 2018. All Rights Reserved.