A base class interface for a bitmap abstraction around the different drawing back end bitmap representations.
More...
#include <IGraphicsPrivate.h>
A base class interface for a bitmap abstraction around the different drawing back end bitmap representations.
In most cases it does own the bitmap data, the exception being with NanoVG, where the image is loaded onto the GPU as a texture, but still needs to be freed. Most of the time end-users will deal with IBitmap rather than APIBitmap, which is used behind the scenes.
Definition at line 91 of file IGraphicsPrivate.h.
| APIBitmap::APIBitmap |
( |
BitmapData |
pBitmap, |
|
|
int |
w, |
|
|
int |
h, |
|
|
float |
scale, |
|
|
float |
drawScale |
|
) |
| |
|
inline |
APIBitmap constructor.
- Parameters
-
| pBitmap | pointer or integer index (NanoVG) to the image data |
| w | The width of the bitmap |
| h | The height of the bitmap |
| scale | An integer representing the scale of this bitmap in relation to a 1:1 pixel screen, e.g. 2 for an @2x bitmap |
| drawScale | The draw scale at which this API bitmap was created (used in the context of layers) |
Definition at line 101 of file IGraphicsPrivate.h.
◆ APIBitmap() [2/2]
◆ ~APIBitmap()
| virtual APIBitmap::~APIBitmap |
( |
| ) |
|
|
inlinevirtual |
◆ GetBitmap()
| BitmapData APIBitmap::GetBitmap |
( |
| ) |
const |
|
inline |
◆ GetDrawScale()
| float APIBitmap::GetDrawScale |
( |
| ) |
const |
|
inline |
◆ GetHeight()
| int APIBitmap::GetHeight |
( |
| ) |
const |
|
inline |
◆ GetScale()
| float APIBitmap::GetScale |
( |
| ) |
const |
|
inline |
◆ GetWidth()
| int APIBitmap::GetWidth |
( |
| ) |
const |
|
inline |
◆ SetBitmap()
| void APIBitmap::SetBitmap |
( |
BitmapData |
pBitmap, |
|
|
int |
w, |
|
|
int |
h, |
|
|
float |
scale, |
|
|
float |
drawScale |
|
) |
| |
|
inline |
Used to initialise the members after construction.
- Parameters
-
| pBitmap | pointer or integer index (NanoVG) to the image data |
| w | The width of the bitmap |
| h | The height of the bitmap |
| scale | The scale of this bitmap in relation to a 1:1 pixel screen, e.g. 2 for an @2x bitmap |
| drawScale | The draw scale at which this API bitmap was created (used in the context of layers) |
Definition at line 128 of file IGraphicsPrivate.h.
The documentation for this class was generated from the following file: