An abstract Cairo image. More...
#include <gr_CairoGraphics.h>
Public Member Functions | |
virtual GR_Image * | createImageSegment (GR_Graphics *pG, const UT_Rect &rec) |
virtual void | cairoSetSource (cairo_t *)=0 |
Protected Member Functions | |
virtual GR_CairoRasterImage * | makeSubimage (const std::string &n, UT_sint32 x, UT_sint32 y, UT_sint32 w, UT_sint32 h) const =0 |
An abstract Cairo image.
virtual void GR_CairoRasterImage::cairoSetSource | ( | cairo_t * | ) | [pure virtual] |
Implemented in GR_CocoaImage, GR_UnixCroppedImage, and GR_UnixImage.
GR_Image * GR_CairoRasterImage::createImageSegment | ( | GR_Graphics * | pG, | |
const UT_Rect & | rec | |||
) | [virtual] |
The idea is to create a new image from the rectangular segment in device units defined by UT_Rect rec. The Image should be deleted by the calling routine.
Implements GR_Image.
References GR_Image::getDisplayHeight(), GR_Image::getDisplayWidth(), GR_Image::getName(), UT_Rect::height, UT_Rect::left, makeSubimage(), GR_Image::setDisplaySize(), GR_Graphics::tdu(), UT_Rect::top, UT_std_string_sprintf(), and UT_Rect::width.
Referenced by GR_RSVGVectorImage::createImageSegment().
virtual GR_CairoRasterImage* GR_CairoRasterImage::makeSubimage | ( | const std::string & | n, | |
UT_sint32 | x, | |||
UT_sint32 | y, | |||
UT_sint32 | w, | |||
UT_sint32 | h | |||
) | const [protected, pure virtual] |
Implemented in GR_CocoaImage, and GR_UnixImage.
Referenced by createImageSegment().