121 OTC_SDK_API
int resize(
int width,
int height);
183 int _widthPaddingInBytes;
245 return _widthPaddingInBytes;
Contains defines controlling the Windows DLL export and import of symbols.
Encapsulates all relevant information about a false color image.
Definition ImageInfo.h:60
int getStride() const noexcept
Returns the image stride in bytes.
Definition ImageInfo.h:223
int getWidthPaddingInBytes() const noexcept
Returns width padding in bytes.
Definition ImageInfo.h:243
int getWidth() const noexcept
Returns the image width in pixels.
Definition ImageInfo.h:218
int getSize() const noexcept
Returns the image size in pixels.
Definition ImageInfo.h:233
WidthAlignment getWidthAlignment() const noexcept
Returns the width alignment of the image.
Definition ImageInfo.h:238
ColorFormat getColorFormat() const noexcept
Returns the color format of the image.
Definition ImageInfo.h:188
int getHeight() const noexcept
Returns the image height in pixels.
Definition ImageInfo.h:228
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:193
int getOffsetGreen() const noexcept
Returns the offset of the green color byte.
Definition ImageInfo.h:203
int getOffsetAlpha() const noexcept
Returns the offset of the alpha byte.
Definition ImageInfo.h:213
int getOffsetRed() const noexcept
Returns the offset of the red color byte.
Definition ImageInfo.h:198
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:208
Main SDK namespace.
Definition AlarmChannel.h:21
ColorFormat
Represents the different available color formats.
Definition ImageInfo.h:32
@ BGR
Pixel colors values are stored in the sequence: (blue, green, red).
@ RGB
Pixel colors values are stored in the sequence: (red, green, blue).
WidthAlignment
Represents the different available width alignments.
Definition ImageInfo.h:50
@ EightBytes
The row size is aligned to eight bytes.
@ TwoBytes
The row size is aligned to two bytes.
@ OneByte
The row size is aligned to one byte.
@ FourBytes
The row size is aligned to four bytes.