Skip to content

Latest commit

 

History

History
121 lines (80 loc) · 3.03 KB

File metadata and controls

121 lines (80 loc) · 3.03 KB
layout title description keywords permalink
default-layout
CImageData Class
This page shows CImageData class definition of Dynamsoft Document Normalizer SDK C++ Edition.
CImageData, api reference
/programming/cplusplus/api-reference/image-data.html

CImageData

Stores the image data.

class dynamsoft::core::CImageData
Method Description
CImageData Constructor of CImageData class.
CImageData Constructor of CImageData class.
~CImageData Destructor of CImageData class.
GetBytes Get the image data content in a byte array.
GetBytesLength Get the length of the image data byte array.
GetWidth Get the width of the image in pixels.
GetHeight Get the height of the image in pixels.
GetStride Get the stride (or scan width) of the image.
GetImagePixelFormat Get the image pixel format used in the image byte array.
GetOrientation Get the orientation of the image data.

CImageData()

Constructor of a CImageData class.

dynamsoft::core::CImageData::CImageData()

dynamsoft::core::CImageData::CImageData(int bytesLength, unsigned char* bytes, int width, int height, int stride, ImagePixelFormat format, int orientation)

Parameters
[in] bytesLength The length of the image data byte array.

[in] bytes The image data content in a byte array.

[in] width The the width of the image in pixels.

[in] height The the height of the image in pixels.

[in] stride The stride (or scan width) of the image.

[in] format The image pixel format used in the image byte array.

[in] orientation The orientation of the image data. The value is the angle that the image needs to be rotated clockwise so it shows correctly on the display in its natural orientation. It can be 0, 90, 180, or 270.

~CImageData()

Destructor of a CImageData class.

dynamsoft::core::CImageData::~CImageData()

GetBytes

Get the image data content in a byte array.

const unsigned char* GetBytes()

GetBytesLength

Get the length of the image data byte array.

int GetBytesLength()

GetWidth

Get the width of the image in pixels.

int GetWidth()

GetHeight

Get the height of the image in pixels.

int GetHeight()

GetStride

Get the stride (or scan width) of the image.

int GetStride()

GetImagePixelFormat

Get the image pixel format used in the image byte array.

ImagePixelFormat GetImagePixelFormat()

See Also

[ImagePixelFormat]({{ site.ddn_enumerations_v1 }}image-pixel-format.html?src=cpp)

GetOrientation

Get the orientation of the image data. The value is the angle that the image needs to be rotated clockwise so it shows correctly on the display in its natural orientation. It can be 0, 90, 180, or 270.

int GetOrientation()