Graphics.PageScale Property

 

Gets or sets the scaling between world units and page units for this Graphics.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

member PageScale : float32 with get, set

Property Value

Type: System.Single

This property specifies a value for the scaling between world units and page units for this Graphics.

The following code example demonstrates how to use the PageScale and TranslateTransform members to change the scale and origin when you draw a rectangle.

This example is designed to be used with Windows Forms. Paste the code into a form and call the ChangePageScaleAndTranslateTransform method when handling the form's Paint event, passing e as PaintEventArgs.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: