xtd 0.2.0
Loading...
Searching...
No Matches

◆ transform() [2/2]

graphics & xtd::drawing::graphics::transform ( const xtd::drawing::drawing_2d::matrix value)
noexcept

Sets a copy of the geometric world transformation for this xtd::drawing::graphics.

Parameters
valueA copy of the xtd::drawing::drawing_2d::matrix that represents the geometric world transformation for this xtd::drawing::graphics.
Returns
This current instance.
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 xtd::drawing::graphics::transform property represents the world transformation, which maps world coordinates to page coordinates.
Because the matrix returned and by the xtd::drawing::graphics::transform property is a copy of the geometric transform, you should dispose of the matrix when you no longer need it.