Public Member Functions | |
| GR_UnixCroppedImage (const char *pszName) | |
| GR_UnixCroppedImage (const char *pszName, GdkPixbuf *pPixbuf) | |
| virtual void | cairoSetSource (cairo_t *) |
| void | crop (double left, double top, double right, double bottom) |
Private Attributes | |
| double | m_CropLeft |
| double | m_CropRight |
| double | m_CropTop |
| double | m_CropBottom |
| GR_UnixCroppedImage::GR_UnixCroppedImage | ( | const char * | pszName | ) |
| GR_UnixCroppedImage::GR_UnixCroppedImage | ( | const char * | pszName, | |
| GdkPixbuf * | pPixbuf | |||
| ) |
| void GR_UnixCroppedImage::cairoSetSource | ( | cairo_t * | cr | ) | [virtual] |
Reimplemented from GR_UnixImage.
References GR_UnixImage::getData(), GR_Image::getDisplayHeight(), GR_Image::getDisplayWidth(), m_CropBottom, m_CropLeft, m_CropRight, m_CropTop, and UT_return_if_fail.
| void GR_UnixCroppedImage::crop | ( | double | left, | |
| double | top, | |||
| double | right, | |||
| double | bottom | |||
| ) |
References m_CropBottom, m_CropLeft, m_CropRight, and m_CropTop.
Referenced by GR_UnixImage::makeSubimage().
double GR_UnixCroppedImage::m_CropBottom [private] |
Referenced by cairoSetSource(), and crop().
double GR_UnixCroppedImage::m_CropLeft [private] |
Referenced by cairoSetSource(), and crop().
double GR_UnixCroppedImage::m_CropRight [private] |
Referenced by cairoSetSource(), and crop().
double GR_UnixCroppedImage::m_CropTop [private] |
Referenced by cairoSetSource(), and crop().
1.7.1