CImageView:CenterAtWcs


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

Syntax

CImageView:CenterAt( x, y )

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

Remarks

The values may be passed as numbers or as strings. The interpretation of the passed values depends upon the type of world coordinate calibration in the image.

This method attempts to center the image at the specified coordinate. This requires that the image contain a world coordinate calibration. If not, then Mira interprets the specified coordinates in pixel units. 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 specified as numbers or strings.

Related Topics

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

 

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