setSelectionRectAspectRatio()

Description

Sets the aspect ratio to be used when you select a rectangle on an image to select an area with the mouse. The ratio is width to height.

Syntax

ImageViewerObject.ui.setSelectionRectAspectRatio(value);

Parameters

<float> value: the value to set

Return value

bool

Remarks

The default value is 0.

If you don’t want the rectangle drawn on an image to keep a fixed aspect ratio, set it to 0.

See also

ui.getSelectionRectAspectRatio()