public final class OffscreenContext
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
copyFrom(OffscreenContext source,
int x,
int y)
Copies the contents of the specified context onto this context, at the specified location.
|
boolean |
copyFrom(OffscreenContext source,
int x,
int y,
int width,
int height,
int sx,
int sy)
Copies a portion of the contents of the specified context onto this context, at the specified location.
|
static OffscreenContext |
create(java.awt.GraphicsConfiguration gc,
int width,
int height)
Creates an off-screen device context, compatible with the specified graphics.
|
static OffscreenContext |
create(int width,
int height)
Creates an off-screen device context, compatible with the specified graphics.
|
com.mindfusion.spreadsheet.DeviceContext |
createContext()
Creates a device context that can be used for painting.
|
java.awt.Graphics2D |
createGraphics()
Creates a Graphics2D object that can be used for painting.
|
IRenderTarget |
createRenderTarget() |
void |
dispose()
Disposes all resources used by the context.
|
void |
draw(java.awt.Graphics2D graphics,
int x,
int y)
Draws the contents of this context to the specified device context, at the specified location.
|
void |
draw(java.awt.Graphics2D graphics,
java.awt.Rectangle rect)
Draws the contents of this context to the specified device context, at the specified location.
|
int |
getHeight() |
int |
getWidth() |
void |
saveToFile(java.lang.String fileName,
java.lang.String imageFormat)
Saves the context's content as an image file.
|
public static OffscreenContext create(int width, int height)
public static OffscreenContext create(java.awt.GraphicsConfiguration gc, int width, int height)
public void dispose()
public void saveToFile(java.lang.String fileName,
java.lang.String imageFormat)
public IRenderTarget createRenderTarget()
public java.awt.Graphics2D createGraphics()
public com.mindfusion.spreadsheet.DeviceContext createContext()
public boolean copyFrom(OffscreenContext source, int x, int y)
public boolean copyFrom(OffscreenContext source, int x, int y, int width, int height, int sx, int sy)
public void draw(java.awt.Graphics2D graphics,
int x,
int y)
public void draw(java.awt.Graphics2D graphics,
java.awt.Rectangle rect)
public int getWidth()
public int getHeight()