| Modifier and Type | Method and Description |
|---|---|
static PixelFormat |
PixelFormat.fromValue(int value)
Creates an enumeration value from int.
|
PixelFormat |
DocumentImage.getPixelFormat()
Gets the pixel format.
|
static PixelFormat |
PixelFormat.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PixelFormat[] |
PixelFormat.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
static DocumentImage |
DocumentImage.fromBuffer(byte[] data,
PixelFormat pixelFormat)
Creates an Image from the specified data buffer.
|
static DocumentImage |
DocumentImage.fromFile(java.lang.String filepath,
PixelFormat pixelFormat)
Creates an Image from the specified file.
|
static DocumentImage |
DocumentImage.fromRawBuffer(byte[] pixels,
int width,
int height,
int stride,
PixelFormat srcPixelFormat,
PixelFormat dstPixelFormat)
Creates an Image from the specified raw data buffer.
|
static DocumentImage |
DocumentImage.fromYuvPlanes(byte[] yPlane,
byte[] uPlane,
byte[] vPlane,
int yWidth,
int yHeight,
int uvPixelStride,
int uvRowStride,
PixelFormat dstPixelFormat)
Creates an Image from the specified YUV planes.
|
void |
DocumentImage.reallocate(int width,
int height,
PixelFormat pixelFormat)
Reallocates the internal memory of the Image from parameters.
|
void |
DocumentImage.toRawBuffer(PixelFormat pixelFormat,
ImageBuffer buffer)
Copies image pixels in the specified format into a buffer.
|
Copyright © 2020-2030, id3 Technologies. All rights reserved. eu.id3.document