70001530 New method to allow zoom in or Out relative to a Pixel point

Article 70001530
Type Wish
Product Engine
Version 8001
Date Added 5/7/2019
Fixed 8.8002.0.4 (5/7/2019)
Submitted by Marty Isaacs

Summary

New method to allow zoom in or Out relative to a Pixel point

Solution

A new method ZoomScale of vdLayout was added in version 8002.0.4
this method will have the following form

void ZoomScale(int pixelX, int pixelY, double scalefactor)


With this method you can Zoom the drawing area of this Layout or ActiveViewpot, using a given scale factor relative to passed pixel position.

pixelX:represents The X coordinate in Pixels relative the VectorDraw Base Control Window
pixelY:represents The Y coordinate in Pixels relative the VectorDraw Base Control Window
scalefactor: A double value representing the scale factor.A value between 0 to 1 for Zoom OUT and a value > 1.0 for Zoom IN

Send comments on this topic.