ZoomToSelection Method

Scales a selected portion of a displayed image so that it fits into the size of the control.

Applies To

Image Edit control

Syntax

object.ZoomToSelection

Arguments

None

Return Value

None

Remarks

A selection rectangle must be drawn on the image prior to calling the ZoomToSelection method.

The ZoomToSelection method updates the Zoom property with the zoom factor used.

See Also

Display method

Display topics in Imaging Concepts

DrawSelectionRect method

FitTo method

SelectionRectDrawn event

Zoom property