Flutter Engine
The Flutter Engine
|
#include <SkSVGCanvas.h>
Public Types | |
enum | { kConvertTextToPaths_Flag = 0x01 , kNoPrettyXML_Flag = 0x02 , kRelativePathEncoding_Flag = 0x04 } |
Static Public Member Functions | |
static std::unique_ptr< SkCanvas > | Make (const SkRect &bounds, SkWStream *, uint32_t flags=0) |
Definition at line 20 of file SkSVGCanvas.h.
anonymous enum |
Enumerator | |
---|---|
kConvertTextToPaths_Flag | |
kNoPrettyXML_Flag | |
kRelativePathEncoding_Flag |
Definition at line 22 of file SkSVGCanvas.h.
|
static |
Returns a new canvas that will generate SVG commands from its draw calls, and send them to the provided stream. Ownership of the stream is not transfered, and it must remain valid for the lifetime of the returned canvas.
The canvas may buffer some drawing calls, so the output is not guaranteed to be valid or complete until the canvas instance is deleted.
The 'bounds' parameter defines an initial SVG viewport (viewBox attribute on the root SVG element).
Definition at line 19 of file SkSVGCanvas.cpp.