#include <gr_UnixCairoGraphics.h>
Public Member Functions | |
~GR_UnixCairoGraphicsBase () | |
virtual GR_Image * | createNewImage (const char *pszName, const UT_ConstByteBufPtr &pBB, const std::string &mimetype, UT_sint32 iDisplayWidth, UT_sint32 iDisplayHeight, GR_Image::GRType=GR_Image::GRT_Raster) |
Protected Member Functions | |
GR_UnixCairoGraphicsBase () | |
GR_UnixCairoGraphicsBase (cairo_t *cr, UT_uint32 iDeviceResolution) |
GR_UnixCairoGraphicsBase::~GR_UnixCairoGraphicsBase | ( | ) |
GR_UnixCairoGraphicsBase::GR_UnixCairoGraphicsBase | ( | ) | [protected] |
GR_UnixCairoGraphicsBase::GR_UnixCairoGraphicsBase | ( | cairo_t * | cr, | |
UT_uint32 | iDeviceResolution | |||
) | [protected] |
GR_Image * GR_UnixCairoGraphicsBase::createNewImage | ( | const char * | pszName, | |
const UT_ConstByteBufPtr & | pBB, | |||
const std::string & | mimetype, | |||
UT_sint32 | iWidth, | |||
UT_sint32 | iHeight, | |||
GR_Image::GRType | iType = GR_Image::GRT_Raster | |||
) | [virtual] |
Create a new image from the Raster rgba byte buffer defined by pBB. The dimensions of iWidth and iHeight are in logical units but the image doesn't scale if the resolution or zoom changes. Instead you must create a new image.
Reimplemented from GR_Graphics.
References GR_Image::convertFromBuffer(), GR_CairoGraphics::GR_UnixImage, GR_Image::GRT_Raster, GR_Image::GRT_Vector, GR_Graphics::tdu(), UT_ASSERT, and UT_SHOULD_NOT_HAPPEN.