CaptureImage.set Method¶
Module: CaptureImage
Definition¶
Sets the Image object fields.
Warning
This function does not allocate any memory and is unsafe! The user must handle the pixels pointer carefully.
public static CaptureImage Set(int width, int height, PixelFormat pixelFormat, IntPtr pixels)
Parameters
widthintin The width, in pixels, of the image.heightintin The height, in pixels, of the image.pixelFormatPixelFormatin The pixel format of the image.pixelsIntPtrin A pointer to the image pixels of the image.
Returns
The newly created capture image.
Exceptions
An error has occurred during Devices Library execution.
int id3DevicesCaptureImage_Set (
    ID3_DEVICES_CAPTURE_IMAGE hCaptureImage,
    int width,
    int height,
    id3DevicesPixelFormat ePixelFormat,
    void * pixels)
Parameters
hCaptureImageID3_DEVICES_CAPTURE_IMAGEin Handle to the CaptureImage object.widthintin The width, in pixels, of the image.heightintin The height, in pixels, of the image.ePixelFormatid3DevicesPixelFormatin The pixel format of the image.pixelsvoid *in A pointer to the image pixels of the image.
Returns