| Modifier and Type | Method and Description |
|---|---|
static PixelFormat |
PixelFormat.fromValue(int value)
Creates an enumeration value from int.
|
PixelFormat |
Image.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 Image |
Image.fromBuffer(byte[] data,
PixelFormat pixelFormat)
Creates an Image from the specified data buffer.
|
static Image |
Image.fromFile(java.lang.String filepath,
PixelFormat pixelFormat)
Creates an Image from the specified file.
|
static Image |
Image.fromRawBuffer(byte[] pixels,
int width,
int height,
int stride,
PixelFormat srcPixelFormat,
PixelFormat dstPixelFormat)
Creates an Image from the specified raw data buffer.
|
static Image |
Image.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 |
Image.reallocate(int width,
int height,
PixelFormat pixelFormat)
Reallocates the internal memory of the Image from parameters.
|
void |
Image.toRawBuffer(PixelFormat pixelFormat,
ImageBuffer buffer)
Copies image pixels in the specified format into a buffer.
|
Copyright © id3 Technologies. All rights reserved. eu.id3.face