Resource Base
Table of contents

ImageData Struct

Stores the image data.

Definition

typedef struct tagImageData
{
    int bytesLength;
    unsigned char* bytes;
    int width;
    int height;
    int stride;
    ImagePixelFormat format;
    int orientation;
}ImageData;

bytesLength

The length of the image data byte array.

bytes

The image data content in a byte array.

width

The width of the image in pixels.

height

The height of the image in pixels.

stride

The stride (or scan width) of the image.

format

The image pixel format used in the image byte array.

See Also

ImagePixelFormat

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.

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