Current Features
The following features are present in the current Blackspirit Graphics 2.0 release.
Drawing properties:
- Color
- Drawing Modes (Alpha Blend, Alpha Add, Addition, Subtraction, Multiplication, Overriding)
- Transformations (Translation, Rotation, Scaling)
- Color component masking (Red, Green, Blue, Alpha)
Primitive drawing operations:
- Point (only of pixel size 1)
- Single or multiple lines with optional color per end point (only with pixel line width 1)
- Single or multiple triangle outlines with optional color per point (only with pixel line width 1)
- Single or multiple filled triangles with optional texturing and color per point
Images:
- Supported images include: PNG (recommended), JPG, GIF, BMP (TGA with ImageIO Plugin)
- Image and sub image drawing
- Draw on images (to image cache). Exactly the same as drawing on a canvas
- Buffered images for procedural Image creation (like video rendering)
- Update image cache from buffer
- Update image buffer from cache
- Copy current content of a graphics context into an images cache
Text:
- Based on AWT fonts
- Text drawing
- Get text bounds without drawing
Shapes:
- Shapes defining area and outline
- Optional texturing and color per point
- Factory for common Shapes (Circle, Ellipse, Rectangle, Rounded Rectangle, etc.)
- Utility for manual creation of Shapes based on outlines and cut-outs (concave polygons supported)
- Utility for creation of common polygon outlines to be used for shape creation (Circle, Ellipse, Rectangle, Rounded Rectangle, etc.)
Animation:
- Sub images as frames (from multiple images)
- Generic so frame class can be extended
Utilities:
- Color gradient utility to populate buffered images and retrieve color for specific points
- AWT utility helps converting buffered images to AWT images (saving AWT images is easy using ImageIO)