8 #ifndef META_OCEAN_PLATFORM_WIN_BITMAP_H
9 #define META_OCEAN_PLATFORM_WIN_BITMAP_H
29 class OCEAN_PLATFORM_WIN_EXPORT
Bitmap
92 inline unsigned int width()
const;
98 inline unsigned int height()
const;
117 inline HDC dc()
const;
123 inline const uint8_t* data()
const;
129 inline uint8_t* data();
135 inline unsigned int size()
const;
141 inline unsigned int paddingElements()
const;
148 inline unsigned int strideElements()
const;
237 unsigned int bitmapWidth_ = 0u;
240 unsigned int bitmapHeight_ = 0u;
249 uint8_t* bitmapData_ =
nullptr;
252 unsigned int bitmapSize_ = 0u;
255 unsigned int bitmapPaddingElements_ = 0u;
258 unsigned int bitmapStrideElements_ = 0u;
261 HDC bitmapDC_ =
nullptr;
264 HBITMAP bitmapHandle_ =
nullptr;
This class implements Ocean's image class.
Definition: Frame.h:1792
Definition of a frame type composed by the frame dimension, pixel format and pixel origin.
Definition: Frame.h:30
PixelFormat
Definition of all pixel formats available in the Ocean framework.
Definition: Frame.h:183
@ FORMAT_UNDEFINED
Undefined pixel format.
Definition: Frame.h:187
PixelOrigin
Defines different types of frame origin positions.
Definition: Frame.h:1046
@ ORIGIN_INVALID
Invalid origin type.
Definition: Frame.h:1048
This class implements an object able to allocate memory.
Definition: base/Memory.h:22
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15