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

Package: com.dynamsoft.core.basic_structures

class ImageData

Attributes

Attribute Type Description
bytesLength long The length of the image byte array.
bytes byte[] The image byte array.
width int The width of the image.
height int The height of the image.
stride int The stride of the image.
format int The pixel format of the image.
orientation int The orientation of the image.
tag ImageTag The tag of the image.

Methods

Method Description
ImageData Constructor. Initializes a new instance of the ImageData class.
getBytes Gets the image byte array.
getBytesLength Gets the length of 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.

Attributes

bytesLength

The length of the image byte array.

long bytesLength

bytes

The image byte array.

byte[] bytes

width

The width of the image.

int width

height

The height of the image.

int height

stride

The stride of the image.

int stride

format

The pixel format of the image.

@EnumImagePixelFormat int format

orientation

The orientation of the image.

int orientation

tag

The tag of the image.

ImageTag tag

Methods

ImageData

Constructor. Initializes a new instance of the ImageData class

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

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

ImageTag

getBytes

Gets the image byte array.

byte[] getBytes()

Return Value

Returns an image byte array.

getBytesLength

Gets the length of the image byte array.

long getBytesLength()

Return Value

Returns the length of the 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 int 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

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: