Image Class¶
Namespace: id3.Face
Definition¶
class Image
class Image implements Finalizable
public partial class Image
public class Image implements AutoCloseable, Serializable
public class Image
typedef struct id3FaceImage *ID3_FACE_IMAGE;
Usage¶
imageInstance = Image()
# ...
Explicit destruction
# ...
del imageInstance
final imageInstance = sdk.Image();
// ...
Explicit destruction
// ...
imageInstance.dispose()
using (var imageInstance = new Image())
{
// ...
}
Explicit destruction
var imageInstance = new Image()
// ...
imageInstance.Dispose()
try (Image imageInstance = new Image()) {
// ...
}
Explicit destruction
Image imageInstance = new Image();
// ...
imageInstance.close();
private var imageInstance: Image? = nil
imageInstance = try Image()
ID3_FACE_IMAGE hImage{};
int err = id3FaceImage_Initialize(&hImage);
if (err == ID3_SUCCESS) {
// ...
id3FaceImage_Dispose(&hImage);
}
Properties¶
Name |
Type |
Description |
---|---|---|
byte[] |
Raw data buffer of the image. |
|
int |
Height in pixels. |
|
int |
Pixel depth. |
|
Pixel format. |
||
int |
Stride in bytes. |
|
int |
Width in pixels. |
Static Methods¶
Name |
Description |
---|---|
Creates an Image from the specified data buffer. |
|
Creates an Image from the specified file. |
|
Creates an Image from the specified data buffer. Supported pixel formats are grayscale formats, BGR and RGB 24bits, and BGRA. For integers format, input datatype must be UINT8. |
|
Creates an Image from the specified raw data buffer. |
|
Creates an Image from the specified YUV planes. |
|
Sets the Image object fields. |
Methods¶
Name |
Description |
---|---|
Clones the Image object. |
|
Computes the difference with another image. |
|
Applies a gamma correction to the image. |
|
Downscales the image in-place so that its maximum dimension is equal to the given maximum size, while preserving the aspect ratio. |
|
Downscales the image so that its maximum dimension equals the given maximum size, while preserving the aspect ratio. |
|
Extracts a region of interest in the image according to the given bounds. |
|
Flips the image in-place. |
|
Flips the image. |
|
Gets a pointer to the image pixels. |
|
Reallocates the internal memory of the Image from parameters. |
|
Resizes the image in-place to the required width and height. |
|
Resizes the image to the specified width and height. |
|
Rotates the image in-place to the specified angle. |
|
Rotates the image to the specified angle. |
|
Exports the image to a buffer. |
|
Copies the image to a buffer in the specified format. |
|
Saves the image to the specified file. |
|
Exports the image to a numpy array (Python only) |
|
Copies image pixels in the specified format into a buffer. |
|
Transposes the image object. |