Guiliani  Version 2.5 revision 7293 (documentation build 13)
GUIImageDecoderSVG.h
1#ifndef CGUIIMAGEDECODERSVG_H
2#define CGUIIMAGEDECODERSVG_H
3
4#include "eC_Types.h"
5#include "eC_File.h"
6
7#include "GUIImageDecoder.h"
8#include "GUIImageData.h"
9
10#include "nanosvg.h"
11#include "nanosvgrast.h"
12
13#include <vector>
14
15#include "GUIException.h"
16#include "SVGShape.h"
17
23{
24 public:
29
30 virtual eC_Bool LoadImg(CGUIImageData& rkImageData, eC_File* pkImageFile);
31
32private:
34 NSVGimage* Parse(eC_File* pkFile, const eC_Char* units, eC_Value dpi);
35
37 void ParsePaths(NSVGshape const* pkParserShape, CSVGShape& kShape);
38 void ParseFill(NSVGshape const* pkParserShape, CSVGShape& kShape);
39 void ParseStroke(NSVGshape const* pkParserShape, CSVGShape& kShape);
40 void ParseGradients(const NSVGgradient& kParserGradient, CSVGGradient& kGradient);
41
43 eC_UInt TranslateColor(eC_UInt c, eC_UByte opacity);
44
48 void XTransform(CSVGShape* pkSvgShapes, const eC_UInt& uiShapeCount);
49
51 NSVGrasterizer* m_pkRaster;
52
54 eC_UInt CalculateSizeOfSVG(CSVGShape* pkSvgShapes, const eC_UInt& uiShapeCount);
55};
56
57#endif // CGUIIMAGEDECODERSVG_H
Contains information about an image loaded by CGUIImageLoader.
Definition: GUIImageData.h:29
Base class for the image decoders.
Definition: GUIImageDecoder.h:25
Definition: GUIImageDecoderSVG.h:23
virtual eC_Bool LoadImg(CGUIImageData &rkImageData, eC_File *pkImageFile)
Definition: SVGShape.h:9
Definition: SVGShape.h:62