Derived GlyphData implementation for bitmap fonts. More...
#include <kanzi/core.ui/font/bitmap_font_file.hpp>
Public Member Functions | |
| BitmapGlyphData (size_t width, size_t height, vector< byte > bitmap) | |
| Constructor. | |
| ~BitmapGlyphData () override | |
| Destructor. | |
Public Member Functions inherited from kanzi::FontFile::GlyphData | |
| const byte * | getBitmapData () const |
| Returns the pointer to bitmap data. | |
| GraphicsFormat | getColorFormat () const |
| Returns the color format of the glyph bitmap data. | |
| DataFormat | getDataFormat () const |
| Returns the data format of the glyph bitmap. | |
| size_t | getHeight () const |
| Returns the height of a bitmap. | |
| size_t | getWidth () const |
| Returns the width of a bitmap. | |
| GlyphData (size_t width, size_t height, const byte *bitmap) | |
| Constructor. | |
| GlyphData (size_t width, size_t height, const byte *bitmap, DataFormat dataFormat) | |
| Constructor. | |
| virtual | ~GlyphData () |
| Destructor. | |
Additional Inherited Members | |
Public Types inherited from kanzi::FontFile::GlyphData | |
| enum class | DataFormat { ALPHA8 , B8G8R8A8 , R8G8B8A8_VerticallyFlipped } |
| Specifies the data format of the glyph. More... | |
Derived GlyphData implementation for bitmap fonts.
Releases the bitmap data on destruction.
|
explicit |
Constructor.
| width | Width of the bitmap. |
| height | Height of the bitmap. |
| bitmap | Pointer to the bitmap. |
|
override |
Destructor.