#include <DMSrcSink.h>
Definition at line 553 of file DMSrcSink.h.
◆ SVGSink()
DM::SVGSink::SVGSink |
( |
int |
pageIndex = 0 | ) |
|
◆ draw()
Implements DM::Sink.
Definition at line 2097 of file DMSrcSink.cpp.
2097 {
2098#if defined(SK_ENABLE_SVG)
2099 if (
src.pageCount() > 1) {
2100 int pageCount =
src.pageCount();
2101 if (fPageIndex > pageCount - 1) {
2102 return Result::Fatal(
"Page index %d too high for document with only %d pages.",
2103 fPageIndex, pageCount);
2104 }
2105 }
2106 return src.draw(fPageIndex,
2110 .get(),
2111 nullptr);
2112#else
2113 (void)fPageIndex;
2115#endif
2116}
static Result Fatal(const char *fmt,...) SK_PRINTF_LIKE(1
static std::unique_ptr< SkCanvas > Make(const SkRect &bounds, SkWStream *, uint32_t flags=0)
static constexpr SkRect MakeWH(float w, float h)
◆ fileExtension()
const char * DM::SVGSink::fileExtension |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ flags()
The documentation for this class was generated from the following files: