DelphiBasics
  Home  |  Delphi .net Home  |  System.Drawing NameSpace
 .NET Framework
 Namespace References

 System
 System.Collections
 System.Globalization
 System.IO

 Articles and Tutorials

 Overview of .NET
 Delphi and .NET
 Winform Applications
 ASP .Net Applications
 php Web Services
 Framework Collections
 Framework String Handling
 Framework Files and Folders


 
 
  System.Drawing.Graphics Class
 
 Description
The Graphics class is key to the Drawing Namespace, providing a canvas for graphical activities, along with such basic operations as line and curve drawing, and image display.
 
The size of text strings can be predetermined before writing to the canvas.
 
The graphics is write only - there are no methods allowing pixels to be read from the canvas.
 
All writing to the canvas is two stage. First, a set of 0, 1 or more transformations are applied to the information to be written. Second, this transformed information is then written out. This allows origin displacement, scaling and rotation effects to be applied singularly or in combination. This is very powerful.
 Methods
DrawBeziers  Draws a set of bezier curves on the current graphics canvas
DrawIcon  Draws an icon onto the graphics canvas
FillPolygon  Creates a filled polygon shape defined by an array of points

 Properties
Clip  Region  Gets or sets a Region object that limits the drawing region of this Graphics object.
ClipBounds  RectangleF  Gets a RectangleF structure that bounds the clipping region of this Graphics object.
CompositingMode  CompositingMode  Gets a value that specifies how composited images are drawn to this Graphics object.
CompositingQuality  CompositingQuality  Gets or sets the rendering quality of composited images drawn to this Graphics object.
DpiX  Single  Gets the horizontal resolution of this Graphics object.
DpiY  Single  Gets the vertical resolution of this Graphics object.
InterpolationMode  InterpolationMode  Gets or sets the interpolation mode associated with this Graphics object.
IsClipEmpty  Boolean  Gets a value indicating whether the clipping region of this Graphics object is empty.
IsVisibleClipEmpty  Boolean  Gets a value indicating whether the visible clipping region of this Graphics object is empty.
PageScale  Single  Gets or sets the scaling between world units and page units for this Graphics object.
PageUnit  GraphicsUnit  Gets or sets the unit of measure used for page coordinates in this Graphics object.
PixelOffsetMode  PixelOffsetMode  Gets or set a value specifying how pixels are offset during rendering of this Graphics object.
RenderingOrigin  Point  Gets or sets the rendering origin of this Graphics object for dithering and for hatch brushes.
SmoothingMode  SmoothingMode  Gets or sets the rendering quality for this Graphics object.
TextContrast  Integer  Gets or sets the gamma correction value for rendering text.
TextRenderingHint  TextRenderingHint  Gets or sets the rendering mode for text associated with this Graphics object.
Transform  Matrix  Gets or sets the world transformation for this Graphics object.
VisibleClipBounds  RectangleF  Gets or sets the bounding rectangle of the visible clipping region of this Graphics object.

 Microsoft MSDN links
 
System.Drawing
System.Drawing.graphics
 
Delphi Programming © Neil Moffatt . All rights reserved.  |  Home Page