Utility class offering helpers for conversions. More...
Static Public Member Functions | |
static nkMaths::Vector | convertPixel (const nkMaths::Vector &pix, PIXEL_FORMAT inFormat, PIXEL_FORMAT outFormat) |
static Image | convertImage (const ImageView &image, PIXEL_FORMAT outFormat, const AlignmentDescriptor &alignmentDescriptor=AlignmentDescriptor()) |
Utility class offering helpers for conversions.
|
static |
Converts a pixel from one format to another.
pix | The pixel to convert. |
inFormat | Provided pixel's format. |
outFormat | Which format to convert to. |
|
static |
Converts a full image from one format to another.
image | The image to convert. |
outFormat | The format to convert to. |
alignmentDescriptor | The alignment constraint the output image should respect. Only the byte alignment fields are taken into account. |