Interface for rendering images to concrete file formats.
More...
#include "icanvas.h"
Interface for rendering images to concrete file formats.
- Author
- Heiko Schäfer heiko.nosp@m.@hgl.nosp@m..rang.nosp@m.un.d.nosp@m.e
- Copyright
- BSD License
- Examples:
- exampleoutput.cpp, and exampleoutput.h.
A colorspace set.
- Since
- 0.5.5
| virtual HGL::ImageOutput::ICanvas::~ICanvas |
( |
| ) |
|
|
virtual |
| HGL::ImageOutput::ICanvas::ICanvas |
( |
| ) |
|
|
protected |
| 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.
- Returns
- bool
true if the output image should get scaled explicitely, false otherwise
- Since
- 0.5.2
| virtual const RGBA& HGL::ImageOutput::ICanvas::getBackgroundColor |
( |
| ) |
const |
|
pure virtual |
Gets the background color of the ICanvas.
- Returns
- the background color of the ICanvas
- Since
- 0.5.14
| virtual const COLORSPACE HGL::ImageOutput::ICanvas::getColorSpace |
( |
| ) |
const |
|
pure virtual |
| virtual uint16_t HGL::ImageOutput::ICanvas::getHeight |
( |
| ) |
const |
|
pure virtual |
Gets the height of the canvas.
- Returns
- the height in pixels
| virtual HGL::Type::IProject* HGL::ImageOutput::ICanvas::getProject |
( |
| ) |
const |
|
pure virtual |
Gets the complete processed project.
- Returns
- the complete processed project
- Since
- 0.5.21
| virtual const RGBA* HGL::ImageOutput::ICanvas::getRow |
( |
uint16_t |
row | ) |
const |
|
pure virtual |
Gets a row of the canvas as array of colors.
- Parameters
-
- Returns
- an array of colors of getWidth() size
| virtual int HGL::ImageOutput::ICanvas::getSCQColors |
( |
| ) |
const |
|
pure virtual |
Returns the amount of colors for spatial color quantization.
- Returns
- the amount of colors or
0 if no spatial color quantization is requested
- Since
- 0.4.50
| virtual uint16_t HGL::ImageOutput::ICanvas::getWidth |
( |
| ) |
const |
|
pure virtual |
Gets the width of the canvas.
- Returns
- the width in pixels
| virtual bool HGL::ImageOutput::ICanvas::isBackground |
( |
uint16_t |
x, |
|
|
uint16_t |
y |
|
) |
| const |
|
pure virtual |
Checks if the given position is the unaltered background.
- Parameters
-
| x | the x-coordinate |
| y | the y-coordinate |
- Returns
true if the background is unaltered, false otherwise
- Since
- 0.5.14