Interface for rendering images to concrete file formats. More...
#include <icanvas.h>
Classes | |
| struct | _transformationInfo |
| This structure holds the calculated transformation info. More... | |
| struct | RGB |
| Structure representing a color. More... | |
| struct | RGBA |
| Structure representing a color. More... | |
Public Types | |
| typedef struct HGL::ImageOutput::ICanvas::_transformationInfo | TRANSFORMATIONINFO |
| This structure holds the calculated transformation info. | |
Public Member Functions | |
| virtual | ~ICanvas () |
| Destructor. | |
Dimensions | |
| virtual bool | doExplicitScale () const =0 |
| Determines if explicit scale should be enabled. | |
| virtual uint16_t | getHeight () const =0 |
| Gets the height of the canvas. | |
| virtual uint16_t | getWidth () const =0 |
| Gets the width of the canvas. | |
Data access | |
| virtual HGL::Type::IProject * | getProject () const =0 |
| Gets the complete processed project. | |
| virtual const std::vector< RGBA > | getRow (uint16_t row) const =0 |
| Gets a row of the canvas as vector of colors. | |
Protected Member Functions | |
| ICanvas () | |
| Constructor. | |
Color management | |
|
| |
| typedef std::set< RGBA > | COLORSPACE |
| A colorspace set. | |
| virtual const RGBA & | getBackgroundColor () const =0 |
| Gets the background color of the ICanvas. | |
| virtual const COLORSPACE | getColorSpace () const =0 |
| Gets a sorted set with all unique colors in the current ICanvas. | |
| virtual int | getSCQColors () const =0 |
| Returns the amount of colors for spatial color quantization. | |
| virtual bool | isBackground (uint16_t x, uint16_t y) const =0 |
| Checks if the given position is the unaltered background. | |
Interface for rendering images to concrete file formats.
| typedef std::set<RGBA> HGL::ImageOutput::ICanvas::COLORSPACE |
A colorspace set.
| virtual HGL::ImageOutput::ICanvas::~ICanvas | ( | ) | [virtual] |
Destructor.
| HGL::ImageOutput::ICanvas::ICanvas | ( | ) | [protected] |
Constructor.
| virtual bool HGL::ImageOutput::ICanvas::doExplicitScale | ( | ) | const [pure virtual] |
Determines if explicit scale should be enabled.
Explicit scale is enabled if either the 'w' or 'h' option or both are given on the command line. If not the default values for width and height are taken and this function returns false.
true if the output image should get scaled explicitely, false otherwise | virtual const RGBA& HGL::ImageOutput::ICanvas::getBackgroundColor | ( | ) | const [pure virtual] |
| virtual const COLORSPACE HGL::ImageOutput::ICanvas::getColorSpace | ( | ) | const [pure virtual] |
Gets a sorted set with all unique colors in the current ICanvas.
| virtual uint16_t HGL::ImageOutput::ICanvas::getHeight | ( | ) | const [pure virtual] |
Gets the height of the canvas.
| virtual HGL::Type::IProject* HGL::ImageOutput::ICanvas::getProject | ( | ) | const [pure virtual] |
Gets the complete processed project.
| virtual const std::vector<RGBA> HGL::ImageOutput::ICanvas::getRow | ( | uint16_t | row | ) | const [pure virtual] |
Gets a row of the canvas as vector of colors.
| row | number of the row |
| virtual int HGL::ImageOutput::ICanvas::getSCQColors | ( | ) | const [pure virtual] |
Returns the amount of colors for spatial color quantization.
0 if no spatial color quantization is requested | virtual uint16_t HGL::ImageOutput::ICanvas::getWidth | ( | ) | const [pure virtual] |
Gets the width of the canvas.
| virtual bool HGL::ImageOutput::ICanvas::isBackground | ( | uint16_t | x, | |
| uint16_t | y | |||
| ) | const [pure virtual] |
Checks if the given position is the unaltered background.
| x | the x-coordinate | |
| y | the y-coordinate |
true if the background is unaltered, false otherwise
1.6.1