Public Member Functions | Protected Member Functions

GR_UnixCairoGraphicsBase Class Reference

#include <gr_UnixCairoGraphics.h>

Inheritance diagram for GR_UnixCairoGraphicsBase:
GR_CairoGraphics GR_Graphics GR_CairoPrintGraphics GR_UnixCairoGraphics

List of all members.

Public Member Functions

 ~GR_UnixCairoGraphicsBase ()
virtual GR_ImagecreateNewImage (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)

Constructor & Destructor Documentation

GR_UnixCairoGraphicsBase::~GR_UnixCairoGraphicsBase (  ) 
GR_UnixCairoGraphicsBase::GR_UnixCairoGraphicsBase (  )  [protected]
GR_UnixCairoGraphicsBase::GR_UnixCairoGraphicsBase ( cairo_t *  cr,
UT_uint32  iDeviceResolution 
) [protected]

Member Function Documentation

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.


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