Package com.luciad.view.opengl.binding
Interface ILcdGLOffScreenDrawable
- All Superinterfaces:
ILcdGLDrawable
ILcdGLDrawable that works on an offscreen image rather than a visible GUI
component. The contents of the drawable can be retrieved by the getImage()
method.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Releases any resources related to this offscreen drawable.getImage()
Get the offscreen drawable as an AWT image.boolean
Get whether this drawable is set to generate images with transparency.void
setSize
(int aWidth, int aHeight) Set the size of this drawable.void
setTransparent
(boolean aTransparent) Set whether this drawable is should generate images with transparency.Methods inherited from interface com.luciad.view.opengl.binding.ILcdGLDrawable
addGLEventListener, destroy, display, getChosenGLCapabilities, getDPIScale, getGL, getGLInformation, getGLU, getSize, getViewportSize, invokeAndWait, invokeLater, isCurrent, isRealized, removeGLEventListener, setGL, setGLU
-
Method Details
-
getImage
Image getImage()Get the offscreen drawable as an AWT image.- Returns:
- an AWT Image containing what was painted on the GL drawable.
-
setSize
void setSize(int aWidth, int aHeight) Set the size of this drawable.- Parameters:
aWidth
- the width.aHeight
- the height.
-
isTransparent
boolean isTransparent()Get whether this drawable is set to generate images with transparency.- Returns:
- whether this drawable is set to generate images with transparency.
-
setTransparent
void setTransparent(boolean aTransparent) Set whether this drawable is should generate images with transparency.- Parameters:
aTransparent
- true if this drawable is should generate images with transparency.
-
dispose
void dispose()Releases any resources related to this offscreen drawable. After this method has been called, this drawable can no longer be used for rendering.
-