171 int _widthPaddingInBytes;
228 return _widthPaddingInBytes;
Contains defines controlling the Windows DLL export and import of symbols.
#define OTC_SDK_API
Only needed when working with Windows DLLs.
Definition Api.h:65
int getStride() const noexcept
Returns the image stride in bytes.
Definition ImageInfo.h:206
int getWidthPaddingInBytes() const noexcept
Returns width padding in bytes.
Definition ImageInfo.h:226
int getWidth() const noexcept
Returns the image width in pixels.
Definition ImageInfo.h:201
int getSize() const noexcept
Returns the image size in pixels.
Definition ImageInfo.h:216
WidthAlignment getWidthAlignment() const noexcept
Returns the width alignment of the image.
Definition ImageInfo.h:221
ColorFormat getColorFormat() const noexcept
Returns the color format of the image.
Definition ImageInfo.h:176
int getHeight() const noexcept
Returns the image height in pixels.
Definition ImageInfo.h:211
OTC_SDK_API int resize(int width, int height)
Resizes the image to the given dimension.
int getChannels() const noexcept
Returns the number of color channels.
Definition ImageInfo.h:181
int getOffsetGreen() const noexcept
Returns the offset of the green color byte.
Definition ImageInfo.h:191
int getOffsetRed() const noexcept
Returns the offset of the red color byte.
Definition ImageInfo.h:186
OTC_SDK_API ImageInfo(ColorFormat colorFormat, WidthAlignment widthAlignment) noexcept
Constructor.
int getOffsetBlue() const noexcept
Returns the offset of the blue color byte.
Definition ImageInfo.h:196
Main SDK namespace.
Definition DeviceInfo.h:23
ColorFormat
Represents the different available color formats.
Definition ImageInfo.h:32
@ BGR
Pixel colors values are stored in the sequence: (blue, green, red).
Definition ImageInfo.h:34
@ RGB
Pixel colors values are stored in the sequence: (red, green, blue).
Definition ImageInfo.h:33
WidthAlignment
Represents the different available width alignments.
Definition ImageInfo.h:47
@ EightBytes
The row size is aligned to eight bytes.
Definition ImageInfo.h:51
@ TwoBytes
The row size is aligned to two bytes.
Definition ImageInfo.h:49
@ OneByte
The row size is aligned to one byte.
Definition ImageInfo.h:48
@ FourBytes
The row size is aligned to four bytes.
Definition ImageInfo.h:50