Resource Base
Table of contents

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

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()

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

  • Latest version(2.2.10)
  • Version 2.x
    • Version 2.2.0
    • Version 2.0.20
    • Version 2.0.10
    • Version 2.0.0
  • Version 1.x
    • Version 1.0.20
    • Version 1.0.10
    • Version 1.0.0
Change +
© 2003–2024 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support