Resource Base
Table of contents

DSImageData

The DSImageData interface defines the structure of an object that represents an image.

export interface DSImageData {
    bytes: Uint8Array;
    format: Core.EnumImagePixelFormat;
    height: number;
    imageTag?: ImageTag;
    stride: number;
    width: number;
}

bytes

The raw bytes of the image, of type Uint8Array.

See Also

Uint8Array.

format

The pixel format of the image.

See Also

EnumImagePixelFormat

height

The height of the image in pixels.

imageTag

An optional tag associated with the image data.

See Also

ImageTag

stride

The stride (or row width) of the image in bytes.

width

The width of the image in pixels.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version(2.2.30)
    • Version 2.x
      • Version 2.2.10
      • Version 2.0.30
      • Version 2.0.20
      • Version 2.0.10
    Change +
    © 2003–2024 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support