CImageView:CenterAt


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

Syntax

CImageView:CenterAt( x, y )

where

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

  

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

CenterAtWcs

Display

CImageView class

Image Coordinate System

Subpixel Coordinate Definition