Zoom

GetZoom, SetZoomViewPoint, Zoom, ZoomAndCenter, ZoomBestFit, ZoomFitToScreen, ZoomIn, ZoomInAtCursor, ZoomOut, ZoomOutAtCursor

GetZoom

Description 

 GetZoom();

This function returns the actual view zoom (in percent).

Note

The zoom returned is equal to current magnification of the view. Value of 100% means that each pixel of the picture is mapped to exactly one pixel on the screen, 200% means the image is displayed two times bigger, etc...

See Also 
Zoom

SetZoomViewPoint

Description 

 SetZoomViewPoint(
   double  PicViewZoom,
   int  PicViewDocuX,
   int  PicViewDocuY
);

Zooms the image view. Zoom centre is specified.

Parameters

double PicViewZoom

Absolute zoom of the view in percent.

int PicViewDocuX

X coordinate of the zoom centre. A zoom centre is a point that will keep its position on the screen during zooming. The coordinates correspond to picture dimensions (in pixels). [0, 0] corresponds to the top-left corner of the picture.

int PicViewDocuY

Y coordinate of the zoom centre. A zoom centre is a point that will keep its position on the screen during zooming. The coordinates correspond to picture dimensions (in pixels). [0, 0] corresponds to the top-left corner of the picture.

Note

Use this function to set view zoom, while keeping certain point at its original position on the screen.

See Also 
Zoom, ZoomAndCenter

Zoom

This function runs the View > Zoom > 1:1 Zoom command.

Description 

 Zoom(
   double  Percent
);

Zooms the image view according to the given parameter.

Parameters

double Percent

A percentage zoom ratio to scale an image to (e.g. 120.30%).

ZoomAndCenter

Description 

 ZoomAndCenter(
   double  PicViewZoom,
   int  PicViewDocuX,
   int  PicViewDocuY
);

Zooms the image view and centers specified point on the screen.

Parameters

double PicViewZoom

Absolute zoom of the view in percent.

int PicViewDocuX

X coordinate of the point to center. This point will be displayed at the centre of the screen. The coordinates correspond to picture dimensions (in pixels). [0, 0] corresponds to the top-left corner of the picture.

int PicViewDocuY

Y coordinate of the point to center. This point will be displayed at the centre of the screen. The coordinates correspond to picture dimensions (in pixels). [0, 0] corresponds to the top-left corner of the picture.

Note

Use this function to put a certain object in the image to the centre of user's attention. You can zoom at the object and bring it to the screen centre at the same time.

See Also 
Zoom, SetZoomViewPoint

ZoomBestFit

This function runs the View > Zoom > Best Fit command.

Description 

 ZoomBestFit();

This function zooms the image so that it fills the whole picture area. The view of one of the dimensions is cropped.

ZoomFitToScreen

This function runs the View > Zoom > Fit to Screen command.

Description 

 ZoomFitToScreen();

This function zooms the image to maximize the view so that the whole image is visible.

ZoomIn

This function runs the View > Zoom > Zoom In command.

Description 

 ZoomIn();

This function starts detailed viewing of the image.

See Also 
ZoomOut

ZoomInAtCursor

Description 

 ZoomInAtCursor();

This function increases zoom so that the image pixel the cursor is currently aiming at doesn't change its position. This works only at zoom values higher than the Best Fit mode.

ZoomOut

This function runs the View > Zoom > Zoom Out command.

Description 

 ZoomOut();

This function starts detailed viewing of the image.

See Also 
ZoomIn

ZoomOutAtCursor

Description 

 ZoomOutAtCursor();

This function decreases the zoom but keeps position of the image pixel at which is the cursor currently pointing. This works as long as the zoom value is higher than the Best Fit mode.