Graphics.PageScale Property
.NET Framework (current version)
Gets or sets the scaling between world units and page units for this Graphics.
Assembly: System.Drawing (in System.Drawing.dll)
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.
.NET Framework
Available since 1.1
Available since 1.1
Show: