|
| Bitmap (BitmapType aType, int32_t aWidth, int32_t aHeight, int32_t aRowBytes=0, std::shared_ptr< CartoTypeCore::Palette > aPalette=nullptr) |
|
| Bitmap (InputStream &aInputStream) |
|
| Bitmap (const Bitmap &aOther) |
|
| Bitmap (Bitmap &&aOther) noexcept |
|
| Bitmap (const BitmapView &aOther) |
|
Bitmap & | operator= (const BitmapView &aOther) |
|
Bitmap & | operator= (Bitmap &&aOther) |
|
std::vector< uint8_t > | DetachData () |
|
| BitmapView (BitmapType aType, uint8_t *aData, uint32_t aWidth, uint32_t aHeight, uint32_t aRowBytes, std::shared_ptr< Palette > aPalette=nullptr) |
|
| BitmapView (const Bitmap &aBitmap)=delete |
|
BitmapView & | operator= (const Bitmap &aBitmap)=delete |
|
TColorFunction | ColorFunction () const |
|
Bitmap | Copy (int32_t aExpansion=0) const |
|
Bitmap | Blur (bool aGaussian, double aWidth) const |
|
Bitmap | Palettize () const |
|
Bitmap | UnPalettize () const |
|
Bitmap | Trim (Rect &aBounds, bool aTrimLeft=true, bool aTrimRight=true, bool aTrimTop=true, bool aTrimBottom=true) const |
|
Bitmap | Clip (Rect aClip) const |
|
Bitmap | Clip (const MPath &aPath, Rect &aNewBounds) const |
|
Result | WritePng (OutputStream &aOutputStream, bool aPalettize) const |
|
Result | Write (OutputStream &aOutput) const |
|
BitmapType | Type () const |
|
int32_t | BitsPerPixel () const |
|
const uint8_t * | Data () const |
|
uint8_t * | Data () |
|
std::shared_ptr< CartoTypeCore::Palette > | Palette () const |
|
void | SetPalette (std::shared_ptr< CartoTypeCore::Palette > aPalette) |
|
int32_t | DataBytes () const |
|
int32_t | Width () const |
|
int32_t | Height () const |
|
int32_t | RowBytes () const |
|
void | Clear () |
|
void | ClearToWhite () |
|
bool | operator< (const BitmapView &aOther) const |
|
bool | operator== (const BitmapView &aOther) const |
|
|
using | TColorFunction = Color(*)(const BitmapView &aBitmap, uint32_t aX, uint32_t aY) |
|
static Color | Color1BitMono (const BitmapView &aBitmap, uint32_t aX, uint32_t aY) |
|
static Color | Color8BitMono (const BitmapView &aBitmap, uint32_t aX, uint32_t aY) |
|
static Color | Color8BitPalette (const BitmapView &aBitmap, uint32_t aX, uint32_t aY) |
|
static Color | Color16BitMono (const BitmapView &aBitmap, uint32_t aX, uint32_t aY) |
|
static Color | Color16BitColor (const BitmapView &aBitmap, uint32_t aX, uint32_t aY) |
|
static Color | Color24BitColor (const BitmapView &aBitmap, uint32_t aX, uint32_t aY) |
|
static Color | Color32BitColor (const BitmapView &aBitmap, uint32_t aX, uint32_t aY) |
|
static Color | ColorUnsupported (const BitmapView &aBitmap, uint32_t aX, uint32_t aY) |
|
uint8_t * | iData = nullptr |
|
std::shared_ptr< CartoTypeCore::Palette > | iPalette |
|
uint32_t | iWidth = 0 |
|
uint32_t | iHeight = 0 |
|
uint32_t | iRowBytes = 0 |
|
BitmapType | iType = BitmapType::A8 |
|
A bitmap that owns its data.