#include <gfx_image_vector.h>
The VectorImageInterface represents a vector image (internally SVG). This class wraps the vector image into a ImageBaseRef. The draw functions then extract that and draw the image as vector image.
Public Member Functions | |
MAXON_METHOD Result< void > | Init (const Url &url) |
MAXON_METHOD Result< void > | Init (const SVGDocument &svgDocument) |
MAXON_METHOD const Url & | GetUrl () const |
MAXON_METHOD Result< ForwardRef< SVGDocument > > | GetSVGDocument () const |
Private Member Functions | |
MAXON_INTERFACE (VectorImageInterface, MAXON_REFERENCE_NORMAL, "net.maxon.image.interface.vectorimage") | |
|
private |
MAXON_METHOD Result<void> Init | ( | const Url & | url | ) |
Initialized the Vector image with the given url of an svg image.
[in] | url | Url of a svg file to load. |
MAXON_METHOD Result<void> Init | ( | const SVGDocument & | svgDocument | ) |
Initializes the image with a SVGDocument.
[in] | svgDocument | The image. |
MAXON_METHOD const Url& GetUrl | ( | ) | const |
GetUrl returns the url of the image.
MAXON_METHOD Result<ForwardRef<SVGDocument> > GetSVGDocument | ( | ) | const |
GetSVGDocument returns the SVGDocument connected to this image.