BitmapInfo
Contents
[
Hide
]Inheritance: java.lang.Object, com.aspose.pdf.BitmapInfo
public class BitmapInfo extends Object
Object containing array of pixels and bitmap information.
Constructors
| Constructor | Description |
|---|---|
| BitmapInfo | Creates a new instance of the class. |
Methods
| Method | Description |
|---|---|
| getFormat | Gets the pixel format of the bitmap. |
| getHeight | Gets the height of the bitmap. |
| getPixelBytes | Gets the array of pixels. |
| getWidth | Gets the width of the bitmap. |
BitmapInfo
public BitmapInfo(byte[] pixelBytes, int width, int height, int format)
Creates a new instance of the class.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| pixelBytes | Array of pixels. | |
| width | Width of the bitmap. | |
| height | Height of the bitmap. | |
| format | Pixel 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