Gnome.Canvas.PixelsPerUnit Property
Gets or Sets the number of pixels that correspond to one canvas unit.

Syntax

public double PixelsPerUnit { set; get; }

Value

a double

Remarks

The anchor point for zooming, i.e. the point that stays fixed and all others zoom inwards or outwards from it, depends on whether the canvas is set to center the scrolling region or not. You can control this using the Gnome.CanvasCenterScrollRegion function. If the canvas is set to center the scroll region, then the center of the canvas window is used as the anchor point for zooming. Otherwise, the upper-left corner of the canvas window is used as the anchor point.

Requirements

Namespace: Gnome
Assembly: gnome-sharp (in gnome-sharp.dll)