BitmapInfo

Inheritance: java.lang.Object, com.aspose.pdf.BitmapInfo

public class BitmapInfo extends Object

Object containing array of pixels and bitmap information.

Constructors

ConstructorDescription
BitmapInfoCreates a new instance of the class.

Methods

MethodDescription
getFormatGets the pixel format of the bitmap.
getHeightGets the height of the bitmap.
getPixelBytesGets the array of pixels.
getWidthGets the width of the bitmap.

BitmapInfo

public BitmapInfo(byte[] pixelBytes, int width, int height, int format)

Creates a new instance of the class.

Parameters:

ParameterTypeDescription
pixelBytesArray of pixels.
widthWidth of the bitmap.
heightHeight of the bitmap.
formatPixel format of the bitmap. @see BitmapInfo

getFormat

public final int getFormat()

Gets the pixel format of the bitmap.

Returns: int value PixelFormat element

getHeight

public final int getHeight()

Gets the height of the bitmap.

Returns: int value

getPixelBytes

public final byte[] getPixelBytes()

Gets the array of pixels.

Returns: byte[] array

getWidth

public final int getWidth()

Gets the width of the bitmap.

Returns: int value