CImageView:CenterAtWcs


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

Syntax

CImageView:CenterAt( x, y )

where

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

  

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

CenterAt

Display

CImageView class

Image Coordinate System

Subpixel Coordinate Definition