KitchenDraw SDK 2
Show / Hide Table of Contents

Method ZoomFromPoint

ZoomFromPoint(int, int, int, int, int)

Carries out a zoom operation that is centered on the given point.

Declaration
public void ZoomFromPoint(int windowWidth, int windowHeight, int pixelX, int pixelY, int zoomPercentage)
Parameters
Type Name Description
int windowWidth

Width of the window (or image) for which the pixel coordinate is given.

int windowHeight

Height of the window (or image) for which the pixel coordinate is given.

int pixelX

X coordinate of the zoom point.

int pixelY

Y coordinate of the zoom point.

int zoomPercentage

Zoom percentage. If the value is positive, "zoom in" operation is performed. If the value is negative, "zoom out" is performed. For example a value of 100 doubles the distances in pixels on each axis.

In this article
Back to top Generated by DocFX