public class BitmapInfo extends Object
Object containing array of pixels and bitmap information.
Modifier and Type | Class and Description |
---|---|
static class |
BitmapInfo.PixelFormat
Bitmap pixel format.
|
Constructor and Description |
---|
BitmapInfo(byte[] pixelBytes,
int width,
int height,
int format)
Creates a new instance of the class.
|
Modifier and Type | Method and Description |
---|---|
int |
getFormat()
Gets the pixel format of the bitmap.
|
int |
getHeight()
Gets the height of the bitmap.
|
byte[] |
getPixelBytes()
Gets the array of pixels.
|
int |
getWidth()
Gets the width of the bitmap.
|
public BitmapInfo(byte[] pixelBytes, int width, int height, int format)
Creates a new instance of the class.
pixelBytes
- Array of pixels.width
- Width of the bitmap.height
- Height of the bitmap.format
- Pixel format of the bitmap.BitmapInfo
public final byte[] getPixelBytes()
Gets the array of pixels.
public final int getWidth()
Gets the width of the bitmap.
public final int getHeight()
Gets the height of the bitmap.
public final int getFormat()
Gets the pixel format of the bitmap.
Copyright © 2025 Aspose. All Rights Reserved.