Graphics.Transform Property

Definition

Gets or sets a copy of the geometric world transformation for this Graphics.

public:
 property System::Drawing::Drawing2D::Matrix ^ Transform { System::Drawing::Drawing2D::Matrix ^ get(); void set(System::Drawing::Drawing2D::Matrix ^ value); };
public System.Drawing.Drawing2D.Matrix Transform { get; set; }
member this.Transform : System.Drawing.Drawing2D.Matrix with get, set
Public Property Transform As Matrix

Property Value

A copy of the Matrix that represents the geometric world transformation for this Graphics.

Remarks

GDI+ uses three coordinate spaces: world, page, and device. World coordinates are the coordinates used to model a particular graphic world and are the coordinates you pass to methods in the .NET Framework. Page coordinates refer to the coordinate system used by a drawing surface, such as a form or a control. Device coordinates are the coordinates used by the physical device being drawn on, such as a screen or a printer. The Transform property represents the world transformation, which maps world coordinates to page coordinates.

Because the matrix returned and by the Transform property is a copy of the geometric transform, you should dispose of the matrix when you no longer need it.

Applies to

See also