OEJavaImageBase
class OEJavaImageBase extends OEImageBase
The OEJavaImageBase is an an implementation of OEImageBase that uses a java.awt.Graphics object as a canvas to draw on. This may be faster in some circumstances, since the JNI layer is avoided.
The following Java example demonstrates the usage of OEJavaImageBase class.
Download code
The following methods are publicly inherited from OEImageBase:
Constructors
OEJavaImageBase(java.awt.Graphics graphics, double width, double height);
Default constructor that creates an OEJavaImageBase with the specified width and height.
- graphics
A java.awt.Graphics object.
- width, height
The dimensions of the image, both have to be positive (non-zero) numbers.
SetAntiAliasing
void SetAntiAliasing(boolean state)
Enables or disables antialiasing on the Graphics object. Antialiasing is on by default.
GetAntiAliasing
boolean GetAntiAliasing()
Returns a boolean indicating if antialiasing is on.
GetGraphics
Graphics GetGraphics()
Returns the graphics object used to construct this object with.