#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 2096 of file DMSrcSink.cpp.
2096 {
2097#if defined(SK_ENABLE_SVG)
2098 if (
src.pageCount() > 1) {
2099 int pageCount =
src.pageCount();
2100 if (fPageIndex > pageCount - 1) {
2101 return Result::Fatal(
"Page index %d too high for document with only %d pages.",
2102 fPageIndex, pageCount);
2103 }
2104 }
2105 return src.draw(fPageIndex,
2108 dst)
2109 .get(),
2110 nullptr);
2111#else
2112 (void)fPageIndex;
2114#endif
2115}
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: