Contains plain image data.
More...
#include <ImageAttribute.h>
Contains plain image data.
◆ Type
RawImage encoding type.
| Enumerator |
|---|
| GRAYSCALE | Raw data where image pixels are stored in grayscale format.
The data are in format where each pixel has 1 byte. Each byte represent color. Then pixels are stored by columns, it means that data starts with row index 1 and column index 1 pixel and ends with last row and last column pixel.
|
| BGR | Raw data where image pixels are stored in BGR format.
The data are in format where each pixel has 3 bytes. Each byte represent color in order Blue, Green, Red. Then pixels are stored by columns, it means that data starts with row index 1 and column index 1 pixel and ends with last row and last column pixel.
|
| BGRA | Raw data where image pixels are stored in BGR with alpha format.
The data are in format where each pixel has 4 bytes. Each byte represent color in order Blue, Green, Red and Alpha channel. Then pixels are stored by columns, it means that data starts with row index 1 and column index 1 pixel and ends with last row and last column pixel.
RGBA stands for red green blue alpha. While it is sometimes described as a color space, it is actually a three-channel RGB color model supplemented with a fourth alpha channel. Alpha indicates how opaque each pixel is and allows an image to be combined over others using alpha compositing, with transparent areas and anti-aliasing of the edges of opaque regions. [11]
|
◆ RawImage() [1/2]
Construct a new Raw Image object Data vector is passed by rvalue reference for efficient transfer without unnecessary copying.
- Parameters
-
References channels, dpi, height, type, and width.
◆ RawImage() [2/2]
◆ Data()
| const std::vector< uint8_t > & Data |
( |
| ) |
const |
|
inlinenodiscard |
◆ WriteTo()
| void WriteTo |
( |
Writer & | writer | ) |
const |
|
inlinefinalvirtual |
The documentation for this class was generated from the following file: