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 )

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