Ipelib
|
#include <ipethumbs.h>
Public Types | |
enum | TargetFormat { ESVG, EPNG, EPS, EPDF } |
Public Member Functions | |
Thumbnail (const Document *doc, int width) | |
int | width () const |
int | height () const |
Buffer | render (const Page *page, int view) |
bool | saveRender (TargetFormat fm, const char *dst, const Page *page, int view, double zoom, bool transparent, bool nocrop) |
Thumbnail::Thumbnail | ( | const Document * | doc, |
int | width | ||
) |
|
inline |
Referenced by ipe::PdfThumbnail::PdfThumbnail(), ipe::CanvasBase::selectPageOrView(), and Thumbnail().
|
inline |
References render(), and saveRender().
Referenced by ipe::PageSelector::fill(), and ipe::CanvasBase::selectPageOrView().
References ipe::Document::cascade(), ipe::Page::count(), ipe::Buffer::data(), ipe::Object::draw(), ipe::Page::layerMatrices(), ipe::Page::layerOf(), ipe::Page::object(), ipe::Page::objectVisible(), ipe::Layout::paper(), ipe::Painter::setAttributeMap(), ipe::Rect::topLeft(), ipe::Page::viewMap(), ipe::Vector::x, and ipe::Vector::y.
Referenced by ipe::PageSelector::fill(), height(), and ipe::PdfThumbnail::height().
bool Thumbnail::saveRender | ( | TargetFormat | fm, |
const char * | dst, | ||
const Page * | page, | ||
int | view, | ||
double | zoom, | ||
bool | transparent, | ||
bool | nocrop | ||
) |
References ipe::Attribute::BACKGROUND(), ipe::Document::cascade(), ipe::Page::count(), ipe::Text::draw(), ipe::Object::draw(), EPDF, EPNG, EPS, ESVG, ipe::Page::findLayer(), ipe::Cascade::findSymbol(), ipe::Platform::fopen(), ipe::Rect::height(), ipe::Page::layerMatrices(), ipe::Page::layerOf(), ipe::Page::object(), ipe::Page::objectVisible(), ipe::Page::pageBBox(), ipe::Layout::paper(), ipe::Painter::setAttributeMap(), ipe::Page::titleText(), ipe::Rect::topLeft(), ipe::Page::viewMap(), ipe::Rect::width(), ipe::Vector::x, and ipe::Vector::y.
Referenced by height().