CaptureImage Class¶
Namespace: id3.Devices
Definition¶
class CaptureImage
class CaptureImage implements Finalizable
public partial class CaptureImage
public class CaptureImage implements AutoCloseable, Serializable
typedef struct id3DevicesCaptureImage *ID3_DEVICES_CAPTURE_IMAGE;
Usage¶
captureImageInstance = id3devices.CaptureImage()
Explicit destruction
# ...
del captureImageInstance
final captureImageInstance = sdk.CaptureImage();
// ...
Explicit destruction
// ...
captureImageInstance.dispose()
using (var captureImageInstance = new CaptureImage())
{
   // ...
}
Explicit destruction
var captureImageInstance = new CaptureImage()
// ...
captureImageInstance.Dispose()
try (CaptureImage captureImageInstance = new CaptureImage()) {
// ...
}
Explicit destruction
CaptureImage captureImageInstance = new CaptureImage();
// ...
captureImageInstance.close();
ID3_DEVICES_CAPTURE_IMAGE hCaptureImage{};
int err = id3DevicesCaptureImage_Initialize(&hCaptureImage);
if (err == ID3_SUCCESS) {
    // ...
    id3DevicesCaptureImage_Dispose(&hCaptureImage);
}
Properties¶
Name  | 
Type  | 
Description  | 
|---|---|---|
byte[]  | 
Raw data buffer of the image.  | 
|
int  | 
Tracks the total number of frames captured since the start of the capture session.  | 
|
int  | 
Height in pixels.  | 
|
int  | 
Pixel depth.  | 
|
Pixel format.  | 
||
int  | 
Stride in bytes.  | 
|
long  | 
Records the capture time of the image, typically represented as a timestamp relative to a fixed point in time (e.g., Unix epoch).  | 
|
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 CaptureImage object.  | 
|
Computes the difference with another image.  | 
|
Applies a gamma correction to the image.  | 
|
Crop a rectangular region of interest in the image according to the given bounds.  | 
|
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.  | 
|
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.  | 
|
Add padding around the image  | 
|
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.  |