* Merge winforms framework content to working branch (#14) * Breadcrumb / TOC / Move net5 to net folder (#15) * change path from net5 to net * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Mess with bread/toc * Add .net 5 winforms placeholder article (#16) * added some metadata and adjusted net5 placeholder * corrections * corrections * corrections * Test1 * Swapping landing page vs concept * fix links * Fix links * Fix desc
1.9 KiB
title, ms.date, helpviewer_keywords, ms.assetid
| title | ms.date | helpviewer_keywords | ms.assetid | |||
|---|---|---|---|---|---|---|
| Using Graphics Containers | 03/30/2017 |
|
74632f91-cefa-4f51-ab7c-f9ac91942caf |
Using Graphics Containers
A xref:System.Drawing.Graphics object provides methods such as xref:System.Drawing.Graphics.DrawLine%2A, xref:System.Drawing.Graphics.DrawImage%2A, and xref:System.Drawing.Graphics.DrawString%2A for displaying vector images, raster images, and text. A xref:System.Drawing.Graphics object also has several properties that influence the quality and orientation of the items that are drawn. For example, the smoothing mode property determines whether antialiasing is applied to lines and curves, and the world transformation property influences the position and rotation of the items that are drawn.
A xref:System.Drawing.Graphics object is associated with a particular display device. When you use a xref:System.Drawing.Graphics object to draw in a window, the xref:System.Drawing.Graphics object is also associated with that particular window.
A xref:System.Drawing.Graphics object can be thought of as a container because it holds a set of properties that influence drawing and it is linked to device-specific information. You can create a secondary container within an existing xref:System.Drawing.Graphics object by calling the xref:System.Drawing.Graphics.BeginContainer%2A method of that xref:System.Drawing.Graphics object.
In This Section
Managing the State of a Graphics Object
Describes how manage the quality settings, clipping area and transformations of a xref:System.Drawing.Graphics object.
Using Nested Graphics Containers
Shows how to use containers to control the state of the xref:System.Drawing.Graphics object.