#include <bitmap-helpers.hh>
|
| static Ptr | create (int width, int height, cairo_format_t format) |
| |
| static Ptr | create (int width, int height, cairo_format_t format, int stride, std::shared_ptr< unsigned char > const &data) |
| |
|
| | BitmapSurface (int width, int height, cairo_format_t format) |
| |
| | BitmapSurface (int width, int height, cairo_format_t format, int stride, std::shared_ptr< unsigned char > const &data) |
| |
|
| cairo_surface_t *const | surface |
| |
| std::shared_ptr< unsigned char > const | data |
| |
◆ Ptr
◆ ~BitmapSurface()
| Scroom::Bitmap::BitmapSurface::~BitmapSurface |
( |
| ) |
|
24{ cairo_surface_destroy(
surface); }
cairo_surface_t *const surface
Definition bitmap-helpers.hh:28
◆ BitmapSurface() [1/4]
| Scroom::Bitmap::BitmapSurface::BitmapSurface |
( |
const BitmapSurface & |
| ) |
|
|
delete |
◆ BitmapSurface() [2/4]
| Scroom::Bitmap::BitmapSurface::BitmapSurface |
( |
BitmapSurface && |
| ) |
|
|
delete |
◆ BitmapSurface() [3/4]
| Scroom::Bitmap::BitmapSurface::BitmapSurface |
( |
int |
width, |
|
|
int |
height, |
|
|
cairo_format_t |
format |
|
) |
| |
|
private |
29 :
surface(cairo_image_surface_create(format, width, height))
30 {
31 }
◆ BitmapSurface() [4/4]
| Scroom::Bitmap::BitmapSurface::BitmapSurface |
( |
int |
width, |
|
|
int |
height, |
|
|
cairo_format_t |
format, |
|
|
int |
stride, |
|
|
std::shared_ptr< unsigned char > const & |
data |
|
) |
| |
|
private |
40 :
surface(cairo_image_surface_create_for_data(data_.get(), format, width, height, stride))
42 {
43 }
std::shared_ptr< unsigned char > const data
Definition bitmap-helpers.hh:29
◆ create() [1/2]
| BitmapSurface::Ptr Scroom::Bitmap::BitmapSurface::create |
( |
int |
width, |
|
|
int |
height, |
|
|
cairo_format_t |
format |
|
) |
| |
|
static |
14 {
16 }
BitmapSurface(const BitmapSurface &)=delete
std::shared_ptr< BitmapSurface > Ptr
Definition bitmap-helpers.hh:25
Referenced by Operations1bpp::cache(), Operations8bpp::cache(), Operations24bpp::cache(), Operations::cache(), OperationsColormapped::cache(), OperationsCMYK32::cache(), OperationsCMYK16::cache(), OperationsCMYK8::cache(), OperationsCMYK4::cache(), CommonOperations::cacheZoom(), Operations1bppClipped::cacheZoom(), and TransformPresentation::redraw().
◆ create() [2/2]
| BitmapSurface::Ptr Scroom::Bitmap::BitmapSurface::create |
( |
int |
width, |
|
|
int |
height, |
|
|
cairo_format_t |
format, |
|
|
int |
stride, |
|
|
std::shared_ptr< unsigned char > const & |
data |
|
) |
| |
|
static |
◆ get()
| cairo_surface_t * Scroom::Bitmap::BitmapSurface::get |
( |
| ) |
|
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ data
| std::shared_ptr<unsigned char> const Scroom::Bitmap::BitmapSurface::data |
|
private |
◆ surface
| cairo_surface_t* const Scroom::Bitmap::BitmapSurface::surface |
|
private |
The documentation for this class was generated from the following files: