#include <Cairo.h>
Inherits cinder::cairo::SurfaceBase.
Public Member Functions | |
SurfaceImage () | |
SurfaceImage (int32_t width, int32_t height, bool hasAlpha=false) | |
SurfaceImage (const uint8_t *dataPtr, int32_t width, int32_t height, int32_t stride, bool hasAlpha=false) | |
SurfaceImage (cinder::Surface ciSurface) | |
Creates a copy of ciSurface. | |
SurfaceImage (ImageSourceRef imageSource) | |
SurfaceImage (const SurfaceImage &other) | |
uint8_t * | getData () |
const uint8_t * | getData () const |
int32_t | getStride () const |
cinder::Surface & | getSurface () |
const cinder::Surface & | getSurface () const |
void | markDirty () |
Call this when modifying the Surface's pixels outside of Cairo. | |
cairo_surface_t * | getCairoSurface () const |
int32_t | getWidth () const |
int32_t | getHeight () const |
float | getAspectRatio () const |
Area | getBounds () const |
Vec2i | getSize () const |
void | flush () |
Protected Member Functions | |
void | initCinderSurface (bool alpha, cairo_surface_t *cairoSurface) |
Static Protected Member Functions | |
static void | surfaceDeallocator (void *data) |
Protected Attributes | |
cinder::Surface | mCinderSurface |
cairo_surface_t * | mCairoSurface |
int32_t | mWidth |
int32_t | mHeight |
cinder::cairo::SurfaceImage::SurfaceImage | ( | int32_t | width, |
int32_t | height, | ||
bool | hasAlpha = false |
||
) |
cinder::cairo::SurfaceImage::SurfaceImage | ( | const uint8_t * | dataPtr, |
int32_t | width, | ||
int32_t | height, | ||
int32_t | stride, | ||
bool | hasAlpha = false |
||
) |
cinder::cairo::SurfaceImage::SurfaceImage | ( | cinder::Surface | ciSurface | ) |
Creates a copy of ciSurface.
cinder::cairo::SurfaceImage::SurfaceImage | ( | ImageSourceRef | imageSource | ) |
cinder::cairo::SurfaceImage::SurfaceImage | ( | const SurfaceImage & | other | ) |
uint8_t * cinder::cairo::SurfaceImage::getData | ( | ) |
const uint8_t* cinder::cairo::SurfaceImage::getData | ( | ) | const |
int32_t cinder::cairo::SurfaceImage::getStride | ( | ) | const |
const cinder::Surface& cinder::cairo::SurfaceImage::getSurface | ( | ) | const |
Call this when modifying the Surface's pixels outside of Cairo.
void cinder::cairo::SurfaceImage::initCinderSurface | ( | bool | alpha, |
cairo_surface_t * | cairoSurface | ||
) | [protected] |
void cinder::cairo::SurfaceImage::surfaceDeallocator | ( | void * | data | ) | [static, protected] |
cairo_surface_t* cinder::cairo::SurfaceBase::getCairoSurface | ( | ) | const [inherited] |
int32_t cinder::cairo::SurfaceBase::getWidth | ( | ) | const [inherited] |
int32_t cinder::cairo::SurfaceBase::getHeight | ( | ) | const [inherited] |
float cinder::cairo::SurfaceBase::getAspectRatio | ( | ) | const [inherited] |
Area cinder::cairo::SurfaceBase::getBounds | ( | ) | const [inherited] |
Vec2i cinder::cairo::SurfaceBase::getSize | ( | ) | const [inherited] |
void cinder::cairo::SurfaceBase::flush | ( | ) | [inherited] |
cairo_surface_t* cinder::cairo::SurfaceBase::mCairoSurface [protected, inherited] |
int32_t cinder::cairo::SurfaceBase::mWidth [protected, inherited] |
int32_t cinder::cairo::SurfaceBase::mHeight [protected, inherited] |