CImageView:CenterAtWcs

CImageView:CenterAt


The CenterAt method positions the displayed image so that it is centered at a specified pixel coordinate.

Syntax

CImageView:CenterAt( x, y )

bullet.gif    x and y are the target image coordinates, measured in pixel coordinate units.

Remarks

The values may be passed as numbers of strings. For example, 100.52 and "100.52" are interpreted equally.

This method attempts to center the image at the specified coordinate. If the image cannot be centered because of window limitations, the target coordinate will at least be brought into view within the window. The coordinates may be fractional and may be specified as numbers or strings.

Related Topics

CImageView, Display, CenterAtWcs, Image Coordinate System, Subpixel Coordinate Definition

 

Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.