CaptureImage.reallocate Method

Module: CaptureImage

Definition

Reallocates the internal memory of the Image from parameters.

Note

If the given parameters are the same as the ones of the object, then there is nothing done in this function.

reallocate(self, width: int, height: int, pixel_format: PixelFormat) -> None

Parameters

width int
in The new width, in pixels.

height int
in The new height, in pixels.

pixel_format PixelFormat
in The new pixel format.

Exceptions

An error has occurred during Devices Library execution.
void reallocate(int width, int height, PixelFormat pixelFormat)

Parameters

width int
in The new width, in pixels.

height int
in The new height, in pixels.

pixelFormat PixelFormat
in The new pixel format.

Exceptions

An error has occurred during Devices Library execution.
public void Reallocate(int width, int height, PixelFormat pixelFormat)

Parameters

width int
in The new width, in pixels.

height int
in The new height, in pixels.

pixelFormat PixelFormat
in The new pixel format.

Exceptions

An error has occurred during Devices Library execution.
public void reallocate(int width, int height, PixelFormat pixelFormat) throws DevicesException

Parameters

width int
in The new width, in pixels.

height int
in The new height, in pixels.

pixelFormat PixelFormat
in The new pixel format.

Exceptions

An error has occurred during Devices Library execution.
int id3DevicesCaptureImage_Reallocate (
    ID3_DEVICES_CAPTURE_IMAGE hCaptureImage,
    int width,
    int height,
    id3DevicesPixelFormat ePixelFormat)

Parameters

in Handle to the CaptureImage object.

width int
in The new width, in pixels.

height int
in The new height, in pixels.

in The new pixel format.

Returns

int
An error code.
See id3DevicesError file for the list of possible error codes.