Ipelib

- Main Page
- Related Pages
- Modules
- Classes

- Class List
- Class Hierarchy
- Class Members

Public Types | Public Member Functions | Static Public Member Functions | List of all members
ipe::Thumbnail Class Reference

`#include <ipethumbs.h>`

## Public Types
enum | TargetFormat { ESVG, EPNG, EPS, EPDF }

## Public Member Functions
| Thumbnail (const Document *doc, int width)
| ~Thumbnail ()
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)

## Static Public Member Functions
static void | savePNG (cairo_surface_t *surface, const char *dst)

## Member Enumeration Documentation

enum ipe::Thumbnail::TargetFormat

Enumerator
ESVG |
EPNG |
EPS |
EPDF |

## Constructor & Destructor Documentation

Thumbnail::Thumbnail | ( | const Document * | doc,
|  | int | width
| ) |  |

References ipe::Document::cascade(), ipe::Cascade::findLayout(), ipe::Rect::height(), ipe::Fonts::New(), ipe::Layout::paper(), ipe::Document::resources(), width(), and ipe::Rect::width().

Thumbnail::~Thumbnail | ( |  | ) |

## Member Function Documentation

int ipe::Thumbnail::width | ( |  | ) | const
| inline

Referenced by ipe::CanvasBase::selectPageOrView(), and Thumbnail().

int ipe::Thumbnail::height | ( |  | ) | const
| inline

References render(), savePNG(), and saveRender().

Referenced by ipe::PageSelector::PageSelector(), and ipe::CanvasBase::selectPageOrView().

Buffer Thumbnail::render | ( | const Page * | page,
|  | int | view
| ) |  |

References ipe::Document::cascade(), ipe::Page::count(), ipe::Buffer::data(), ipe::Object::draw(), ipe::Layout::iOrigin, ipe::Page::object(), ipe::Page::objectVisible(), ipe::Layout::paper(), ipe::Painter::pushMatrix(), savePNG(), ipe::Rect::topLeft(), ipe::Vector::x, and ipe::Vector::y.

Referenced by height(), and ipe::PageSelector::PageSelector().

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::Object::draw(), EPDF, EPNG, EPS, ESVG, ipe::Page::findLayer(), ipe::Cascade::findSymbol(), ipe::Rect::height(), ipe::Page::object(), ipe::Page::objectVisible(), ipe::Page::pageBBox(), ipe::Layout::paper(), ipe::Painter::pushMatrix(), savePNG(), ipe::Rect::topLeft(), ipe::Rect::width(), ipe::Vector::x, and ipe::Vector::y.

Referenced by height().

void Thumbnail::savePNG | ( | cairo_surface_t * | surface,
|  | const char * | dst
| ) |  |
| static

Referenced by height(), render(), and saveRender().

The documentation for this class was generated from the following files:

- ipethumbs.h
- ipethumbs.cpp