Table of contents

ImageData

The ImageData class represents image data, which contains the image bytes, width, height, stride, pixel format, orientation and a tag.

Definition

Namespace: Dynamsoft.Core

Assembly: Dynamsoft.Core.dll

public class ImageData 

Methods

Method Description
ImageData() Constructs an empty image data object.
ImageData(byte[] bytes, int width, int height, int stride, EnumImagePixelFormat format, int orientation = 0, ImageTag tag = null) Constructs an image data object with the specified parameters.
GetBytes Gets the image byte array.
GetWidth Gets the width of the image.
GetHeight Gets the height of the image.
GetStride Gets the stride of the image.
GetImagePixelFormat Gets the pixel format of the image.
GetOrientation Gets the orientation of the image.
GetImageTag Gets the tag of the image.
SetImageTag Sets the tag of the image.
Dispose Releases all resources used by current object.

ImageData Constructor

Constructs an image data object with the specified parameters.

ImageData(byte[] bytes, int width, int height, int stride, EnumImagePixelFormat format, int orientation = 0, ImageTag tag = null)

Parameters

bytes The image byte array.

width The width of the image.

height The height of the image.

stride The stride of the image.

format The pixel format of the image.

orientation The orientation of the image.

tag The tag of the image.

See Also

EnumImagePixelFormat

GetBytes

Gets the image byte array.

byte[] GetBytes()

Return Value

Returns an image byte array.

GetWidth

Gets the width of the image.

int GetWidth()

Return Value

Returns the width of the image.

GetHeight

Gets the height of the image.

int GetHeight()

Return Value

Returns the height of the image.

GetStride

Gets the stride of the image.

int GetStride()

Return Value

Returns the stride of the image.

GetImagePixelFormat

Gets the pixel format of the image.

EnumImagePixelFormat GetImagePixelFormat()

Return Value

Returns the pixel format of the image.

See Also

EnumImagePixelFormat

GetOrientation

Gets the orientation of the image.

int GetOrientation()

Return Value

Returns the orientation of the image.

GetImageTag

Gets the tag of the image.

ImageTag GetImageTag()

Return Value

Returns a tag of the image.

See Also

ImageTag

SetImageTag

Sets the tag of the image.

void SetImageTag(ImageTag tag)

Parameters

tag The tag of the image.

See Also

ImageTag

Dispose

Releases all resources used by current object.

void Dispose()

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: