#include <root.h>


Public Member Functions | |
IRoot interface | |
| Mode | getMode () |
| A status-query method. | |
| QImage | toImage () |
| Saves current decoding state into a QImage. | |
| bool | encode (const QImage &toEncode, const UpdateInfo &updateInfo) |
| Encodes an image - returns false on exception, getMode() have to be to be Clear. | |
| void | decodeAct (DecodeAct action, int count=1) |
| Performs a decoding action (e.g. clearing, multiple iteration). | |
| bool | toStream (std::ostream &file) |
| Saves an encoded image into a stream, returns true on success. | |
| bool | fromStream (std::istream &file, int zoom) |
Loads image from a file - returns true on success (to be run on in Clear state), can load in bigger size: dimension == orig_dim*2^zoom. | |
Protected Types | |
| enum | Settings |
| Indices for settings. | |
Protected Attributes | |
| Mode | myMode |
| the mode of the tree, returned by getMode | |
| int | width |
| zoomed width of the image | |
| int | height |
| zoomed height of the image | |
| int | zoom |
the zoom used (dimensions multiplied by 2^zoom) | |
Controls the number of encoding threads, the color-transforming module (IColorTransformer) the pixel-shape-transforming module (IShapeTransformer), quality 0-100%, the module for quality conversion (IQuality2SE) and the maximum domain count.
Definition at line 13 of file root.h.
1.5.8