public interface RenderingBackend
CanvasRenderingContext2D.
We have this abstraction to support GAE also.| Modifier and Type | Method and Description |
|---|---|
void |
drawImage(ImageReader imageReader,
int dxI,
int dyI)
Draws images onto the context.
|
String |
encodeToString(String type)
Constructs a base64 encoded string out of the image data.
|
void |
fillRect(int x,
int y,
int w,
int h)
Paints the specified rectangular area.
|
byte[] |
getBytes(int width,
int height,
int sx,
int sy)
Creates a byte array containing the (4) color values of all pixels.
|
void |
setFillStyle(String fillStyle)
Sets the
fillStyle property. |
void setFillStyle(String fillStyle)
fillStyle property.fillStyle - the fillStyle propertyvoid fillRect(int x,
int y,
int w,
int h)
x - the xy - the yw - the widthh - the heightvoid drawImage(ImageReader imageReader, int dxI, int dyI) throws IOException
imageReader - the reader to read the image from 8the first one)dxI - the x coordinate of the starting point (top left)dyI - the y coordinate of the starting point (top left)IOException - in case o problemsbyte[] getBytes(int width,
int height,
int sx,
int sy)
width - the widthheight - the heightsx - start point xsy - start point yString encodeToString(String type) throws IOException
type - the name of the image formatIOException - in case o problemsCopyright © 2002–2016 Gargoyle Software Inc.. All rights reserved.