1 #Region "Microsoft.VisualBasic::12c98f9ebddf9232b3dd934386ce9b53, Microsoft.VisualBasic.Core\Extensions\Image\GDI+\GDICanvas.vb"
2
3     ' Author:
4     
5     '       asuka (amethyst.asuka@gcmodeller.org)
6     '       xie (genetics@smrucc.org)
7     '       xieguigang (xie.guigang@live.com)
8     
9     ' Copyright (c) 2018 GPL3 Licensed
10     
11     
12     ' GNU GENERAL PUBLIC LICENSE (GPL3)
13     
14     
15     ' This program is free software: you can redistribute it and/or modify
16     ' it under the terms of the GNU General Public License as published by
17     ' the Free Software Foundation, either version 3 of the License, or
18     ' (at your option) any later version.
19     
20     ' This program is distributed in the hope that it will be useful,
21     ' but WITHOUT ANY WARRANTY; without even the implied warranty of
22     ' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23     ' GNU General Public License for more details.
24     
25     ' You should have received a copy of the GNU General Public License
26     ' along with this program. If not, see <http://www.gnu.org/licenses/>.
27
28
29
30     ' /********************************************************************************/
31
32     ' Summaries:
33
34     '     Class GDICanvas
35     
36     '         Properties: Clip, ClipBounds, CompositingMode, CompositingQuality, DpiX
37     '                     DpiY, Font, Graphics, InterpolationMode, IsClipEmpty
38     '                     IsVisibleClipEmpty, PageScale, PageUnit, PixelOffsetMode, RenderingOrigin
39     '                     SmoothingMode, Stroke, TextContrast, TextRenderingHint, Transform
40     '                     VisibleClipBounds
41     
42     '         Function: (+3 Overloads) BeginContainer, GetContextInfo, GetNearestColor, (+8 OverloadsIsVisible, MeasureCharacterRanges
43     '                   (+8 OverloadsMeasureString
44     
45     '         Sub: AddMetafileComment, (+2 Overloads) Clear, (+4 Overloads) CopyFromScreen, Dispose, (+4 Overloads) DrawArc
46     '              DrawB, (+3 Overloads) DrawBezier, (+2 Overloads) DrawBeziers, (+4 Overloads) DrawClosedCurve, (+7 Overloads) DrawCurve
47     '              (+4 Overloads) DrawEllipse, (+2 Overloads) DrawIcon, DrawIconUnstretched, (+30 Overloads) DrawImage, (+4 Overloads) DrawImageUnscaled
48     '              DrawImageUnscaledAndClipped, (+5 Overloads) DrawLine, (+2 Overloads) DrawLines, DrawPath, (+4 Overloads) DrawPie
49     '              (+2 Overloads) DrawPolygon, (+4 Overloads) DrawRectangle, (+2 Overloads) DrawRectangles, (+7 Overloads) DrawString, EndContainer
50     '              (+36 OverloadsEnumerateMetafile, (+2 Overloads) ExcludeClip, (+6 Overloads) FillClosedCurve, (+4 Overloads) FillEllipse, FillPath
51     '              (+3 Overloads) FillPie, (+4 Overloads) FillPolygon, (+4 Overloads) FillRectangle, (+2 Overloads) FillRectangles, FillRegion
52     '              Finalize, (+2 Overloads) Flush, (+3 OverloadsIntersectClip, (+2 Overloads) MultiplyTransform, ReleaseHdc
53     '              ReleaseHdcInternal, ResetClip, ResetTransform, Restore, (+2 Overloads) RotateTransform
54     '              (+2 Overloads) ScaleTransform, (+9 OverloadsSetClip, (+2 Overloads) TransformPoints, (+2 Overloads) TranslateClip, (+2 Overloads) TranslateTransform
55     
56     
57     ' /********************************************************************************/
58
59 #End Region
60
61 Imports System.ComponentModel
62 Imports System.Drawing
63 Imports System.Drawing.Drawing2D
64 Imports System.Drawing.Graphics
65 Imports System.Drawing.Imaging
66 Imports System.Drawing.Text
67 Imports System.Runtime.CompilerServices
68
69 Namespace Imaging
70
71     Public MustInherit Class GDICanvas : Inherits IGraphics
72         Implements IDisposable
73
74         Protected g As Graphics
75
76         ''' <summary>
77         ''' GDI+ device handle.(GDI+绘图设备句柄)
78         ''' </summary>
79         ''' <remarks></remarks>
80         Public Property Graphics As Graphics
81             <MethodImpl(MethodImplOptions.AggressiveInlining)>
82             Get
83                 Return g
84             End Get
85             Set(value As Graphics)
86                 g = value
87             End Set
88         End Property
89
90 #Region "Default canvas style values"
91         ''' <summary>
92         ''' Default pen for drawing
93         ''' </summary>
94         ''' <returns></returns>
95         Public Property Stroke As Pen
96         ''' <summary>
97         ''' Default font value for text drawing
98         ''' </summary>
99         ''' <returns></returns>
100         Public Property Font As Font
101 #End Region
102
103 #Region "Implements Class Graphics"
104
105         Public Overloads Sub DrawLine(x1 As Integer, y1 As Integer, x2 As Integer, y2 As Integer)
106             Call Graphics.DrawLine(Stroke, x1, y1, x2, y2)
107         End Sub
108
109         ''' <summary>
110         ''' Gets or sets a System.Drawing.Region that limits the drawing region of this System.Drawing.Graphics.
111         ''' </summary>
112         ''' <returns>A System.Drawing.Region that limits the portion of this System.Drawing.Graphics
113         ''' that is currently available for drawing.</returns>
114         Public Overrides Property Clip As Region
115             Get
116                 Return Graphics.Clip
117             End Get
118             Set(value As Region)
119                 Graphics.Clip = value
120             End Set
121         End Property
122         '         ' Summary:
123         '     Gets a System.Drawing.RectangleF structure that bounds the clipping region of
124         '     this System.Drawing.Graphics.
125         '         ' Returns:
126         '     A System.Drawing.RectangleF structure that represents a bounding rectangle for
127         '     the clipping region of this System.Drawing.Graphics.
128         Public Overrides ReadOnly Property ClipBounds As RectangleF
129             <MethodImpl(MethodImplOptions.AggressiveInlining)>
130             Get
131                 Return Graphics.ClipBounds
132             End Get
133         End Property
134
135         Public Overloads Sub DrawString(str As String, x As Integer, y As Integer)
136             Call Graphics.DrawString(str, Font, Brushes.Black, New Point(x, y))
137         End Sub
138
139         ''' <summary>
140         ''' Gets a value that specifies how composited images are drawn to this System.Drawing.Graphics.
141         ''' </summary>
142         ''' <returns>
143         ''' This property specifies a member of the System.Drawing.Drawing2D.CompositingMode enumeration. 
144         ''' The default is System.Drawing.Drawing2D.CompositingMode.SourceOver.
145         ''' </returns>
146         Public Overrides Property CompositingMode As CompositingMode
147             Get
148                 Return Graphics.CompositingMode
149             End Get
150             Set(value As CompositingMode)
151                 Graphics.CompositingMode = value
152             End Set
153         End Property
154
155         ''' <summary>
156         ''' Gets or sets the rendering quality of composited images drawn to this System.Drawing.Graphics.
157         ''' </summary>
158         ''' <returns>
159         ''' This property specifies a member of the System.Drawing.Drawing2D.CompositingQuality enumeration. 
160         ''' The default is System.Drawing.Drawing2D.CompositingQuality.Default.
161         ''' </returns>
162         Public Overrides Property CompositingQuality As CompositingQuality
163             Get
164                 Return Graphics.CompositingQuality
165             End Get
166             Set(value As CompositingQuality)
167                 Graphics.CompositingQuality = value
168             End Set
169         End Property
170
171         ''' <summary>
172         ''' Gets the horizontal resolution of this System.Drawing.Graphics.
173         ''' </summary>
174         ''' <returns>
175         ''' The value, in dots per inch, for the horizontal resolution supported by this System.Drawing.Graphics.
176         ''' </returns>
177         Public Overrides ReadOnly Property DpiX As Single
178             <MethodImpl(MethodImplOptions.AggressiveInlining)>
179             Get
180                 Return Graphics.DpiX
181             End Get
182         End Property
183
184         ''' <summary>
185         ''' Gets the vertical resolution of this System.Drawing.Graphics.
186         ''' </summary>
187         ''' <returns>The value, in dots per inch, for the vertical resolution supported by this System.Drawing.Graphics.</returns>
188         Public Overrides ReadOnly Property DpiY As Single
189             <MethodImpl(MethodImplOptions.AggressiveInlining)>
190             Get
191                 Return Graphics.DpiY
192             End Get
193         End Property
194
195         ''' <summary>
196         ''' Gets or sets the interpolation mode associated with this System.Drawing.Graphics.
197         ''' </summary>
198         ''' <returns>One of the System.Drawing.Drawing2D.InterpolationMode values.</returns>
199         Public Overrides Property InterpolationMode As InterpolationMode
200             Get
201                 Return Graphics.InterpolationMode
202             End Get
203             Set(value As InterpolationMode)
204                 Graphics.InterpolationMode = value
205             End Set
206         End Property
207         '         ' Summary:
208         '     Gets a value indicating whether the clipping region of this System.Drawing.Graphics
209         '     is empty.
210         '         ' Returns:
211         '     true if the clipping region of this System.Drawing.Graphics is empty; otherwise,
212         '     false.
213         Public Overrides ReadOnly Property IsClipEmpty As Boolean
214             <MethodImpl(MethodImplOptions.AggressiveInlining)>
215             Get
216                 Return Graphics.IsClipEmpty
217             End Get
218         End Property
219         '         ' Summary:
220         '     Gets a value indicating whether the visible clipping region of this System.Drawing.Graphics
221         '     is empty.
222         '         ' Returns:
223         '     true if the visible portion of the clipping region of this System.Drawing.Graphics
224         '     is empty; otherwise, false.
225         Public Overrides ReadOnly Property IsVisibleClipEmpty As Boolean
226             <MethodImpl(MethodImplOptions.AggressiveInlining)>
227             Get
228                 Return Graphics.IsVisibleClipEmpty
229             End Get
230         End Property
231
232         ''' <summary>
233         ''' Gets or sets the scaling between world units and page units for this System.Drawing.Graphics.
234         ''' </summary>
235         ''' <returns>This property specifies a value for the scaling between world units and page
236         ''' units for this System.Drawing.Graphics.</returns>
237         Public Overrides Property PageScale As Single
238             Get
239                 Return Graphics.PageScale
240             End Get
241             Set(value As Single)
242                 Graphics.PageScale = value
243             End Set
244         End Property
245         '         ' Summary:
246         '     Gets or sets the unit of measure used for page coordinates in this System.Drawing.Graphics.
247         '         ' Returns:
248         '     One of the System.Drawing.GraphicsUnit values other than System.Drawing.GraphicsUnit.World.
249         '         ' Exceptions:
250         '   T:System.ComponentModel.InvalidEnumArgumentException:
251         '     System.Drawing.Graphics.PageUnit is set to System.Drawing.GraphicsUnit.World,
252         '     which is not a physical unit.
253         Public Overrides Property PageUnit As GraphicsUnit
254             Get
255                 Return Graphics.PageUnit
256             End Get
257             Set(value As GraphicsUnit)
258                 Graphics.PageUnit = value
259             End Set
260         End Property
261
262         ''' <summary>
263         ''' Gets or set a value specifying how pixels are offset during rendering of this
264         ''' System.Drawing.Graphics.
265         ''' </summary>
266         ''' <returns>This property specifies a member of the System.Drawing.Drawing2D.PixelOffsetMode
267         ''' enumeration</returns>
268         Public Overrides Property PixelOffsetMode As PixelOffsetMode
269             Get
270                 Return Graphics.PixelOffsetMode
271             End Get
272             Set(value As PixelOffsetMode)
273                 Graphics.PixelOffsetMode = value
274             End Set
275         End Property
276         '         ' Summary:
277         '     Gets or sets the rendering origin of this System.Drawing.Graphics for dithering
278         '     and for hatch brushes.
279         '         ' Returns:
280         '     A System.Drawing.Point structure that represents the dither origin for 8-bits-per-pixel
281         '     and 16-bits-per-pixel dithering and is also used to set the origin for hatch
282         '     brushes.
283         Public Overrides Property RenderingOrigin As Point
284             Get
285                 Return Graphics.RenderingOrigin
286             End Get
287             Set(value As Point)
288                 Graphics.RenderingOrigin = value
289             End Set
290         End Property
291
292         ''' <summary>
293         ''' Gets or sets the rendering quality for this System.Drawing.Graphics.
294         ''' </summary>
295         ''' <returns>One of the System.Drawing.Drawing2D.SmoothingMode values.</returns>
296         Public Overrides Property SmoothingMode As SmoothingMode
297             Get
298                 Return Graphics.SmoothingMode
299             End Get
300             Set(value As SmoothingMode)
301                 Graphics.SmoothingMode = value
302             End Set
303         End Property
304         '         ' Summary:
305         '     Gets or sets the gamma correction value for rendering text.
306         '         ' Returns:
307         '     The gamma correction value used for rendering antialiased and ClearType text.
308         Public Overrides Property TextContrast As Integer
309             Get
310                 Return Graphics.TextContrast
311             End Get
312             Set(value As Integer)
313                 Graphics.TextContrast = value
314             End Set
315         End Property
316
317         ''' <summary>
318         ''' Gets or sets the rendering mode for text associated with this System.Drawing.Graphics.
319         ''' </summary>
320         ''' <returns>One of the System.Drawing.Text.TextRenderingHint values.</returns>
321         Public Overrides Property TextRenderingHint As TextRenderingHint
322             Get
323                 Return Graphics.TextRenderingHint
324             End Get
325             Set(value As TextRenderingHint)
326                 Graphics.TextRenderingHint = value
327             End Set
328         End Property
329         '         ' Summary:
330         '     Gets or sets a copy of the geometric world transformation for this System.Drawing.Graphics.
331         '         ' Returns:
332         '     A copy of the System.Drawing.Drawing2D.Matrix that represents the geometric world
333         '     transformation for this System.Drawing.Graphics.
334         Public Overrides Property Transform As Drawing2D.Matrix
335             Get
336                 Return Graphics.Transform
337             End Get
338             Set(value As Drawing2D.Matrix)
339                 Graphics.Transform = value
340             End Set
341         End Property
342         '         ' Summary:
343         '     Gets the bounding rectangle of the visible clipping region of this System.Drawing.Graphics.
344         '         ' Returns:
345         '     A System.Drawing.RectangleF structure that represents a bounding rectangle for
346         '     the visible clipping region of this System.Drawing.Graphics.
347         Public Overrides ReadOnly Property VisibleClipBounds As RectangleF
348             <MethodImpl(MethodImplOptions.AggressiveInlining)>
349             Get
350                 Return Graphics.VisibleClipBounds
351             End Get
352         End Property
353
354         '         ' Summary:
355         '     Adds a comment to the current System.Drawing.Imaging.Metafile.
356         '         ' Parameters:
357         '   data:
358         '     Array of bytes that contains the comment.
359         Public Overrides Sub AddMetafileComment(data() As Byte)
360             Call Graphics.AddMetafileComment(data)
361         End Sub
362
363         ''' <summary>
364         ''' Clears the entire drawing surface and fills it with the specified background
365         ''' color.
366         ''' </summary>
367         ''' <param name="color">System.Drawing.Color structure that represents the background color of the drawing
368         ''' surface.</param>
369         ''' 
370         <MethodImpl(MethodImplOptions.AggressiveInlining)>
371         Public Overrides Sub Clear(color As Color)
372             Call Graphics.Clear(color)
373         End Sub
374
375         <MethodImpl(MethodImplOptions.AggressiveInlining)>
376         Public Overloads Sub Clear(bg As Brush)
377             Call Graphics.FillRectangle(bg, New RectangleF(New PointF, Size.SizeF))
378         End Sub
379
380         ' Summary:
381         '     Performs a bit-block transfer of color data, corresponding to a rectangle of
382         '     pixels, from the screen to the drawing surface of the System.Drawing.Graphics.
383         '         ' Parameters:
384         '   upperLeftSource:
385         '     The point at the upper-left corner of the source rectangle.
386         '         '   upperLeftDestination:
387         '     The point at the upper-left corner of the destination rectangle.
388         '         '   blockRegionSize:
389         '     The size of the area to be transferred.
390         '         ' Exceptions:
391         '   T:System.ComponentModel.Win32Exception:
392         '     The operation failed.
393         Public Overrides Sub CopyFromScreen(upperLeftSource As Point, upperLeftDestination As Point, blockRegionSize As Size)
394             Call Graphics.CopyFromScreen(upperLeftSource, upperLeftDestination, blockRegionSize)
395         End Sub
396         '         ' Summary:
397         '     Performs a bit-block transfer of color data, corresponding to a rectangle of
398         '     pixels, from the screen to the drawing surface of the System.Drawing.Graphics.
399         '         ' Parameters:
400         '   upperLeftSource:
401         '     The point at the upper-left corner of the source rectangle.
402         '         '   upperLeftDestination:
403         '     The point at the upper-left corner of the destination rectangle.
404         '         '   blockRegionSize:
405         '     The size of the area to be transferred.
406         '         '   copyPixelOperation:
407         '     One of the System.Drawing.CopyPixelOperation values.
408         '         ' Exceptions:
409         '   T:System.ComponentModel.InvalidEnumArgumentException:
410         '     copyPixelOperation is not a member of System.Drawing.CopyPixelOperation.
411         '
412         '   T:System.ComponentModel.Win32Exception:
413         '     The operation failed.
414         Public Overrides Sub CopyFromScreen(upperLeftSource As Point, upperLeftDestination As Point, blockRegionSize As Size, copyPixelOperation As CopyPixelOperation)
415             Call Graphics.CopyFromScreen(upperLeftSource, upperLeftDestination, blockRegionSize, copyPixelOperation)
416         End Sub
417         '         ' Summary:
418         '     Performs a bit-block transfer of the color data, corresponding to a rectangle
419         '     of pixels, from the screen to the drawing surface of the System.Drawing.Graphics.
420         '         ' Parameters:
421         '   sourceX:
422         '     The x-coordinate of the point at the upper-left corner of the source rectangle.
423         '         '   sourceY:
424         '     The y-coordinate of the point at the upper-left corner of the source rectangle.
425         '         '   destinationX:
426         '     The x-coordinate of the point at the upper-left corner of the destination rectangle.
427         '         '   destinationY:
428         '     The y-coordinate of the point at the upper-left corner of the destination rectangle.
429         '         '   blockRegionSize:
430         '     The size of the area to be transferred.
431         '         ' Exceptions:
432         '   T:System.ComponentModel.Win32Exception:
433         '     The operation failed.
434         Public Overrides Sub CopyFromScreen(sourceX As Integer, sourceY As Integer, destinationX As Integer, destinationY As Integer, blockRegionSize As Size)
435             Call Graphics.CopyFromScreen(sourceX, sourceY, destinationX, destinationY, blockRegionSize)
436         End Sub
437         '         ' Summary:
438         '     Performs a bit-block transfer of the color data, corresponding to a rectangle
439         '     of pixels, from the screen to the drawing surface of the System.Drawing.Graphics.
440         '         ' Parameters:
441         '   sourceX:
442         '     The x-coordinate of the point at the upper-left corner of the source rectangle.
443         '         '   sourceY:
444         '     The y-coordinate of the point at the upper-left corner of the source rectangle
445         '         '   destinationX:
446         '     The x-coordinate of the point at the upper-left corner of the destination rectangle.
447         '         '   destinationY:
448         '     The y-coordinate of the point at the upper-left corner of the destination rectangle.
449         '         '   blockRegionSize:
450         '     The size of the area to be transferred.
451         '         '   copyPixelOperation:
452         '     One of the System.Drawing.CopyPixelOperation values.
453         '         ' Exceptions:
454         '   T:System.ComponentModel.InvalidEnumArgumentException:
455         '     copyPixelOperation is not a member of System.Drawing.CopyPixelOperation.
456         '
457         '   T:System.ComponentModel.Win32Exception:
458         '     The operation failed.
459         Public Overrides Sub CopyFromScreen(sourceX As Integer, sourceY As Integer, destinationX As Integer, destinationY As Integer, blockRegionSize As Size, copyPixelOperation As CopyPixelOperation)
460             Call Graphics.CopyFromScreen(sourceX, sourceY, destinationX, destinationY, blockRegionSize, copyPixelOperation)
461         End Sub
462
463         '         ' Summary:
464         '     Draws an arc representing a portion of an ellipse specified by a System.Drawing.Rectangle
465         '     structure.
466         '         ' Parameters:
467         '   pen:
468         '     System.Drawing.Pen that determines the color, width, and style of the arc.
469         '         '   rect:
470         '     System.Drawing.RectangleF structure that defines the boundaries of the ellipse.
471         '         '   startAngle:
472         '     Angle in degrees measured clockwise from the x-axis to the starting point of
473         '     the arc.
474         '         '   sweepAngle:
475         '     Angle in degrees measured clockwise from the startAngle parameter to ending point
476         '     of the arc.
477         '         ' Exceptions:
478         '   T:System.ArgumentNullException:
479         '     pen is null.
480         Public Overrides Sub DrawArc(pen As Pen, rect As Rectangle, startAngle As Single, sweepAngle As Single)
481             Call Graphics.DrawArc(pen, rect, startAngle, sweepAngle)
482         End Sub
483         '         ' Summary:
484         '     Draws an arc representing a portion of an ellipse specified by a System.Drawing.RectangleF
485         '     structure.
486         '         ' Parameters:
487         '   pen:
488         '     System.Drawing.Pen that determines the color, width, and style of the arc.
489         '         '   rect:
490         '     System.Drawing.RectangleF structure that defines the boundaries of the ellipse.
491         '         '   startAngle:
492         '     Angle in degrees measured clockwise from the x-axis to the starting point of
493         '     the arc.
494         '         '   sweepAngle:
495         '     Angle in degrees measured clockwise from the startAngle parameter to ending point
496         '     of the arc.
497         '         ' Exceptions:
498         '   T:System.ArgumentNullException:
499         '     pen is null
500         Public Overrides Sub DrawArc(pen As Pen, rect As RectangleF, startAngle As Single, sweepAngle As Single)
501             Call Graphics.DrawArc(pen, rect, startAngle, sweepAngle)
502         End Sub
503         '         ' Summary:
504         '     Draws an arc representing a portion of an ellipse specified by a pair of coordinates,
505         '     a width, and a height.
506         '         ' Parameters:
507         '   pen:
508         '     System.Drawing.Pen that determines the color, width, and style of the arc.
509         '         '   x:
510         '     The x-coordinate of the upper-left corner of the rectangle that defines the ellipse.
511         '         '   y:
512         '     The y-coordinate of the upper-left corner of the rectangle that defines the ellipse.
513         '         '   width:
514         '     Width of the rectangle that defines the ellipse.
515         '         '   height:
516         '     Height of the rectangle that defines the ellipse.
517         '         '   startAngle:
518         '     Angle in degrees measured clockwise from the x-axis to the starting point of
519         '     the arc.
520         '         '   sweepAngle:
521         '     Angle in degrees measured clockwise from the startAngle parameter to ending point
522         '     of the arc.
523         '         ' Exceptions:
524         '   T:System.ArgumentNullException:
525         '     pen is null.-or-rects is null.
526         '
527         '   T:System.ArgumentNullException:
528         '     rects is a zero-length array.
529         Public Overrides Sub DrawArc(pen As Pen, x As Integer, y As Integer, width As Integer, height As Integer, startAngle As Integer, sweepAngle As Integer)
530
531         End Sub
532         '         ' Summary:
533         '     Draws an arc representing a portion of an ellipse specified by a pair of coordinates,
534         '     a width, and a height.
535         '         ' Parameters:
536         '   pen:
537         '     System.Drawing.Pen that determines the color, width, and style of the arc.
538         '         '   x:
539         '     The x-coordinate of the upper-left corner of the rectangle that defines the ellipse.
540         '         '   y:
541         '     The y-coordinate of the upper-left corner of the rectangle that defines the ellipse.
542         '         '   width:
543         '     Width of the rectangle that defines the ellipse.
544         '         '   height:
545         '     Height of the rectangle that defines the ellipse.
546         '         '   startAngle:
547         '     Angle in degrees measured clockwise from the x-axis to the starting point of
548         '     the arc.
549         '         '   sweepAngle:
550         '     Angle in degrees measured clockwise from the startAngle parameter to ending point
551         '     of the arc.
552         '         ' Exceptions:
553         '   T:System.ArgumentNullException:
554         '     pen is null.
555         Public Overrides Sub DrawArc(pen As Pen, x As Single, y As Single, width As Single, height As Single, startAngle As Single, sweepAngle As Single)
556
557         End Sub
558
559         ''' <summary>
560         ''' Draws a Bézier spline defined by four System.Drawing.Point structures.
561         ''' </summary>
562         ''' <param name="pen">System.Drawing.Pen structure that determines the color, width, and style of the
563         ''' curve.</param>
564         ''' <param name="pt1">System.Drawing.Point structure that represents the starting point of the curve.</param>
565         ''' <param name="pt2">System.Drawing.Point structure that represents the first control point for the
566         ''' curve.</param>
567         ''' <param name="pt3">System.Drawing.Point structure that represents the second control point for the
568         ''' curve.</param>
569         ''' <param name="pt4">System.Drawing.Point structure that represents the ending point of the curve.</param>
570         Public Sub DrawBézier(pen As Pen, pt1 As Point, pt2 As Point, pt3 As Point, pt4 As Point)
571             Call Graphics.DrawBezier(pen, pt1, pt2, pt3, pt4)
572         End Sub
573
574         ' Summary:
575         '     Draws a Bézier spline defined by four System.Drawing.PointF structures.
576         '         ' Parameters:
577         '   pen:
578         '     System.Drawing.Pen that determines the color, width, and style of the curve.
579         '         '   pt1:
580         '     System.Drawing.PointF structure that represents the starting point of the curve.
581         '         '   pt2:
582         '     System.Drawing.PointF structure that represents the first control point for the
583         '     curve.
584         '         '   pt3:
585         '     System.Drawing.PointF structure that represents the second control point for
586         '     the curve.
587         '         '   pt4:
588         '     System.Drawing.PointF structure that represents the ending point of the curve.
589         '         ' Exceptions:
590         '   T:System.ArgumentNullException:
591         '     pen is null.
592         Public Overrides Sub DrawBezier(pen As Pen, pt1 As PointF, pt2 As PointF, pt3 As PointF, pt4 As PointF)
593
594         End Sub
595         '         ' Summary:
596         '     Draws a Bézier spline defined by four ordered pairs of coordinates that represent
597         '     points.
598         '         ' Parameters:
599         '   pen:
600         '     System.Drawing.Pen that determines the color, width, and style of the curve.
601         '         '   x1:
602         '     The x-coordinate of the starting point of the curve.
603         '         '   y1:
604         '     The y-coordinate of the starting point of the curve.
605         '         '   x2:
606         '     The x-coordinate of the first control point of the curve.
607         '         '   y2:
608         '     The y-coordinate of the first control point of the curve.
609         '         '   x3:
610         '     The x-coordinate of the second control point of the curve.
611         '         '   y3:
612         '     The y-coordinate of the second control point of the curve.
613         '         '   x4:
614         '     The x-coordinate of the ending point of the curve.
615         '         '   y4:
616         '     The y-coordinate of the ending point of the curve.
617         '         ' Exceptions:
618         '   T:System.ArgumentNullException:
619         '     pen is null.
620         Public Overrides Sub DrawBezier(pen As Pen, x1 As Single, y1 As Single, x2 As Single, y2 As Single, x3 As Single, y3 As Single, x4 As Single, y4 As Single)
621
622         End Sub
623         '         ' Summary:
624         '     Draws a series of Bézier splines from an array of System.Drawing.Point structures.
625         '         ' Parameters:
626         '   pen:
627         '     System.Drawing.Pen that determines the color, width, and style of the curve.
628         '         '   points:
629         '     Array of System.Drawing.Point structures that represent the points that determine
630         '     the curve. The number of points in the array should be a multiple of 3 plus 1,
631         '     such as 4, 7, or 10.
632         '         ' Exceptions:
633         '   T:System.ArgumentNullException:
634         '     pen is null.-or-points is null.
635         Public Overrides Sub DrawBeziers(pen As Pen, points() As Point)
636
637         End Sub
638         '         ' Summary:
639         '     Draws a series of Bézier splines from an array of System.Drawing.PointF structures.
640         '         ' Parameters:
641         '   pen:
642         '     System.Drawing.Pen that determines the color, width, and style of the curve.
643         '         '   points:
644         '     Array of System.Drawing.PointF structures that represent the points that determine
645         '     the curve. The number of points in the array should be a multiple of 3 plus 1,
646         '     such as 4, 7, or 10.
647         '         ' Exceptions:
648         '   T:System.ArgumentNullException:
649         '     pen is null.-or-points is null.
650         Public Overrides Sub DrawBeziers(pen As Pen, points() As PointF)
651
652         End Sub
653         '         ' Summary:
654         '     Draws a closed cardinal spline defined by an array of System.Drawing.Point structures.
655         '         ' Parameters:
656         '   pen:
657         '     System.Drawing.Pen that determines the color, width, and height of the curve.
658         '         '   points:
659         '     Array of System.Drawing.Point structures that define the spline.
660         '         ' Exceptions:
661         '   T:System.ArgumentNullException:
662         '     pen is null.-or-points is null.
663         Public Overrides Sub DrawClosedCurve(pen As Pen, points() As Point)
664
665         End Sub
666         '         ' Summary:
667         '     Draws a closed cardinal spline defined by an array of System.Drawing.PointF structures.
668         '         ' Parameters:
669         '   pen:
670         '     System.Drawing.Pen that determines the color, width, and height of the curve.
671         '         '   points:
672         '     Array of System.Drawing.PointF structures that define the spline.
673         '         ' Exceptions:
674         '   T:System.ArgumentNullException:
675         '     pen is null.-or-points is null.
676         Public Overrides Sub DrawClosedCurve(pen As Pen, points() As PointF)
677
678         End Sub
679         '         ' Summary:
680         '     Draws a closed cardinal spline defined by an array of System.Drawing.Point structures
681         '     using a specified tension.
682         '         ' Parameters:
683         '   pen:
684         '     System.Drawing.Pen that determines the color, width, and height of the curve.
685         '         '   points:
686         '     Array of System.Drawing.Point structures that define the spline.
687         '         '   tension:
688         '     Value greater than or equal to 0.0F that specifies the tension of the curve.
689         '         '   fillmode:
690         '     Member of the System.Drawing.Drawing2D.FillMode enumeration that determines how
691         '     the curve is filled. This parameter is required but ignored.
692         '         ' Exceptions:
693         '   T:System.ArgumentNullException:
694         '     pen is null.-or-points is null.
695         Public Overrides Sub DrawClosedCurve(pen As Pen, points() As Point, tension As Single, fillmode As FillMode)
696
697         End Sub
698         '         ' Summary:
699         '     Draws a closed cardinal spline defined by an array of System.Drawing.PointF structures
700         '     using a specified tension.
701         '         ' Parameters:
702         '   pen:
703         '     System.Drawing.Pen that determines the color, width, and height of the curve.
704         '         '   points:
705         '     Array of System.Drawing.PointF structures that define the spline.
706         '         '   tension:
707         '     Value greater than or equal to 0.0F that specifies the tension of the curve.
708         '         '   fillmode:
709         '     Member of the System.Drawing.Drawing2D.FillMode enumeration that determines how
710         '     the curve is filled. This parameter is required but is ignored.
711         '         ' Exceptions:
712         '   T:System.ArgumentNullException:
713         '     pen is null.-or-points is null.
714         Public Overrides Sub DrawClosedCurve(pen As Pen, points() As PointF, tension As Single, fillmode As FillMode)
715
716         End Sub
717         '         ' Summary:
718         '     Draws a cardinal spline through a specified array of System.Drawing.Point structures.
719         '         ' Parameters:
720         '   pen:
721         '     System.Drawing.Pen that determines the color, width, and height of the curve.
722         '         '   points:
723         '     Array of System.Drawing.Point structures that define the spline.
724         '         ' Exceptions:
725         '   T:System.ArgumentNullException:
726         '     pen is null.-or-points is null.
727         Public Overrides Sub DrawCurve(pen As Pen, points() As Point)
728
729         End Sub
730         '         ' Summary:
731         '     Draws a cardinal spline through a specified array of System.Drawing.PointF structures.
732         '         ' Parameters:
733         '   pen:
734         '     System.Drawing.Pen that determines the color, width, and style of the curve.
735         '         '   points:
736         '     Array of System.Drawing.PointF structures that define the spline.
737         '         ' Exceptions:
738         '   T:System.ArgumentNullException:
739         '     pen is null.-or-points is null.
740         Public Overrides Sub DrawCurve(pen As Pen, points() As PointF)
741
742         End Sub
743
744         '         ' Summary:
745         '     Draws a cardinal spline through a specified array of System.Drawing.Point structures
746         '     using a specified tension.
747         '         ' Parameters:
748         '   pen:
749         '     System.Drawing.Pen that determines the color, width, and style of the curve.
750         '         '   points:
751         '     Array of System.Drawing.Point structures that define the spline.
752         '         '   tension:
753         '     Value greater than or equal to 0.0F that specifies the tension of the curve.
754         '         ' Exceptions:
755         '   T:System.ArgumentNullException:
756         '     pen is null.-or-points is null.
757         Public Overrides Sub DrawCurve(pen As Pen, points() As Point, tension As Single)
758
759         End Sub
760
761         '         ' Summary:
762         '     Draws a cardinal spline through a specified array of System.Drawing.PointF structures
763         '     using a specified tension.
764         '         ' Parameters:
765         '   pen:
766         '     System.Drawing.Pen that determines the color, width, and style of the curve.
767         '         '   points:
768         '     Array of System.Drawing.PointF structures that represent the points that define
769         '     the curve.
770         '         '   tension:
771         '     Value greater than or equal to 0.0F that specifies the tension of the curve.
772         '         ' Exceptions:
773         '   T:System.ArgumentNullException:
774         '     pen is null.-or-points is null.
775         Public Overrides Sub DrawCurve(pen As Pen, points() As PointF, tension As Single)
776
777         End Sub
778
779         '         ' Summary:
780         '     Draws a cardinal spline through a specified array of System.Drawing.PointF structures.
781         '     The drawing begins offset from the beginning of the array.
782         '         ' Parameters:
783         '   pen:
784         '     System.Drawing.Pen that determines the color, width, and style of the curve.
785         '         '   points:
786         '     Array of System.Drawing.PointF structures that define the spline.
787         '         '   offset:
788         '     Offset from the first element in the array of the points parameter to the starting
789         '     point in the curve.
790         '         '   numberOfSegments:
791         '     Number of segments after the starting point to include in the curve.
792         '         ' Exceptions:
793         '   T:System.ArgumentNullException:
794         '     pen is null.-or-points is null.
795         Public Overrides Sub DrawCurve(pen As Pen, points() As PointF, offset As Integer, numberOfSegments As Integer)
796
797         End Sub
798
799         '         ' Summary:
800         '     Draws a cardinal spline through a specified array of System.Drawing.Point structures
801         '     using a specified tension.
802         '         ' Parameters:
803         '   pen:
804         '     System.Drawing.Pen that determines the color, width, and style of the curve.
805         '         '   points:
806         '     Array of System.Drawing.Point structures that define the spline.
807         '         '   offset:
808         '     Offset from the first element in the array of the points parameter to the starting
809         '     point in the curve.
810         '         '   numberOfSegments:
811         '     Number of segments after the starting point to include in the curve.
812         '         '   tension:
813         '     Value greater than or equal to 0.0F that specifies the tension of the curve.
814         '         ' Exceptions:
815         '   T:System.ArgumentNullException:
816         '     pen is null.-or-points is null.
817         Public Overrides Sub DrawCurve(pen As Pen, points() As Point, offset As Integer, numberOfSegments As Integer, tension As Single)
818
819         End Sub
820
821
822         '         ' Summary:
823         '     Draws a cardinal spline through a specified array of System.Drawing.PointF structures
824         '     using a specified tension. The drawing begins offset from the beginning of the
825         '     array.
826         '         ' Parameters:
827         '   pen:
828         '     System.Drawing.Pen that determines the color, width, and style of the curve.
829         '         '   points:
830         '     Array of System.Drawing.PointF structures that define the spline.
831         '         '   offset:
832         '     Offset from the first element in the array of the points parameter to the starting
833         '     point in the curve.
834         '         '   numberOfSegments:
835         '     Number of segments after the starting point to include in the curve.
836         '         '   tension:
837         '     Value greater than or equal to 0.0F that specifies the tension of the curve.
838         '         ' Exceptions:
839         '   T:System.ArgumentNullException:
840         '     pen is null.-or-points is null.
841         Public Overrides Sub DrawCurve(pen As Pen, points() As PointF, offset As Integer, numberOfSegments As Integer, tension As Single)
842
843         End Sub
844         '         ' Summary:
845         '     Draws an ellipse specified by a bounding System.Drawing.Rectangle structure.
846         '         ' Parameters:
847         '   pen:
848         '     System.Drawing.Pen that determines the color, width, and style of the ellipse.
849         '         '   rect:
850         '     System.Drawing.Rectangle structure that defines the boundaries of the ellipse.
851         '         ' Exceptions:
852         '   T:System.ArgumentNullException:
853         '     pen is null.
854         Public Overrides Sub DrawEllipse(pen As Pen, rect As Rectangle)
855             Call Graphics.DrawEllipse(pen, rect)
856         End Sub
857         '         ' Summary:
858         '     Draws an ellipse defined by a bounding System.Drawing.RectangleF.
859         '         ' Parameters:
860         '   pen:
861         '     System.Drawing.Pen that determines the color, width, and style of the ellipse.
862         '         '   rect:
863         '     System.Drawing.RectangleF structure that defines the boundaries of the ellipse.
864         '         ' Exceptions:
865         '   T:System.ArgumentNullException:
866         '     pen is null.
867         Public Overrides Sub DrawEllipse(pen As Pen, rect As RectangleF)
868             Call Graphics.DrawEllipse(pen, rect)
869         End Sub
870         '         ' Summary:
871         '     Draws an ellipse defined by a bounding rectangle specified by coordinates for
872         '     the upper-left corner of the rectangle, a height, and a width.
873         '         ' Parameters:
874         '   pen:
875         '     System.Drawing.Pen that determines the color, width, and style of the ellipse.
876         '         '   x:
877         '     The x-coordinate of the upper-left corner of the bounding rectangle that defines
878         '     the ellipse.
879         '         '   y:
880         '     The y-coordinate of the upper-left corner of the bounding rectangle that defines
881         '     the ellipse.
882         '         '   width:
883         '     Width of the bounding rectangle that defines the ellipse.
884         '         '   height:
885         '     Height of the bounding rectangle that defines the ellipse.
886         '         ' Exceptions:
887         '   T:System.ArgumentNullException:
888         '     pen is null.
889         Public Overrides Sub DrawEllipse(pen As Pen, x As Integer, y As Integer, width As Integer, height As Integer)
890             Call Graphics.DrawEllipse(pen, x, y, width, height)
891         End Sub
892         '         ' Summary:
893         '     Draws an ellipse defined by a bounding rectangle specified by a pair of coordinates,
894         '     a height, and a width.
895         '         ' Parameters:
896         '   pen:
897         '     System.Drawing.Pen that determines the color, width, and style of the ellipse.
898         '         '   x:
899         '     The x-coordinate of the upper-left corner of the bounding rectangle that defines
900         '     the ellipse.
901         '         '   y:
902         '     The y-coordinate of the upper-left corner of the bounding rectangle that defines
903         '     the ellipse.
904         '         '   width:
905         '     Width of the bounding rectangle that defines the ellipse.
906         '         '   height:
907         '     Height of the bounding rectangle that defines the ellipse.
908         '         ' Exceptions:
909         '   T:System.ArgumentNullException:
910         '     pen is null.
911         Public Overrides Sub DrawEllipse(pen As Pen, x As Single, y As Single, width As Single, height As Single)
912             Call Graphics.DrawEllipse(pen, x, y, width, height)
913         End Sub
914         '         ' Summary:
915         '     Draws the image represented by the specified System.Drawing.Icon within the area
916         '     specified by a System.Drawing.Rectangle structure.
917         '         ' Parameters:
918         '   icon:
919         '     System.Drawing.Icon to draw.
920         '         '   targetRect:
921         '     System.Drawing.Rectangle structure that specifies the location and size of the
922         '     resulting image on the display surface. The image contained in the icon parameter
923         '     is scaled to the dimensions of this rectangular area.
924         '         ' Exceptions:
925         '   T:System.ArgumentNullException:
926         '     icon is null.
927         Public Overrides Sub DrawIcon(icon As Icon, targetRect As Rectangle)
928             Call Graphics.DrawIcon(icon, targetRect)
929         End Sub
930         '         ' Summary:
931         '     Draws the image represented by the specified System.Drawing.Icon at the specified
932         '     coordinates.
933         '         ' Parameters:
934         '   icon:
935         '     System.Drawing.Icon to draw.
936         '         '   x:
937         '     The x-coordinate of the upper-left corner of the drawn image.
938         '         '   y:
939         '     The y-coordinate of the upper-left corner of the drawn image.
940         '         ' Exceptions:
941         '   T:System.ArgumentNullException:
942         '     icon is null.
943         Public Overrides Sub DrawIcon(icon As Icon, x As Integer, y As Integer)
944             Call Graphics.DrawIcon(icon, x, y)
945         End Sub
946         '         ' Summary:
947         '     Draws the image represented by the specified System.Drawing.Icon without scaling
948         '     the image.
949         '         ' Parameters:
950         '   icon:
951         '     System.Drawing.Icon to draw.
952         '         '   targetRect:
953         '     System.Drawing.Rectangle structure that specifies the location and size of the
954         '     resulting image. The image is not scaled to fit this rectangle, but retains its
955         '     original size. If the image is larger than the rectangle, it is clipped to fit
956         '     inside it.
957         '         ' Exceptions:
958         '   T:System.ArgumentNullException:
959         '     icon is null.
960         Public Overrides Sub DrawIconUnstretched(icon As Icon, targetRect As Rectangle)
961             Call Graphics.DrawIconUnstretched(icon, targetRect)
962         End Sub
963         '         ' Summary:
964         '     Draws the specified System.Drawing.Image at the specified location and with the
965         '     specified size.
966         '         ' Parameters:
967         '   image:
968         '     System.Drawing.Image to draw.
969         '         '   rect:
970         '     System.Drawing.RectangleF structure that specifies the location and size of the
971         '     drawn image.
972         '         ' Exceptions:
973         '   T:System.ArgumentNullException:
974         '     image is null.
975         Public Overrides Sub DrawImage(image As Image, rect As RectangleF)
976             Call Graphics.DrawImage(image, rect)
977         End Sub
978         '         ' Summary:
979         '     Draws the specified System.Drawing.Image at the specified location and with the
980         '     specified size.
981         '         ' Parameters:
982         '   image:
983         '     System.Drawing.Image to draw.
984         '         '   rect:
985         '     System.Drawing.Rectangle structure that specifies the location and size of the
986         '     drawn image.
987         '         ' Exceptions:
988         '   T:System.ArgumentNullException:
989         '     image is null.
990         Public Overrides Sub DrawImage(image As Image, rect As Rectangle)
991             Call Graphics.DrawImage(image, rect)
992         End Sub
993         '         ' Summary:
994         '     Draws the specified System.Drawing.Image at the specified location and with the
995         '     specified shape and size.
996         '         ' Parameters:
997         '   image:
998         '     System.Drawing.Image to draw.
999         '         '   destPoints:
1000         '     Array of three System.Drawing.Point structures that define a parallelogram.
1001         '         ' Exceptions:
1002         '   T:System.ArgumentNullException:
1003         '     image is null.
1004         Public Overrides Sub DrawImage(image As Image, destPoints() As Point)
1005             Call Graphics.DrawImage(image, destPoints)
1006         End Sub
1007         '         ' Summary:
1008         '     Draws the specified System.Drawing.Image at the specified location and with the
1009         '     specified shape and size.
1010         '         ' Parameters:
1011         '   image:
1012         '     System.Drawing.Image to draw.
1013         '         '   destPoints:
1014         '     Array of three System.Drawing.PointF structures that define a parallelogram.
1015         '         ' Exceptions:
1016         '   T:System.ArgumentNullException:
1017         '     image is null.
1018         Public Overrides Sub DrawImage(image As Image, destPoints() As PointF)
1019             Call Graphics.DrawImage(image, destPoints)
1020         End Sub
1021
1022         ''' <summary>
1023         ''' Draws the specified System.Drawing.Image, using its original physical size, at
1024         ''' the specified location.
1025         ''' </summary>
1026         ''' <param name="image">System.Drawing.Image to draw.</param>
1027         ''' <param name="point">System.Drawing.Point structure that represents the location of the upper-left
1028         ''' corner of the drawn image.</param>
1029         Public Overrides Sub DrawImage(image As Image, point As Point)
1030             Call Graphics.DrawImage(image, point)
1031         End Sub
1032         '         ' Summary:
1033         '     Draws the specified System.Drawing.Image, using its original physical size, at
1034         '     the specified location.
1035         '         ' Parameters:
1036         '   image:
1037         '     System.Drawing.Image to draw.
1038         '         '   point:
1039         '     System.Drawing.PointF structure that represents the upper-left corner of the
1040         '     drawn image.
1041         '         ' Exceptions:
1042         '   T:System.ArgumentNullException:
1043         '     image is null.
1044         Public Overrides Sub DrawImage(image As Image, point As PointF)
1045             Call Graphics.DrawImage(image, point)
1046         End Sub
1047         '         ' Summary:
1048         '     Draws the specified image, using its original physical size, at the location
1049         '     specified by a coordinate pair.
1050         '         ' Parameters:
1051         '   image:
1052         '     System.Drawing.Image to draw.
1053         '         '   x:
1054         '     The x-coordinate of the upper-left corner of the drawn image.
1055         '         '   y:
1056         '     The y-coordinate of the upper-left corner of the drawn image.
1057         '         ' Exceptions:
1058         '   T:System.ArgumentNullException:
1059         '     image is null.
1060         Public Overrides Sub DrawImage(image As Image, x As Integer, y As Integer)
1061             Call Graphics.DrawImage(image, x, y)
1062         End Sub
1063         '         ' Summary:
1064         '     Draws the specified System.Drawing.Image, using its original physical size, at
1065         '     the specified location.
1066         '         ' Parameters:
1067         '   image:
1068         '     System.Drawing.Image to draw.
1069         '         '   x:
1070         '     The x-coordinate of the upper-left corner of the drawn image.
1071         '         '   y:
1072         '     The y-coordinate of the upper-left corner of the drawn image.
1073         '         ' Exceptions:
1074         '   T:System.ArgumentNullException:
1075         '     image is null.
1076         Public Overrides Sub DrawImage(image As Image, x As Single, y As Single)
1077             Call Graphics.DrawImage(image, x, y)
1078         End Sub
1079         '         ' Summary:
1080         '     Draws the specified portion of the specified System.Drawing.Image at the specified
1081         '     location and with the specified size.
1082         '         ' Parameters:
1083         '   image:
1084         '     System.Drawing.Image to draw.
1085         '         '   destPoints:
1086         '     Array of three System.Drawing.Point structures that define a parallelogram.
1087         '         '   srcRect:
1088         '     System.Drawing.Rectangle structure that specifies the portion of the image object
1089         '     to draw.
1090         '         '   srcUnit:
1091         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the units
1092         '     of measure used by the srcRect parameter.
1093         '         ' Exceptions:
1094         '   T:System.ArgumentNullException:
1095         '     image is null.
1096         Public Overrides Sub DrawImage(image As Image, destPoints() As Point, srcRect As Rectangle, srcUnit As GraphicsUnit)
1097
1098         End Sub
1099         '         ' Summary:
1100         '     Draws the specified portion of the specified System.Drawing.Image at the specified
1101         '     location and with the specified size.
1102         '         ' Parameters:
1103         '   image:
1104         '     System.Drawing.Image to draw.
1105         '         '   destRect:
1106         '     System.Drawing.Rectangle structure that specifies the location and size of the
1107         '     drawn image. The image is scaled to fit the rectangle.
1108         '         '   srcRect:
1109         '     System.Drawing.Rectangle structure that specifies the portion of the image object
1110         '     to draw.
1111         '         '   srcUnit:
1112         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the units
1113         '     of measure used by the srcRect parameter.
1114         '         ' Exceptions:
1115         '   T:System.ArgumentNullException:
1116         '     image is null.
1117         Public Overrides Sub DrawImage(image As Image, destRect As Rectangle, srcRect As Rectangle, srcUnit As GraphicsUnit)
1118
1119         End Sub
1120
1121         ''' <summary>
1122         ''' Draws the specified portion of the specified System.Drawing.Image at the specified
1123         ''' location and with the specified size.
1124         ''' </summary>
1125         ''' <param name="image">System.Drawing.Image to draw.</param>
1126         ''' <param name="destPoints">Array of three System.Drawing.PointF structures that define a parallelogram.</param>
1127         ''' <param name="srcRect">System.Drawing.RectangleF structure that specifies the portion of the image object
1128         ''' to draw.</param>
1129         ''' <param name="srcUnit">Member of the System.Drawing.GraphicsUnit enumeration that specifies the units
1130         ''' of measure used by the srcRect parameter.</param>
1131         Public Overrides Sub DrawImage(image As Image, destPoints() As PointF, srcRect As RectangleF, srcUnit As GraphicsUnit)
1132             Call Graphics.DrawImage(image, destPoints, srcRect, srcUnit)
1133         End Sub
1134
1135         ''' <summary>
1136         ''' Draws the specified portion of the specified System.Drawing.Image at the specified
1137         ''' location and with the specified size.
1138         ''' </summary>
1139         ''' <param name="image">System.Drawing.Image to draw.</param>
1140         ''' <param name="destRect">System.Drawing.RectangleF structure that specifies the location and size of the
1141         ''' drawn image. The image is scaled to fit the rectangle.</param>
1142         ''' <param name="srcRect">System.Drawing.RectangleF structure that specifies the portion of the image object
1143         ''' to draw.</param>
1144         ''' <param name="srcUnit">Member of the System.Drawing.GraphicsUnit enumeration that specifies the units
1145         ''' of measure used by the srcRect parameter.</param>
1146         Public Overrides Sub DrawImage(image As Image, destRect As RectangleF, srcRect As RectangleF, srcUnit As GraphicsUnit)
1147             Call Graphics.DrawImage(image, destRect, srcRect, srcUnit)
1148         End Sub
1149         '         ' Summary:
1150         '     Draws a portion of an image at a specified location.
1151         '         ' Parameters:
1152         '   image:
1153         '     System.Drawing.Image to draw.
1154         '         '   x:
1155         '     The x-coordinate of the upper-left corner of the drawn image.
1156         '         '   y:
1157         '     The y-coordinate of the upper-left corner of the drawn image.
1158         '         '   srcRect:
1159         '     System.Drawing.RectangleF structure that specifies the portion of the System.Drawing.Image
1160         '     to draw.
1161         '         '   srcUnit:
1162         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the units
1163         '     of measure used by the srcRect parameter.
1164         '         ' Exceptions:
1165         '   T:System.ArgumentNullException:
1166         '     image is null.
1167         Public Overrides Sub DrawImage(image As Image, x As Single, y As Single, srcRect As RectangleF, srcUnit As GraphicsUnit)
1168
1169         End Sub
1170         '         ' Summary:
1171         '     Draws the specified portion of the specified System.Drawing.Image at the specified
1172         '     location.
1173         '         ' Parameters:
1174         '   image:
1175         '     System.Drawing.Image to draw.
1176         '         '   destPoints:
1177         '     Array of three System.Drawing.Point structures that define a parallelogram.
1178         '         '   srcRect:
1179         '     System.Drawing.Rectangle structure that specifies the portion of the image object
1180         '     to draw.
1181         '         '   srcUnit:
1182         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the units
1183         '     of measure used by the srcRect parameter.
1184         '         '   imageAttr:
1185         '     System.Drawing.Imaging.ImageAttributes that specifies recoloring and gamma information
1186         '     for the image object.
1187         '         ' Exceptions:
1188         '   T:System.ArgumentNullException:
1189         '     image is null.
1190         Public Overrides Sub DrawImage(image As Image, destPoints() As Point, srcRect As Rectangle, srcUnit As GraphicsUnit, imageAttr As ImageAttributes)
1191
1192         End Sub
1193         '         ' Summary:
1194         '     Draws the specified portion of the specified System.Drawing.Image at the specified
1195         '     location and with the specified size.
1196         '         ' Parameters:
1197         '   image:
1198         '     System.Drawing.Image to draw.
1199         '         '   destPoints:
1200         '     Array of three System.Drawing.PointF structures that define a parallelogram.
1201         '         '   srcRect:
1202         '     System.Drawing.RectangleF structure that specifies the portion of the image object
1203         '     to draw.
1204         '         '   srcUnit:
1205         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the units
1206         '     of measure used by the srcRect parameter.
1207         '         '   imageAttr:
1208         '     System.Drawing.Imaging.ImageAttributes that specifies recoloring and gamma information
1209         '     for the image object.
1210         '         ' Exceptions:
1211         '   T:System.ArgumentNullException:
1212         '     image is null.
1213         Public Overrides Sub DrawImage(image As Image, destPoints() As PointF, srcRect As RectangleF, srcUnit As GraphicsUnit, imageAttr As ImageAttributes)
1214
1215         End Sub
1216         '         ' Summary:
1217         '     Draws a portion of an image at a specified location.
1218         '         ' Parameters:
1219         '   image:
1220         '     System.Drawing.Image to draw.
1221         '         '   x:
1222         '     The x-coordinate of the upper-left corner of the drawn image.
1223         '         '   y:
1224         '     The y-coordinate of the upper-left corner of the drawn image.
1225         '         '   srcRect:
1226         '     System.Drawing.Rectangle structure that specifies the portion of the image object
1227         '     to draw.
1228         '         '   srcUnit:
1229         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the units
1230         '     of measure used by the srcRect parameter.
1231         '         ' Exceptions:
1232         '   T:System.ArgumentNullException:
1233         '     image is null.
1234         Public Overrides Sub DrawImage(image As Image, x As Integer, y As Integer, srcRect As Rectangle, srcUnit As GraphicsUnit)
1235             Call Graphics.DrawImage(image, x, y, srcRect, srcUnit)
1236         End Sub
1237
1238         ''' <summary>
1239         ''' Draws the specified System.Drawing.Image at the specified location and with the
1240         ''' specified size.
1241         ''' </summary>
1242         ''' <param name="image">System.Drawing.Image to draw.</param>
1243         ''' <param name="x">The x-coordinate of the upper-left corner of the drawn image.</param>
1244         ''' <param name="y">The y-coordinate of the upper-left corner of the drawn image.</param>
1245         ''' <param name="width">Width of the drawn image.</param>
1246         ''' <param name="height">Height of the drawn image.</param>
1247         Public Overrides Sub DrawImage(image As Image, x As Integer, y As Integer, width As Integer, height As Integer)
1248             Call Graphics.DrawImage(image, x, y, width, height)
1249         End Sub
1250         '         ' Summary:
1251         '     Draws the specified System.Drawing.Image at the specified location and with the
1252         '     specified size.
1253         '         ' Parameters:
1254         '   image:
1255         '     System.Drawing.Image to draw.
1256         '         '   x:
1257         '     The x-coordinate of the upper-left corner of the drawn image.
1258         '         '   y:
1259         '     The y-coordinate of the upper-left corner of the drawn image.
1260         '         '   width:
1261         '     Width of the drawn image.
1262         '         '   height:
1263         '     Height of the drawn image.
1264         '         ' Exceptions:
1265         '   T:System.ArgumentNullException:
1266         '     image is null.
1267         Public Overrides Sub DrawImage(image As Image, x As Single, y As Single, width As Single, height As Single)
1268             Call Graphics.DrawImage(image, x, y, width, height)
1269         End Sub
1270         '         ' Summary:
1271         '     Draws the specified portion of the specified System.Drawing.Image at the specified
1272         '     location and with the specified size.
1273         '         ' Parameters:
1274         '   image:
1275         '     System.Drawing.Image to draw.
1276         '         '   destPoints:
1277         '     Array of three System.Drawing.PointF structures that define a parallelogram.
1278         '         '   srcRect:
1279         '     System.Drawing.Rectangle structure that specifies the portion of the image object
1280         '     to draw.
1281         '         '   srcUnit:
1282         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the units
1283         '     of measure used by the srcRect parameter.
1284         '         '   imageAttr:
1285         '     System.Drawing.Imaging.ImageAttributes that specifies recoloring and gamma information
1286         '     for the image object.
1287         '         '   callback:
1288         '     System.Drawing.Graphics.DrawImageAbort delegate that specifies a method to call
1289         '     during the drawing of the image. This method is called frequently to check whether
1290         '     to stop execution of the System.Drawing.Graphics.DrawImage(System.Drawing.Image,System.Drawing.Point[],System.Drawing.Rectangle,System.Drawing.GraphicsUnit,System.Drawing.Imaging.ImageAttributes,System.Drawing.Graphics.DrawImageAbort)
1291         '     method according to application-determined criteria.
1292         '         ' Exceptions:
1293         '   T:System.ArgumentNullException:
1294         '     image is null.
1295         Public Overrides Sub DrawImage(image As Image, destPoints() As Point, srcRect As Rectangle, srcUnit As GraphicsUnit, imageAttr As ImageAttributes, callback As DrawImageAbort)
1296
1297         End Sub
1298         '         ' Summary:
1299         '     Draws the specified portion of the specified System.Drawing.Image at the specified
1300         '     location and with the specified size.
1301         '         ' Parameters:
1302         '   image:
1303         '     System.Drawing.Image to draw.
1304         '         '   destPoints:
1305         '     Array of three System.Drawing.PointF structures that define a parallelogram.
1306         '         '   srcRect:
1307         '     System.Drawing.RectangleF structure that specifies the portion of the image object
1308         '     to draw.
1309         '         '   srcUnit:
1310         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the units
1311         '     of measure used by the srcRect parameter.
1312         '         '   imageAttr:
1313         '     System.Drawing.Imaging.ImageAttributes that specifies recoloring and gamma information
1314         '     for the image object.
1315         '         '   callback:
1316         '     System.Drawing.Graphics.DrawImageAbort delegate that specifies a method to call
1317         '     during the drawing of the image. This method is called frequently to check whether
1318         '     to stop execution of the System.Drawing.Graphics.DrawImage(System.Drawing.Image,System.Drawing.PointF[],System.Drawing.RectangleF,System.Drawing.GraphicsUnit,System.Drawing.Imaging.ImageAttributes,System.Drawing.Graphics.DrawImageAbort)
1319         '     method according to application-determined criteria.
1320         '         ' Exceptions:
1321         '   T:System.ArgumentNullException:
1322         '     image is null.
1323         Public Overrides Sub DrawImage(image As Image, destPoints() As PointF, srcRect As RectangleF, srcUnit As GraphicsUnit, imageAttr As ImageAttributes, callback As DrawImageAbort)
1324
1325         End Sub
1326         '         ' Summary:
1327         '     Draws the specified portion of the specified System.Drawing.Image at the specified
1328         '     location and with the specified size.
1329         '         ' Parameters:
1330         '   image:
1331         '     System.Drawing.Image to draw.
1332         '         '   destRect:
1333         '     System.Drawing.Rectangle structure that specifies the location and size of the
1334         '     drawn image. The image is scaled to fit the rectangle.
1335         '         '   srcX:
1336         '     The x-coordinate of the upper-left corner of the portion of the source image
1337         '     to draw.
1338         '         '   srcY:
1339         '     The y-coordinate of the upper-left corner of the portion of the source image
1340         '     to draw.
1341         '         '   srcWidth:
1342         '     Width of the portion of the source image to draw.
1343         '         '   srcHeight:
1344         '     Height of the portion of the source image to draw.
1345         '         '   srcUnit:
1346         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the units
1347         '     of measure used to determine the source rectangle.
1348         '         ' Exceptions:
1349         '   T:System.ArgumentNullException:
1350         '     image is null.
1351         Public Overrides Sub DrawImage(image As Image, destRect As Rectangle, srcX As Integer, srcY As Integer, srcWidth As Integer, srcHeight As Integer, srcUnit As GraphicsUnit)
1352
1353         End Sub
1354         '         ' Summary:
1355         '     Draws the specified portion of the specified System.Drawing.Image at the specified
1356         '     location and with the specified size.
1357         '         ' Parameters:
1358         '   image:
1359         '     System.Drawing.Image to draw.
1360         '         '   destPoints:
1361         '     Array of three System.Drawing.PointF structures that define a parallelogram.
1362         '         '   srcRect:
1363         '     System.Drawing.Rectangle structure that specifies the portion of the image object
1364         '     to draw.
1365         '         '   srcUnit:
1366         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the units
1367         '     of measure used by the srcRect parameter.
1368         '         '   imageAttr:
1369         '     System.Drawing.Imaging.ImageAttributes that specifies recoloring and gamma information
1370         '     for the image object.
1371         '         '   callback:
1372         '     System.Drawing.Graphics.DrawImageAbort delegate that specifies a method to call
1373         '     during the drawing of the image. This method is called frequently to check whether
1374         '     to stop execution of the System.Drawing.Graphics.DrawImage(System.Drawing.Image,System.Drawing.Point[],System.Drawing.Rectangle,System.Drawing.GraphicsUnit,System.Drawing.Imaging.ImageAttributes,System.Drawing.Graphics.DrawImageAbort,System.Int32)
1375         '     method according to application-determined criteria.
1376         '         '   callbackData:
1377         '     Value specifying additional data for the System.Drawing.Graphics.DrawImageAbort
1378         '     delegate to use when checking whether to stop execution of the System.Drawing.Graphics.DrawImage(System.Drawing.Image,System.Drawing.Point[],System.Drawing.Rectangle,System.Drawing.GraphicsUnit,System.Drawing.Imaging.ImageAttributes,System.Drawing.Graphics.DrawImageAbort,System.Int32)
1379         '     method.
1380         Public Overrides Sub DrawImage(image As Image, destPoints() As Point, srcRect As Rectangle, srcUnit As GraphicsUnit, imageAttr As ImageAttributes, callback As DrawImageAbort, callbackData As Integer)
1381
1382         End Sub
1383         '         ' Summary:
1384         '     Draws the specified portion of the specified System.Drawing.Image at the specified
1385         '     location and with the specified size.
1386         '         ' Parameters:
1387         '   image:
1388         '     System.Drawing.Image to draw.
1389         '         '   destRect:
1390         '     System.Drawing.Rectangle structure that specifies the location and size of the
1391         '     drawn image. The image is scaled to fit the rectangle.
1392         '         '   srcX:
1393         '     The x-coordinate of the upper-left corner of the portion of the source image
1394         '     to draw.
1395         '         '   srcY:
1396         '     The y-coordinate of the upper-left corner of the portion of the source image
1397         '     to draw.
1398         '         '   srcWidth:
1399         '     Width of the portion of the source image to draw.
1400         '         '   srcHeight:
1401         '     Height of the portion of the source image to draw.
1402         '         '   srcUnit:
1403         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the units
1404         '     of measure used to determine the source rectangle.
1405         '         ' Exceptions:
1406         '   T:System.ArgumentNullException:
1407         '     image is null.
1408         Public Overrides Sub DrawImage(image As Image, destRect As Rectangle, srcX As Single, srcY As Single, srcWidth As Single, srcHeight As Single, srcUnit As GraphicsUnit)
1409
1410         End Sub
1411         '         ' Summary:
1412         '     Draws the specified portion of the specified System.Drawing.Image at the specified
1413         '     location and with the specified size.
1414         '         ' Parameters:
1415         '   image:
1416         '     System.Drawing.Image to draw.
1417         '         '   destPoints:
1418         '     Array of three System.Drawing.PointF structures that define a parallelogram.
1419         '         '   srcRect:
1420         '     System.Drawing.RectangleF structure that specifies the portion of the image object
1421         '     to draw.
1422         '         '   srcUnit:
1423         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the units
1424         '     of measure used by the srcRect parameter.
1425         '         '   imageAttr:
1426         '     System.Drawing.Imaging.ImageAttributes that specifies recoloring and gamma information
1427         '     for the image object.
1428         '         '   callback:
1429         '     System.Drawing.Graphics.DrawImageAbort delegate that specifies a method to call
1430         '     during the drawing of the image. This method is called frequently to check whether
1431         '     to stop execution of the System.Drawing.Graphics.DrawImage(System.Drawing.Image,System.Drawing.PointF[],System.Drawing.RectangleF,System.Drawing.GraphicsUnit,System.Drawing.Imaging.ImageAttributes,System.Drawing.Graphics.DrawImageAbort,System.Int32)
1432         '     method according to application-determined criteria.
1433         '         '   callbackData:
1434         '     Value specifying additional data for the System.Drawing.Graphics.DrawImageAbort
1435         '     delegate to use when checking whether to stop execution of the System.Drawing.Graphics.DrawImage(System.Drawing.Image,System.Drawing.PointF[],System.Drawing.RectangleF,System.Drawing.GraphicsUnit,System.Drawing.Imaging.ImageAttributes,System.Drawing.Graphics.DrawImageAbort,System.Int32)
1436         '     method.
1437         '         ' Exceptions:
1438         '   T:System.ArgumentNullException:
1439         '     image is null.
1440         Public Overrides Sub DrawImage(image As Image, destPoints() As PointF, srcRect As RectangleF, srcUnit As GraphicsUnit, imageAttr As ImageAttributes, callback As DrawImageAbort, callbackData As Integer)
1441
1442         End Sub
1443         '         ' Summary:
1444         '     Draws the specified portion of the specified System.Drawing.Image at the specified
1445         '     location and with the specified size.
1446         '         ' Parameters:
1447         '   image:
1448         '     System.Drawing.Image to draw.
1449         '         '   destRect:
1450         '     System.Drawing.Rectangle structure that specifies the location and size of the
1451         '     drawn image. The image is scaled to fit the rectangle.
1452         '         '   srcX:
1453         '     The x-coordinate of the upper-left corner of the portion of the source image
1454         '     to draw.
1455         '         '   srcY:
1456         '     The y-coordinate of the upper-left corner of the portion of the source image
1457         '     to draw.
1458         '         '   srcWidth:
1459         '     Width of the portion of the source image to draw.
1460         '         '   srcHeight:
1461         '     Height of the portion of the source image to draw.
1462         '         '   srcUnit:
1463         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the units
1464         '     of measure used to determine the source rectangle.
1465         '         '   imageAttr:
1466         '     System.Drawing.Imaging.ImageAttributes that specifies recoloring and gamma information
1467         '     for the image object.
1468         '         ' Exceptions:
1469         '   T:System.ArgumentNullException:
1470         '     image is null.
1471         Public Overrides Sub DrawImage(image As Image, destRect As Rectangle, srcX As Integer, srcY As Integer, srcWidth As Integer, srcHeight As Integer, srcUnit As GraphicsUnit, imageAttr As ImageAttributes)
1472
1473         End Sub
1474         '         ' Summary:
1475         '     Draws the specified portion of the specified System.Drawing.Image at the specified
1476         '     location and with the specified size.
1477         '         ' Parameters:
1478         '   image:
1479         '     System.Drawing.Image to draw.
1480         '         '   destRect:
1481         '     System.Drawing.Rectangle structure that specifies the location and size of the
1482         '     drawn image. The image is scaled to fit the rectangle.
1483         '         '   srcX:
1484         '     The x-coordinate of the upper-left corner of the portion of the source image
1485         '     to draw.
1486         '         '   srcY:
1487         '     The y-coordinate of the upper-left corner of the portion of the source image
1488         '     to draw.
1489         '         '   srcWidth:
1490         '     Width of the portion of the source image to draw.
1491         '         '   srcHeight:
1492         '     Height of the portion of the source image to draw.
1493         '         '   srcUnit:
1494         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the units
1495         '     of measure used to determine the source rectangle.
1496         '         '   imageAttrs:
1497         '     System.Drawing.Imaging.ImageAttributes that specifies recoloring and gamma information
1498         '     for the image object.
1499         '         ' Exceptions:
1500         '   T:System.ArgumentNullException:
1501         '     image is null.
1502         Public Overrides Sub DrawImage(image As Image, destRect As Rectangle, srcX As Single, srcY As Single, srcWidth As Single, srcHeight As Single, srcUnit As GraphicsUnit, imageAttrs As ImageAttributes)
1503
1504         End Sub
1505         '         ' Summary:
1506         '     Draws the specified portion of the specified System.Drawing.Image at the specified
1507         '     location and with the specified size.
1508         '         ' Parameters:
1509         '   image:
1510         '     System.Drawing.Image to draw.
1511         '         '   destRect:
1512         '     System.Drawing.Rectangle structure that specifies the location and size of the
1513         '     drawn image. The image is scaled to fit the rectangle.
1514         '         '   srcX:
1515         '     The x-coordinate of the upper-left corner of the portion of the source image
1516         '     to draw.
1517         '         '   srcY:
1518         '     The y-coordinate of the upper-left corner of the portion of the source image
1519         '     to draw.
1520         '         '   srcWidth:
1521         '     Width of the portion of the source image to draw.
1522         '         '   srcHeight:
1523         '     Height of the portion of the source image to draw.
1524         '         '   srcUnit:
1525         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the units
1526         '     of measure used to determine the source rectangle.
1527         '         '   imageAttr:
1528         '     System.Drawing.Imaging.ImageAttributes that specifies recoloring and gamma information
1529         '     for image.
1530         '         '   callback:
1531         '     System.Drawing.Graphics.DrawImageAbort delegate that specifies a method to call
1532         '     during the drawing of the image. This method is called frequently to check whether
1533         '     to stop execution of the System.Drawing.Graphics.DrawImage(System.Drawing.Image,System.Drawing.Rectangle,System.Int32,System.Int32,System.Int32,System.Int32,System.Drawing.GraphicsUnit,System.Drawing.Imaging.ImageAttributes,System.Drawing.Graphics.DrawImageAbort)
1534         '     method according to application-determined criteria.
1535         '         ' Exceptions:
1536         '   T:System.ArgumentNullException:
1537         '     image is null.
1538         Public Overrides Sub DrawImage(image As Image, destRect As Rectangle, srcX As Integer, srcY As Integer, srcWidth As Integer, srcHeight As Integer, srcUnit As GraphicsUnit, imageAttr As ImageAttributes, callback As DrawImageAbort)
1539
1540         End Sub
1541         '         ' Summary:
1542         '     Draws the specified portion of the specified System.Drawing.Image at the specified
1543         '     location and with the specified size.
1544         '         ' Parameters:
1545         '   image:
1546         '     System.Drawing.Image to draw.
1547         '         '   destRect:
1548         '     System.Drawing.Rectangle structure that specifies the location and size of the
1549         '     drawn image. The image is scaled to fit the rectangle.
1550         '         '   srcX:
1551         '     The x-coordinate of the upper-left corner of the portion of the source image
1552         '     to draw.
1553         '         '   srcY:
1554         '     The y-coordinate of the upper-left corner of the portion of the source image
1555         '     to draw.
1556         '         '   srcWidth:
1557         '     Width of the portion of the source image to draw.
1558         '         '   srcHeight:
1559         '     Height of the portion of the source image to draw.
1560         '         '   srcUnit:
1561         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the units
1562         '     of measure used to determine the source rectangle.
1563         '         '   imageAttrs:
1564         '     System.Drawing.Imaging.ImageAttributes that specifies recoloring and gamma information
1565         '     for the image object.
1566         '         '   callback:
1567         '     System.Drawing.Graphics.DrawImageAbort delegate that specifies a method to call
1568         '     during the drawing of the image. This method is called frequently to check whether
1569         '     to stop execution of the System.Drawing.Graphics.DrawImage(System.Drawing.Image,System.Drawing.Rectangle,System.Single,System.Single,System.Single,System.Single,System.Drawing.GraphicsUnit,System.Drawing.Imaging.ImageAttributes,System.Drawing.Graphics.DrawImageAbort)
1570         '     method according to application-determined criteria.
1571         '         ' Exceptions:
1572         '   T:System.ArgumentNullException:
1573         '     image is null.
1574         Public Overrides Sub DrawImage(image As Image, destRect As Rectangle, srcX As Single, srcY As Single, srcWidth As Single, srcHeight As Single, srcUnit As GraphicsUnit, imageAttrs As ImageAttributes, callback As DrawImageAbort)
1575
1576         End Sub
1577         '         ' Summary:
1578         '     Draws the specified portion of the specified System.Drawing.Image at the specified
1579         '     location and with the specified size.
1580         '         ' Parameters:
1581         '   image:
1582         '     System.Drawing.Image to draw.
1583         '         '   destRect:
1584         '     System.Drawing.Rectangle structure that specifies the location and size of the
1585         '     drawn image. The image is scaled to fit the rectangle.
1586         '         '   srcX:
1587         '     The x-coordinate of the upper-left corner of the portion of the source image
1588         '     to draw.
1589         '         '   srcY:
1590         '     The y-coordinate of the upper-left corner of the portion of the source image
1591         '     to draw.
1592         '         '   srcWidth:
1593         '     Width of the portion of the source image to draw.
1594         '         '   srcHeight:
1595         '     Height of the portion of the source image to draw.
1596         '         '   srcUnit:
1597         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the units
1598         '     of measure used to determine the source rectangle.
1599         '         '   imageAttrs:
1600         '     System.Drawing.Imaging.ImageAttributes that specifies recoloring and gamma information
1601         '     for the image object.
1602         '         '   callback:
1603         '     System.Drawing.Graphics.DrawImageAbort delegate that specifies a method to call
1604         '     during the drawing of the image. This method is called frequently to check whether
1605         '     to stop execution of the System.Drawing.Graphics.DrawImage(System.Drawing.Image,System.Drawing.Rectangle,System.Int32,System.Int32,System.Int32,System.Int32,System.Drawing.GraphicsUnit,System.Drawing.Imaging.ImageAttributes,System.Drawing.Graphics.DrawImageAbort,System.IntPtr)
1606         '     method according to application-determined criteria.
1607         '         '   callbackData:
1608         '     Value specifying additional data for the System.Drawing.Graphics.DrawImageAbort
1609         '     delegate to use when checking whether to stop execution of the DrawImage method.
1610         '         ' Exceptions:
1611         '   T:System.ArgumentNullException:
1612         '     image is null.
1613         Public Overrides Sub DrawImage(image As Image, destRect As Rectangle, srcX As Integer, srcY As Integer, srcWidth As Integer, srcHeight As Integer, srcUnit As GraphicsUnit, imageAttrs As ImageAttributes, callback As DrawImageAbort, callbackData As IntPtr)
1614
1615         End Sub
1616         '         ' Summary:
1617         '     Draws the specified portion of the specified System.Drawing.Image at the specified
1618         '     location and with the specified size.
1619         '         ' Parameters:
1620         '   image:
1621         '     System.Drawing.Image to draw.
1622         '         '   destRect:
1623         '     System.Drawing.Rectangle structure that specifies the location and size of the
1624         '     drawn image. The image is scaled to fit the rectangle.
1625         '         '   srcX:
1626         '     The x-coordinate of the upper-left corner of the portion of the source image
1627         '     to draw.
1628         '         '   srcY:
1629         '     The y-coordinate of the upper-left corner of the portion of the source image
1630         '     to draw.
1631         '         '   srcWidth:
1632         '     Width of the portion of the source image to draw.
1633         '         '   srcHeight:
1634         '     Height of the portion of the source image to draw.
1635         '         '   srcUnit:
1636         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the units
1637         '     of measure used to determine the source rectangle.
1638         '         '   imageAttrs:
1639         '     System.Drawing.Imaging.ImageAttributes that specifies recoloring and gamma information
1640         '     for the image object.
1641         '         '   callback:
1642         '     System.Drawing.Graphics.DrawImageAbort delegate that specifies a method to call
1643         '     during the drawing of the image. This method is called frequently to check whether
1644         '     to stop execution of the System.Drawing.Graphics.DrawImage(System.Drawing.Image,System.Drawing.Rectangle,System.Single,System.Single,System.Single,System.Single,System.Drawing.GraphicsUnit,System.Drawing.Imaging.ImageAttributes,System.Drawing.Graphics.DrawImageAbort,System.IntPtr)
1645         '     method according to application-determined criteria.
1646         '         '   callbackData:
1647         '     Value specifying additional data for the System.Drawing.Graphics.DrawImageAbort
1648         '     delegate to use when checking whether to stop execution of the DrawImage method.
1649         '         ' Exceptions:
1650         '   T:System.ArgumentNullException:
1651         '     image is null.
1652         Public Overrides Sub DrawImage(image As Image, destRect As Rectangle, srcX As Single, srcY As Single, srcWidth As Single, srcHeight As Single, srcUnit As GraphicsUnit, imageAttrs As ImageAttributes, callback As DrawImageAbort, callbackData As IntPtr)
1653
1654         End Sub
1655         '         ' Summary:
1656         '     Draws a specified image using its original physical size at a specified location.
1657         '         ' Parameters:
1658         '   image:
1659         '     System.Drawing.Image to draw.
1660         '         '   rect:
1661         '     System.Drawing.Rectangle that specifies the upper-left corner of the drawn image.
1662         '     The X and Y properties of the rectangle specify the upper-left corner. The Width
1663         '     and Height properties are ignored.
1664         '         ' Exceptions:
1665         '   T:System.ArgumentNullException:
1666         '     image is null.
1667         Public Overrides Sub DrawImageUnscaled(image As Image, rect As Rectangle)
1668             Call Graphics.DrawImageUnscaled(image, rect)
1669         End Sub
1670         '         ' Summary:
1671         '     Draws a specified image using its original physical size at a specified location.
1672         '         ' Parameters:
1673         '   image:
1674         '     System.Drawing.Image to draw.
1675         '         '   point:
1676         '     System.Drawing.Point structure that specifies the upper-left corner of the drawn
1677         '     image.
1678         '         ' Exceptions:
1679         '   T:System.ArgumentNullException:
1680         '     image is null.
1681         Public Overrides Sub DrawImageUnscaled(image As Image, point As Point)
1682             Call Graphics.DrawImageUnscaled(image, point)
1683         End Sub
1684
1685         ' Exceptions:
1686         '   T:System.ArgumentNullException:
1687         '     image is null.
1688         ''' <summary>
1689         ''' Draws the specified image using its original physical size at the location specified
1690         ''' by a coordinate pair.
1691         ''' </summary>
1692         ''' <param name="image">System.Drawing.Image to draw.</param>
1693         ''' <param name="x">The x-coordinate of the upper-left corner of the drawn image.</param>
1694         ''' <param name="y">The y-coordinate of the upper-left corner of the drawn image.</param>
1695         <MethodImpl(MethodImplOptions.AggressiveInlining)>
1696         Public Overrides Sub DrawImageUnscaled(image As Image, x As Integer, y As Integer)
1697             Call Graphics.DrawImageUnscaled(image, x, y)
1698         End Sub
1699
1700         ''' <summary>
1701         ''' Draws a specified image using its original physical size at a specified location.
1702         ''' </summary>
1703         ''' <param name="image"><see cref="Image"/> to draw.</param>
1704         ''' <param name="x">The x-coordinate of the upper-left corner of the drawn image.</param>
1705         ''' <param name="y">The y-coordinate of the upper-left corner of the drawn image.</param>
1706         ''' <param name="width"></param>
1707         ''' <param name="height"></param>
1708         Public Overrides Sub DrawImageUnscaled(image As Image, x As Integer, y As Integer, width As Integer, height As Integer)
1709             Call Graphics.DrawImageUnscaled(image, x, y, width, height)
1710         End Sub
1711
1712         ''' <summary>
1713         ''' Draws the specified image without scaling and clips it, if necessary, to fit
1714         ''' in the specified rectangle.
1715         ''' </summary>
1716         ''' <param name="image">The <see cref="Image"/> to draw.</param>
1717         ''' <param name="rect">The <see cref="Rectangle"/> in which to draw the image.</param>
1718         Public Overrides Sub DrawImageUnscaledAndClipped(image As Image, rect As Rectangle)
1719             Call Graphics.DrawImageUnscaledAndClipped(image, rect)
1720         End Sub
1721
1722         ''' <summary>
1723         ''' Draws a line connecting two <see cref="Point"/> structures.
1724         ''' </summary>
1725         ''' <param name="pen"><see cref="Pen"/> that determines the color, width, and style of the line.</param>
1726         ''' <param name="pt1"><see cref="Point"/> structure that represents the first point to connect.</param>
1727         ''' <param name="pt2"><see cref="Point"/> structure that represents the second point to connect.</param>
1728         <MethodImpl(MethodImplOptions.AggressiveInlining)>
1729         Public Overrides Sub DrawLine(pen As Pen, pt1 As Point, pt2 As Point)
1730             Call Graphics.DrawLine(pen, pt1, pt2)
1731         End Sub
1732         '         ' Summary:
1733         '     Draws a line connecting two System.Drawing.PointF structures.
1734         '         ' Parameters:
1735         '   pen:
1736         '     System.Drawing.Pen that determines the color, width, and style of the line.
1737         '         '   pt1:
1738         '     System.Drawing.PointF structure that represents the first point to connect.
1739         '         '   pt2:
1740         '     System.Drawing.PointF structure that represents the second point to connect.
1741         '         ' Exceptions:
1742         '   T:System.ArgumentNullException:
1743         '     pen is null.
1744         Public Overrides Sub DrawLine(pen As Pen, pt1 As PointF, pt2 As PointF)
1745             Call Graphics.DrawLine(pen, pt1, pt2)
1746         End Sub
1747         '         ' Summary:
1748         '     Draws a line connecting the two points specified by the coordinate pairs.
1749         '         ' Parameters:
1750         '   pen:
1751         '     System.Drawing.Pen that determines the color, width, and style of the line.
1752         '         '   x1:
1753         '     The x-coordinate of the first point.
1754         '         '   y1:
1755         '     The y-coordinate of the first point.
1756         '         '   x2:
1757         '     The x-coordinate of the second point.
1758         '         '   y2:
1759         '     The y-coordinate of the second point.
1760         '         ' Exceptions:
1761         '   T:System.ArgumentNullException:
1762         '     pen is null.
1763         Public Overrides Sub DrawLine(pen As Pen, x1 As Integer, y1 As Integer, x2 As Integer, y2 As Integer)
1764             Call Graphics.DrawLine(pen, x1, y1, x2, y2)
1765         End Sub
1766         '         ' Summary:
1767         '     Draws a line connecting the two points specified by the coordinate pairs.
1768         '         ' Parameters:
1769         '   pen:
1770         '     System.Drawing.Pen that determines the color, width, and style of the line.
1771         '         '   x1:
1772         '     The x-coordinate of the first point.
1773         '         '   y1:
1774         '     The y-coordinate of the first point.
1775         '         '   x2:
1776         '     The x-coordinate of the second point.
1777         '         '   y2:
1778         '     The y-coordinate of the second point.
1779         '         ' Exceptions:
1780         '   T:System.ArgumentNullException:
1781         '     pen is null.
1782         Public Overrides Sub DrawLine(pen As Pen, x1 As Single, y1 As Single, x2 As Single, y2 As Single)
1783             Call Graphics.DrawLine(pen, x1, y1, x2, y2)
1784         End Sub
1785         '         ' Summary:
1786         '     Draws a series of line segments that connect an array of System.Drawing.Point
1787         '     structures.
1788         '         ' Parameters:
1789         '   pen:
1790         '     System.Drawing.Pen that determines the color, width, and style of the line segments.
1791         '         '   points:
1792         '     Array of System.Drawing.Point structures that represent the points to connect.
1793         '         ' Exceptions:
1794         '   T:System.ArgumentNullException:
1795         '     pen is null.-or-points is null.
1796         Public Overrides Sub DrawLines(pen As Pen, points() As Point)
1797             Call Graphics.DrawLines(pen, points)
1798         End Sub
1799         '         ' Summary:
1800         '     Draws a series of line segments that connect an array of System.Drawing.PointF
1801         '     structures.
1802         '         ' Parameters:
1803         '   pen:
1804         '     System.Drawing.Pen that determines the color, width, and style of the line segments.
1805         '         '   points:
1806         '     Array of System.Drawing.PointF structures that represent the points to connect.
1807         '         ' Exceptions:
1808         '   T:System.ArgumentNullException:
1809         '     pen is null.-or-points is null.
1810         Public Overrides Sub DrawLines(pen As Pen, points() As PointF)
1811             Call Graphics.DrawLines(pen, points)
1812         End Sub
1813         '         ' Summary:
1814         '     Draws a System.Drawing.Drawing2D.GraphicsPath.
1815         '         ' Parameters:
1816         '   pen:
1817         '     System.Drawing.Pen that determines the color, width, and style of the path.
1818         '         '   path:
1819         '     System.Drawing.Drawing2D.GraphicsPath to draw.
1820         '         ' Exceptions:
1821         '   T:System.ArgumentNullException:
1822         '     pen is null.-or-path is null.
1823         Public Overrides Sub DrawPath(pen As Pen, path As GraphicsPath)
1824             Call Graphics.DrawPath(pen, path)
1825         End Sub
1826         '         ' Summary:
1827         '     Draws a pie shape defined by an ellipse specified by a System.Drawing.Rectangle
1828         '     structure and two radial lines.
1829         '         ' Parameters:
1830         '   pen:
1831         '     System.Drawing.Pen that determines the color, width, and style of the pie shape.
1832         '         '   rect:
1833         '     System.Drawing.Rectangle structure that represents the bounding rectangle that
1834         '     defines the ellipse from which the pie shape comes.
1835         '         '   startAngle:
1836         '     Angle measured in degrees clockwise from the x-axis to the first side of the
1837         '     pie shape.
1838         '         '   sweepAngle:
1839         '     Angle measured in degrees clockwise from the startAngle parameter to the second
1840         '     side of the pie shape.
1841         '         ' Exceptions:
1842         '   T:System.ArgumentNullException:
1843         '     pen is null.
1844         Public Overrides Sub DrawPie(pen As Pen, rect As Rectangle, startAngle As Single, sweepAngle As Single)
1845             Call Graphics.DrawPie(pen, rect, startAngle, sweepAngle)
1846         End Sub
1847         '         ' Summary:
1848         '     Draws a pie shape defined by an ellipse specified by a System.Drawing.RectangleF
1849         '     structure and two radial lines.
1850         '         ' Parameters:
1851         '   pen:
1852         '     System.Drawing.Pen that determines the color, width, and style of the pie shape.
1853         '         '   rect:
1854         '     System.Drawing.RectangleF structure that represents the bounding rectangle that
1855         '     defines the ellipse from which the pie shape comes.
1856         '         '   startAngle:
1857         '     Angle measured in degrees clockwise from the x-axis to the first side of the
1858         '     pie shape.
1859         '         '   sweepAngle:
1860         '     Angle measured in degrees clockwise from the startAngle parameter to the second
1861         '     side of the pie shape.
1862         '         ' Exceptions:
1863         '   T:System.ArgumentNullException:
1864         '     pen is null.
1865         Public Overrides Sub DrawPie(pen As Pen, rect As RectangleF, startAngle As Single, sweepAngle As Single)
1866             Call Graphics.DrawPie(pen, rect, startAngle, sweepAngle)
1867         End Sub
1868         '         ' Summary:
1869         '     Draws a pie shape defined by an ellipse specified by a coordinate pair, a width,
1870         '     a height, and two radial lines.
1871         '         ' Parameters:
1872         '   pen:
1873         '     System.Drawing.Pen that determines the color, width, and style of the pie shape.
1874         '         '   x:
1875         '     The x-coordinate of the upper-left corner of the bounding rectangle that defines
1876         '     the ellipse from which the pie shape comes.
1877         '         '   y:
1878         '     The y-coordinate of the upper-left corner of the bounding rectangle that defines
1879         '     the ellipse from which the pie shape comes.
1880         '         '   width:
1881         '     Width of the bounding rectangle that defines the ellipse from which the pie shape
1882         '     comes.
1883         '         '   height:
1884         '     Height of the bounding rectangle that defines the ellipse from which the pie
1885         '     shape comes.
1886         '         '   startAngle:
1887         '     Angle measured in degrees clockwise from the x-axis to the first side of the
1888         '     pie shape.
1889         '         '   sweepAngle:
1890         '     Angle measured in degrees clockwise from the startAngle parameter to the second
1891         '     side of the pie shape.
1892         '         ' Exceptions:
1893         '   T:System.ArgumentNullException:
1894         '     pen is null.
1895         Public Overrides Sub DrawPie(pen As Pen, x As Integer, y As Integer, width As Integer, height As Integer, startAngle As Integer, sweepAngle As Integer)
1896
1897         End Sub
1898         '         ' Summary:
1899         '     Draws a pie shape defined by an ellipse specified by a coordinate pair, a width,
1900         '     a height, and two radial lines.
1901         '         ' Parameters:
1902         '   pen:
1903         '     System.Drawing.Pen that determines the color, width, and style of the pie shape.
1904         '         '   x:
1905         '     The x-coordinate of the upper-left corner of the bounding rectangle that defines
1906         '     the ellipse from which the pie shape comes.
1907         '         '   y:
1908         '     The y-coordinate of the upper-left corner of the bounding rectangle that defines
1909         '     the ellipse from which the pie shape comes.
1910         '         '   width:
1911         '     Width of the bounding rectangle that defines the ellipse from which the pie shape
1912         '     comes.
1913         '         '   height:
1914         '     Height of the bounding rectangle that defines the ellipse from which the pie
1915         '     shape comes.
1916         '         '   startAngle:
1917         '     Angle measured in degrees clockwise from the x-axis to the first side of the
1918         '     pie shape.
1919         '         '   sweepAngle:
1920         '     Angle measured in degrees clockwise from the startAngle parameter to the second
1921         '     side of the pie shape.
1922         '         ' Exceptions:
1923         '   T:System.ArgumentNullException:
1924         '     pen is null.
1925
1926         Public Overrides Sub DrawPie(pen As Pen, x As Single, y As Single, width As Single, height As Single, startAngle As Single, sweepAngle As Single)
1927
1928         End Sub
1929
1930         '         ' Summary:
1931         '     Draws a polygon defined by an array of System.Drawing.Point structures.
1932         '         ' Parameters:
1933         '   pen:
1934         '     System.Drawing.Pen that determines the color, width, and style of the polygon.
1935         '         '   points:
1936         '     Array of System.Drawing.Point structures that represent the vertices of the polygon.
1937         '         ' Exceptions:
1938         '   T:System.ArgumentNullException:
1939         '     pen is null.
1940         Public Overrides Sub DrawPolygon(pen As Pen, points() As Point)
1941             Call Graphics.DrawPolygon(pen, points)
1942         End Sub
1943         '         ' Summary:
1944         '     Draws a polygon defined by an array of System.Drawing.PointF structures.
1945         '         ' Parameters:
1946         '   pen:
1947         '     System.Drawing.Pen that determines the color, width, and style of the polygon.
1948         '         '   points:
1949         '     Array of System.Drawing.PointF structures that represent the vertices of the
1950         '     polygon.
1951         '         ' Exceptions:
1952         '   T:System.ArgumentNullException:
1953         '     pen is null.-or-points is null.
1954         Public Overrides Sub DrawPolygon(pen As Pen, points() As PointF)
1955             Call Graphics.DrawPolygon(pen, points)
1956         End Sub
1957         '         ' Summary:
1958         '     Draws a rectangle specified by a System.Drawing.Rectangle structure.
1959         '         ' Parameters:
1960         '   pen:
1961         '     A System.Drawing.Pen that determines the color, width, and style of the rectangle.
1962         '         '   rect:
1963         '     A System.Drawing.Rectangle structure that represents the rectangle to draw.
1964         '         ' Exceptions:
1965         '   T:System.ArgumentNullException:
1966         '     pen is null.
1967         Public Overrides Sub DrawRectangle(pen As Pen, rect As Rectangle)
1968             Call Graphics.DrawRectangle(pen, rect)
1969         End Sub
1970         '         ' Summary:
1971         '     Draws a rectangle specified by a coordinate pair, a width, and a height.
1972         '         ' Parameters:
1973         '   pen:
1974         '     System.Drawing.Pen that determines the color, width, and style of the rectangle.
1975         '         '   x:
1976         '     The x-coordinate of the upper-left corner of the rectangle to draw.
1977         '         '   y:
1978         '     The y-coordinate of the upper-left corner of the rectangle to draw.
1979         '         '   width:
1980         '     Width of the rectangle to draw.
1981         '         '   height:
1982         '     Height of the rectangle to draw.
1983         '         ' Exceptions:
1984         '   T:System.ArgumentNullException:
1985         '     pen is null.
1986         Public Overrides Sub DrawRectangle(pen As Pen, x As Integer, y As Integer, width As Integer, height As Integer)
1987             Call Graphics.DrawRectangle(pen, x, y, width, height)
1988         End Sub
1989         '         ' Summary:
1990         '     Draws a rectangle specified by a coordinate pair, a width, and a height.
1991         '         ' Parameters:
1992         '   pen:
1993         '     A System.Drawing.Pen that determines the color, width, and style of the rectangle.
1994         '         '   x:
1995         '     The x-coordinate of the upper-left corner of the rectangle to draw.
1996         '         '   y:
1997         '     The y-coordinate of the upper-left corner of the rectangle to draw.
1998         '         '   width:
1999         '     The width of the rectangle to draw.
2000         '         '   height:
2001         '     The height of the rectangle to draw.
2002         '         ' Exceptions:
2003         '   T:System.ArgumentNullException:
2004         '     pen is null.
2005         Public Overrides Sub DrawRectangle(pen As Pen, x As Single, y As Single, width As Single, height As Single)
2006             Call Graphics.DrawRectangle(pen, x, y, width, height)
2007         End Sub
2008         '         ' Summary:
2009         '     Draws a series of rectangles specified by System.Drawing.Rectangle structures.
2010         '         ' Parameters:
2011         '   pen:
2012         '     System.Drawing.Pen that determines the color, width, and style of the outlines
2013         '     of the rectangles.
2014         '         '   rects:
2015         '     Array of System.Drawing.Rectangle structures that represent the rectangles to
2016         '     draw.
2017         '         ' Exceptions:
2018         '   T:System.ArgumentNullException:
2019         '     pen is null.-or-rects is null.
2020         '         '   T:System.ArgumentException:
2021         '     rects is a zero-length array.
2022         Public Overrides Sub DrawRectangles(pen As Pen, rects() As Rectangle)
2023
2024         End Sub
2025         '         ' Summary:
2026         '     Draws a series of rectangles specified by System.Drawing.RectangleF structures.
2027         '         ' Parameters:
2028         '   pen:
2029         '     System.Drawing.Pen that determines the color, width, and style of the outlines
2030         '     of the rectangles.
2031         '         '   rects:
2032         '     Array of System.Drawing.RectangleF structures that represent the rectangles to
2033         '     draw.
2034         '         ' Exceptions:
2035         '   T:System.ArgumentNullException:
2036         '     pen is null.-or-rects is null.
2037         '         '   T:System.ArgumentException:
2038         '     rects is a zero-length array.
2039         Public Overrides Sub DrawRectangles(pen As Pen, rects() As RectangleF)
2040
2041         End Sub
2042
2043         ''' <summary>
2044         ''' Draws the specified text string in the specified rectangle with the specified
2045         ''' System.Drawing.Brush and System.Drawing.Font objects.
2046         ''' </summary>
2047         ''' <param name="s">String to draw.</param>
2048         ''' <param name="font">System.Drawing.Font that defines the text format of the string.</param>
2049         ''' <param name="brush">System.Drawing.Brush that determines the color and texture of the drawn text.</param>
2050         ''' <param name="layoutRectangle">System.Drawing.RectangleF structure that specifies the location of the drawn
2051         ''' text.</param>
2052         Public Overrides Sub DrawString(s As String, font As Font, brush As Brush, layoutRectangle As RectangleF)
2053             Call Graphics.DrawString(s, font, brush, layoutRectangle)
2054         End Sub
2055
2056         ''' <summary>
2057         ''' Draws the specified text string at the specified location with the specified
2058         ''' <see cref="System.Drawing.Brush"/> and <see cref="System.Drawing.Font"/> objects.
2059         ''' </summary>
2060         ''' <param name="s">String to draw.</param>
2061         ''' <param name="font">System.Drawing.Font that defines the text format of the string.</param>
2062         ''' <param name="brush">System.Drawing.Brush that determines the color and texture of the drawn text.</param>
2063         ''' <param name="point">System.Drawing.PointF structure that specifies the upper-left corner of the drawn
2064         ''' text.</param>
2065         Public Overrides Sub DrawString(s As String, font As Font, brush As Brush, point As PointF)
2066             Call Graphics.DrawString(s, font, brush, point)
2067         End Sub
2068         '         ' Summary:
2069         '     Draws the specified text string at the specified location with the specified
2070         '     System.Drawing.Brush and System.Drawing.Font objects using the formatting attributes
2071         '     of the specified System.Drawing.StringFormat.
2072         '         ' Parameters:
2073         '   s:
2074         '     String to draw.
2075         '         '   font:
2076         '     System.Drawing.Font that defines the text format of the string.
2077         '         '   brush:
2078         '     System.Drawing.Brush that determines the color and texture of the drawn text.
2079         '         '   point:
2080         '     System.Drawing.PointF structure that specifies the upper-left corner of the drawn
2081         '     text.
2082         '         '   format:
2083         '     System.Drawing.StringFormat that specifies formatting attributes, such as line
2084         '     spacing and alignment, that are applied to the drawn text.
2085         '         ' Exceptions:
2086         '   T:System.ArgumentNullException:
2087         '     brush is null.-or-s is null.
2088         Public Overrides Sub DrawString(s As String, font As Font, brush As Brush, point As PointF, format As StringFormat)
2089             Call Graphics.DrawString(s, font, brush, point, format)
2090         End Sub
2091         '         ' Summary:
2092         '     Draws the specified text string in the specified rectangle with the specified
2093         '     System.Drawing.Brush and System.Drawing.Font objects using the formatting attributes
2094         '     of the specified System.Drawing.StringFormat.
2095         '         ' Parameters:
2096         '   s:
2097         '     String to draw.
2098         '         '   font:
2099         '     System.Drawing.Font that defines the text format of the string.
2100         '         '   brush:
2101         '     System.Drawing.Brush that determines the color and texture of the drawn text.
2102         '         '   layoutRectangle:
2103         '     System.Drawing.RectangleF structure that specifies the location of the drawn
2104         '     text.
2105         '         '   format:
2106         '     System.Drawing.StringFormat that specifies formatting attributes, such as line
2107         '     spacing and alignment, that are applied to the drawn text.
2108         '         ' Exceptions:
2109         '   T:System.ArgumentNullException:
2110         '     brush is null.-or-s is null.
2111         Public Overrides Sub DrawString(s As String, font As Font, brush As Brush, layoutRectangle As RectangleF, format As StringFormat)
2112             Call Graphics.DrawString(s, font, brush, layoutRectangle, format)
2113         End Sub
2114         '         ' Summary:
2115         '     Draws the specified text string at the specified location with the specified
2116         '     System.Drawing.Brush and System.Drawing.Font objects.
2117         '         ' Parameters:
2118         '   s:
2119         '     String to draw.
2120         '         '   font:
2121         '     System.Drawing.Font that defines the text format of the string.
2122         '         '   brush:
2123         '     System.Drawing.Brush that determines the color and texture of the drawn text.
2124         '         '   x:
2125         '     The x-coordinate of the upper-left corner of the drawn text.
2126         '         '   y:
2127         '     The y-coordinate of the upper-left corner of the drawn text.
2128         '         ' Exceptions:
2129         '   T:System.ArgumentNullException:
2130         '     brush is null.-or-s is null.
2131         Public Overrides Sub DrawString(s As String, font As Font, brush As Brush, x As Single, y As Single)
2132             Call Graphics.DrawString(s, font, brush, x, y)
2133         End Sub
2134         '         ' Summary:
2135         '     Draws the specified text string at the specified location with the specified
2136         '     System.Drawing.Brush and System.Drawing.Font objects using the formatting attributes
2137         '     of the specified System.Drawing.StringFormat.
2138         '         ' Parameters:
2139         '   s:
2140         '     String to draw.
2141         '         '   font:
2142         '     System.Drawing.Font that defines the text format of the string.
2143         '         '   brush:
2144         '     System.Drawing.Brush that determines the color and texture of the drawn text.
2145         '         '   x:
2146         '     The x-coordinate of the upper-left corner of the drawn text.
2147         '         '   y:
2148         '     The y-coordinate of the upper-left corner of the drawn text.
2149         '         '   format:
2150         '     System.Drawing.StringFormat that specifies formatting attributes, such as line
2151         '     spacing and alignment, that are applied to the drawn text.
2152         '         ' Exceptions:
2153         '   T:System.ArgumentNullException:
2154         '     brush is null.-or-s is null.
2155         Public Overrides Sub DrawString(s As String, font As Font, brush As Brush, x As Single, y As Single, format As StringFormat)
2156             Call Graphics.DrawString(s, font, brush, x, y, format)
2157         End Sub
2158         '         ' Summary:
2159         '     Closes the current graphics container and restores the state of this System.Drawing.Graphics
2160         '     to the state saved by a call to the System.Drawing.Graphics.BeginContainer method.
2161         '         ' Parameters:
2162         '   container:
2163         '     System.Drawing.Drawing2D.GraphicsContainer that represents the container this
2164         '     method restores.
2165         Public Overrides Sub EndContainer(container As GraphicsContainer)
2166
2167         End Sub
2168         '         ' Summary:
2169         '     Sends the records in the specified System.Drawing.Imaging.Metafile, one at a
2170         '     time, to a callback method for display in a specified parallelogram.
2171         '         ' Parameters:
2172         '   metafile:
2173         '     System.Drawing.Imaging.Metafile to enumerate.
2174         '         '   destPoints:
2175         '     Array of three System.Drawing.Point structures that define a parallelogram that
2176         '     determines the size and location of the drawn metafile.
2177         '         '   callback:
2178         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2179         '     to which the metafile records are sent.
2180         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destPoints() As Point, callback As EnumerateMetafileProc)
2181
2182         End Sub
2183         '         ' Summary:
2184         '     Sends the records in the specified System.Drawing.Imaging.Metafile, one at a
2185         '     time, to a callback method for display at a specified point.
2186         '         ' Parameters:
2187         '   metafile:
2188         '     System.Drawing.Imaging.Metafile to enumerate.
2189         '         '   destPoint:
2190         '     System.Drawing.Point structure that specifies the location of the upper-left
2191         '     corner of the drawn metafile.
2192         '         '   callback:
2193         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2194         '     to which the metafile records are sent.
2195         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destPoint As Point, callback As EnumerateMetafileProc)
2196
2197         End Sub
2198         '         ' Summary:
2199         '     Sends the records of the specified System.Drawing.Imaging.Metafile, one at a
2200         '     time, to a callback method for display in a specified rectangle.
2201         '         ' Parameters:
2202         '   metafile:
2203         '     System.Drawing.Imaging.Metafile to enumerate.
2204         '         '   destRect:
2205         '     System.Drawing.RectangleF structure that specifies the location and size of the
2206         '     drawn metafile.
2207         '         '   callback:
2208         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2209         '     to which the metafile records are sent.
2210         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destRect As RectangleF, callback As EnumerateMetafileProc)
2211
2212         End Sub
2213         '         ' Summary:
2214         '     Sends the records of the specified System.Drawing.Imaging.Metafile, one at a
2215         '     time, to a callback method for display in a specified rectangle.
2216         '         ' Parameters:
2217         '   metafile:
2218         '     System.Drawing.Imaging.Metafile to enumerate.
2219         '         '   destRect:
2220         '     System.Drawing.Rectangle structure that specifies the location and size of the
2221         '     drawn metafile.
2222         '         '   callback:
2223         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2224         '     to which the metafile records are sent.
2225         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destRect As Rectangle, callback As EnumerateMetafileProc)
2226
2227         End Sub
2228         '         ' Summary:
2229         '     Sends the records in the specified System.Drawing.Imaging.Metafile, one at a
2230         '     time, to a callback method for display in a specified parallelogram.
2231         '         ' Parameters:
2232         '   metafile:
2233         '     System.Drawing.Imaging.Metafile to enumerate.
2234         '         '   destPoints:
2235         '     Array of three System.Drawing.PointF structures that define a parallelogram that
2236         '     determines the size and location of the drawn metafile.
2237         '         '   callback:
2238         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2239         '     to which the metafile records are sent.
2240         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destPoints() As PointF, callback As EnumerateMetafileProc)
2241
2242         End Sub
2243         '         ' Summary:
2244         '     Sends the records in the specified System.Drawing.Imaging.Metafile, one at a
2245         '     time, to a callback method for display at a specified point.
2246         '         ' Parameters:
2247         '   metafile:
2248         '     System.Drawing.Imaging.Metafile to enumerate.
2249         '         '   destPoint:
2250         '     System.Drawing.PointF structure that specifies the location of the upper-left
2251         '     corner of the drawn metafile.
2252         '         '   callback:
2253         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2254         '     to which the metafile records are sent.
2255         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destPoint As PointF, callback As EnumerateMetafileProc)
2256
2257         End Sub
2258         '         ' Summary:
2259         '     Sends the records of the specified System.Drawing.Imaging.Metafile, one at a
2260         '     time, to a callback method for display in a specified rectangle.
2261         '         ' Parameters:
2262         '   metafile:
2263         '     System.Drawing.Imaging.Metafile to enumerate.
2264         '         '   destRect:
2265         '     System.Drawing.Rectangle structure that specifies the location and size of the
2266         '     drawn metafile.
2267         '         '   callback:
2268         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2269         '     to which the metafile records are sent.
2270         '         '   callbackData:
2271         '     Internal pointer that is required, but ignored. You can pass System.IntPtr.Zero
2272         '     for this parameter.
2273         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destRect As Rectangle, callback As EnumerateMetafileProc, callbackData As IntPtr)
2274
2275         End Sub
2276         '         ' Summary:
2277         '     Sends the records in the specified System.Drawing.Imaging.Metafile, one at a
2278         '     time, to a callback method for display in a specified parallelogram.
2279         '         ' Parameters:
2280         '   metafile:
2281         '     System.Drawing.Imaging.Metafile to enumerate.
2282         '         '   destPoints:
2283         '     Array of three System.Drawing.PointF structures that define a parallelogram that
2284         '     determines the size and location of the drawn metafile.
2285         '         '   callback:
2286         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2287         '     to which the metafile records are sent.
2288         '         '   callbackData:
2289         '     Internal pointer that is required, but ignored. You can pass System.IntPtr.Zero
2290         '     for this parameter.
2291         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destPoints() As PointF, callback As EnumerateMetafileProc, callbackData As IntPtr)
2292
2293         End Sub
2294         '         ' Summary:
2295         '     Sends the records in the specified System.Drawing.Imaging.Metafile, one at a
2296         '     time, to a callback method for display in a specified parallelogram.
2297         '         ' Parameters:
2298         '   metafile:
2299         '     System.Drawing.Imaging.Metafile to enumerate.
2300         '         '   destPoints:
2301         '     Array of three System.Drawing.Point structures that define a parallelogram that
2302         '     determines the size and location of the drawn metafile.
2303         '         '   callback:
2304         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2305         '     to which the metafile records are sent.
2306         '         '   callbackData:
2307         '     Internal pointer that is required, but ignored. You can pass System.IntPtr.Zero
2308         '     for this parameter.
2309         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destPoints() As Point, callback As EnumerateMetafileProc, callbackData As IntPtr)
2310
2311         End Sub
2312         '         ' Summary:
2313         '     Sends the records of the specified System.Drawing.Imaging.Metafile, one at a
2314         '     time, to a callback method for display in a specified rectangle.
2315         '         ' Parameters:
2316         '   metafile:
2317         '     System.Drawing.Imaging.Metafile to enumerate.
2318         '         '   destRect:
2319         '     System.Drawing.RectangleF structure that specifies the location and size of the
2320         '     drawn metafile.
2321         '         '   callback:
2322         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2323         '     to which the metafile records are sent.
2324         '         '   callbackData:
2325         '     Internal pointer that is required, but ignored. You can pass System.IntPtr.Zero
2326         '     for this parameter.
2327         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destRect As RectangleF, callback As EnumerateMetafileProc, callbackData As IntPtr)
2328
2329         End Sub
2330         '         ' Summary:
2331         '     Sends the records in the specified System.Drawing.Imaging.Metafile, one at a
2332         '     time, to a callback method for display at a specified point.
2333         '         ' Parameters:
2334         '   metafile:
2335         '     System.Drawing.Imaging.Metafile to enumerate.
2336         '         '   destPoint:
2337         '     System.Drawing.Point structure that specifies the location of the upper-left
2338         '     corner of the drawn metafile.
2339         '         '   callback:
2340         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2341         '     to which the metafile records are sent.
2342         '         '   callbackData:
2343         '     Internal pointer that is required, but ignored. You can pass System.IntPtr.Zero
2344         '     for this parameter.
2345         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destPoint As Point, callback As EnumerateMetafileProc, callbackData As IntPtr)
2346
2347         End Sub
2348         '         ' Summary:
2349         '     Sends the records in the specified System.Drawing.Imaging.Metafile, one at a
2350         '     time, to a callback method for display at a specified point.
2351         '         ' Parameters:
2352         '   metafile:
2353         '     System.Drawing.Imaging.Metafile to enumerate.
2354         '         '   destPoint:
2355         '     System.Drawing.PointF structure that specifies the location of the upper-left
2356         '     corner of the drawn metafile.
2357         '         '   callback:
2358         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2359         '     to which the metafile records are sent.
2360         '         '   callbackData:
2361         '     Internal pointer that is required, but ignored. You can pass System.IntPtr.Zero
2362         '     for this parameter.
2363         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destPoint As PointF, callback As EnumerateMetafileProc, callbackData As IntPtr)
2364
2365         End Sub
2366         '         ' Summary:
2367         '     Sends the records in a selected rectangle from a System.Drawing.Imaging.Metafile,
2368         '     one at a time, to a callback method for display at a specified point.
2369         '         ' Parameters:
2370         '   metafile:
2371         '     System.Drawing.Imaging.Metafile to enumerate.
2372         '         '   destPoint:
2373         '     System.Drawing.PointF structure that specifies the location of the upper-left
2374         '     corner of the drawn metafile.
2375         '         '   srcRect:
2376         '     System.Drawing.RectangleF structure that specifies the portion of the metafile,
2377         '     relative to its upper-left corner, to draw.
2378         '         '   srcUnit:
2379         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the unit
2380         '     of measure used to determine the portion of the metafile that the rectangle specified
2381         '     by the srcRect parameter contains.
2382         '         '   callback:
2383         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2384         '     to which the metafile records are sent.
2385         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destPoint As PointF, srcRect As RectangleF, srcUnit As GraphicsUnit, callback As EnumerateMetafileProc)
2386
2387         End Sub
2388         '         ' Summary:
2389         '     Sends the records in the specified System.Drawing.Imaging.Metafile, one at a
2390         '     time, to a callback method for display in a specified parallelogram using specified
2391         '     image attributes.
2392         '         ' Parameters:
2393         '   metafile:
2394         '     System.Drawing.Imaging.Metafile to enumerate.
2395         '         '   destPoints:
2396         '     Array of three System.Drawing.Point structures that define a parallelogram that
2397         '     determines the size and location of the drawn metafile.
2398         '         '   callback:
2399         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2400         '     to which the metafile records are sent.
2401         '         '   callbackData:
2402         '     Internal pointer that is required, but ignored. You can pass System.IntPtr.Zero
2403         '     for this parameter.
2404         '         '   imageAttr:
2405         '     System.Drawing.Imaging.ImageAttributes that specifies image attribute information
2406         '     for the drawn image.
2407         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destPoints() As Point, callback As EnumerateMetafileProc, callbackData As IntPtr, imageAttr As ImageAttributes)
2408
2409         End Sub
2410         '         ' Summary:
2411         '     Sends the records in a selected rectangle from a System.Drawing.Imaging.Metafile,
2412         '     one at a time, to a callback method for display at a specified point.
2413         '         ' Parameters:
2414         '   metafile:
2415         '     System.Drawing.Imaging.Metafile to enumerate.
2416         '         '   destPoint:
2417         '     System.Drawing.Point structure that specifies the location of the upper-left
2418         '     corner of the drawn metafile.
2419         '         '   srcRect:
2420         '     System.Drawing.Rectangle structure that specifies the portion of the metafile,
2421         '     relative to its upper-left corner, to draw.
2422         '         '   srcUnit:
2423         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the unit
2424         '     of measure used to determine the portion of the metafile that the rectangle specified
2425         '     by the srcRect parameter contains.
2426         '         '   callback:
2427         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2428         '     to which the metafile records are sent.
2429         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destPoint As Point, srcRect As Rectangle, srcUnit As GraphicsUnit, callback As EnumerateMetafileProc)
2430
2431         End Sub
2432         '         ' Summary:
2433         '     Sends the records of the specified System.Drawing.Imaging.Metafile, one at a
2434         '     time, to a callback method for display in a specified rectangle using specified
2435         '     image attributes.
2436         '         ' Parameters:
2437         '   metafile:
2438         '     System.Drawing.Imaging.Metafile to enumerate.
2439         '         '   destRect:
2440         '     System.Drawing.Rectangle structure that specifies the location and size of the
2441         '     drawn metafile.
2442         '         '   callback:
2443         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2444         '     to which the metafile records are sent.
2445         '         '   callbackData:
2446         '     Internal pointer that is required, but ignored. You can pass System.IntPtr.Zero
2447         '     for this parameter.
2448         '         '   imageAttr:
2449         '     System.Drawing.Imaging.ImageAttributes that specifies image attribute information
2450         '     for the drawn image.
2451         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destRect As Rectangle, callback As EnumerateMetafileProc, callbackData As IntPtr, imageAttr As ImageAttributes)
2452
2453         End Sub
2454         '         ' Summary:
2455         '     Sends the records of a selected rectangle from a System.Drawing.Imaging.Metafile,
2456         '     one at a time, to a callback method for display in a specified rectangle.
2457         '         ' Parameters:
2458         '   metafile:
2459         '     System.Drawing.Imaging.Metafile to enumerate.
2460         '         '   destRect:
2461         '     System.Drawing.RectangleF structure that specifies the location and size of the
2462         '     drawn metafile.
2463         '         '   srcRect:
2464         '     System.Drawing.RectangleF structure that specifies the portion of the metafile,
2465         '     relative to its upper-left corner, to draw.
2466         '         '   srcUnit:
2467         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the unit
2468         '     of measure used to determine the portion of the metafile that the rectangle specified
2469         '     by the srcRect parameter contains.
2470         '         '   callback:
2471         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2472         '     to which the metafile records are sent.
2473         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destRect As RectangleF, srcRect As RectangleF, srcUnit As GraphicsUnit, callback As EnumerateMetafileProc)
2474
2475         End Sub
2476         '         ' Summary:
2477         '     Sends the records in the specified System.Drawing.Imaging.Metafile, one at a
2478         '     time, to a callback method for display in a specified parallelogram using specified
2479         '     image attributes.
2480         '         ' Parameters:
2481         '   metafile:
2482         '     System.Drawing.Imaging.Metafile to enumerate.
2483         '         '   destPoints:
2484         '     Array of three System.Drawing.PointF structures that define a parallelogram that
2485         '     determines the size and location of the drawn metafile.
2486         '         '   callback:
2487         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2488         '     to which the metafile records are sent.
2489         '         '   callbackData:
2490         '     Internal pointer that is required, but ignored. You can pass System.IntPtr.Zero
2491         '     for this parameter.
2492         '         '   imageAttr:
2493         '     System.Drawing.Imaging.ImageAttributes that specifies image attribute information
2494         '     for the drawn image.
2495         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destPoints() As PointF, callback As EnumerateMetafileProc, callbackData As IntPtr, imageAttr As ImageAttributes)
2496
2497         End Sub
2498         '         ' Summary:
2499         '     Sends the records of a selected rectangle from a System.Drawing.Imaging.Metafile,
2500         '     one at a time, to a callback method for display in a specified rectangle.
2501         '         ' Parameters:
2502         '   metafile:
2503         '     System.Drawing.Imaging.Metafile to enumerate.
2504         '         '   destRect:
2505         '     System.Drawing.Rectangle structure that specifies the location and size of the
2506         '     drawn metafile.
2507         '         '   srcRect:
2508         '     System.Drawing.Rectangle structure that specifies the portion of the metafile,
2509         '     relative to its upper-left corner, to draw.
2510         '         '   srcUnit:
2511         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the unit
2512         '     of measure used to determine the portion of the metafile that the rectangle specified
2513         '     by the srcRect parameter contains.
2514         '         '   callback:
2515         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2516         '     to which the metafile records are sent.
2517         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destRect As Rectangle, srcRect As Rectangle, srcUnit As GraphicsUnit, callback As EnumerateMetafileProc)
2518
2519         End Sub
2520         '         ' Summary:
2521         '     Sends the records in a selected rectangle from a System.Drawing.Imaging.Metafile,
2522         '     one at a time, to a callback method for display in a specified parallelogram.
2523         '         ' Parameters:
2524         '   metafile:
2525         '     System.Drawing.Imaging.Metafile to enumerate.
2526         '         '   destPoints:
2527         '     Array of three System.Drawing.PointF structures that define a parallelogram that
2528         '     determines the size and location of the drawn metafile.
2529         '         '   srcRect:
2530         '     System.Drawing.RectangleF structures that specifies the portion of the metafile,
2531         '     relative to its upper-left corner, to draw.
2532         '         '   srcUnit:
2533         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the unit
2534         '     of measure used to determine the portion of the metafile that the rectangle specified
2535         '     by the srcRect parameter contains.
2536         '         '   callback:
2537         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2538         '     to which the metafile records are sent.
2539         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destPoints() As PointF, srcRect As RectangleF, srcUnit As GraphicsUnit, callback As EnumerateMetafileProc)
2540
2541         End Sub
2542         '         ' Summary:
2543         '     Sends the records of the specified System.Drawing.Imaging.Metafile, one at a
2544         '     time, to a callback method for display in a specified rectangle using specified
2545         '     image attributes.
2546         '         ' Parameters:
2547         '   metafile:
2548         '     System.Drawing.Imaging.Metafile to enumerate.
2549         '         '   destRect:
2550         '     System.Drawing.RectangleF structure that specifies the location and size of the
2551         '     drawn metafile.
2552         '         '   callback:
2553         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2554         '     to which the metafile records are sent.
2555         '         '   callbackData:
2556         '     Internal pointer that is required, but ignored. You can pass System.IntPtr.Zero
2557         '     for this parameter.
2558         '         '   imageAttr:
2559         '     System.Drawing.Imaging.ImageAttributes that specifies image attribute information
2560         '     for the drawn image.
2561         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destRect As RectangleF, callback As EnumerateMetafileProc, callbackData As IntPtr, imageAttr As ImageAttributes)
2562
2563         End Sub
2564         '         ' Summary:
2565         '     Sends the records in the specified System.Drawing.Imaging.Metafile, one at a
2566         '     time, to a callback method for display at a specified point using specified image
2567         '     attributes.
2568         '         ' Parameters:
2569         '   metafile:
2570         '     System.Drawing.Imaging.Metafile to enumerate.
2571         '         '   destPoint:
2572         '     System.Drawing.Point structure that specifies the location of the upper-left
2573         '     corner of the drawn metafile.
2574         '         '   callback:
2575         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2576         '     to which the metafile records are sent.
2577         '         '   callbackData:
2578         '     Internal pointer that is required, but ignored. You can pass System.IntPtr.Zero
2579         '     for this parameter.
2580         '         '   imageAttr:
2581         '     System.Drawing.Imaging.ImageAttributes that specifies image attribute information
2582         '     for the drawn image.
2583         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destPoint As Point, callback As EnumerateMetafileProc, callbackData As IntPtr, imageAttr As ImageAttributes)
2584
2585         End Sub
2586         '         ' Summary:
2587         '     Sends the records in a selected rectangle from a System.Drawing.Imaging.Metafile,
2588         '     one at a time, to a callback method for display in a specified parallelogram.
2589         '         ' Parameters:
2590         '   metafile:
2591         '     System.Drawing.Imaging.Metafile to enumerate.
2592         '         '   destPoints:
2593         '     Array of three System.Drawing.Point structures that define a parallelogram that
2594         '     determines the size and location of the drawn metafile.
2595         '         '   srcRect:
2596         '     System.Drawing.Rectangle structure that specifies the portion of the metafile,
2597         '     relative to its upper-left corner, to draw.
2598         '         '   srcUnit:
2599         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the unit
2600         '     of measure used to determine the portion of the metafile that the rectangle specified
2601         '     by the srcRect parameter contains.
2602         '         '   callback:
2603         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2604         '     to which the metafile records are sent.
2605         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destPoints() As Point, srcRect As Rectangle, srcUnit As GraphicsUnit, callback As EnumerateMetafileProc)
2606
2607         End Sub
2608         '         ' Summary:
2609         '     Sends the records in the specified System.Drawing.Imaging.Metafile, one at a
2610         '     time, to a callback method for display at a specified point using specified image
2611         '     attributes.
2612         '         ' Parameters:
2613         '   metafile:
2614         '     System.Drawing.Imaging.Metafile to enumerate.
2615         '         '   destPoint:
2616         '     System.Drawing.PointF structure that specifies the location of the upper-left
2617         '     corner of the drawn metafile.
2618         '         '   callback:
2619         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2620         '     to which the metafile records are sent.
2621         '         '   callbackData:
2622         '     Internal pointer that is required, but ignored. You can pass System.IntPtr.Zero
2623         '     for this parameter.
2624         '         '   imageAttr:
2625         '     System.Drawing.Imaging.ImageAttributes that specifies image attribute information
2626         '     for the drawn image.
2627         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destPoint As PointF, callback As EnumerateMetafileProc, callbackData As IntPtr, imageAttr As ImageAttributes)
2628
2629         End Sub
2630         '         ' Summary:
2631         '     Sends the records in a selected rectangle from a System.Drawing.Imaging.Metafile,
2632         '     one at a time, to a callback method for display at a specified point.
2633         '         ' Parameters:
2634         '   metafile:
2635         '     System.Drawing.Imaging.Metafile to enumerate.
2636         '         '   destPoint:
2637         '     System.Drawing.Point structure that specifies the location of the upper-left
2638         '     corner of the drawn metafile.
2639         '         '   srcRect:
2640         '     System.Drawing.Rectangle structure that specifies the portion of the metafile,
2641         '     relative to its upper-left corner, to draw.
2642         '         '   srcUnit:
2643         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the unit
2644         '     of measure used to determine the portion of the metafile that the rectangle specified
2645         '     by the srcRect parameter contains.
2646         '         '   callback:
2647         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2648         '     to which the metafile records are sent.
2649         '         '   callbackData:
2650         '     Internal pointer that is required, but ignored. You can pass System.IntPtr.Zero
2651         '     for this parameter.
2652         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destPoint As Point, srcRect As Rectangle, srcUnit As GraphicsUnit, callback As EnumerateMetafileProc, callbackData As IntPtr)
2653
2654         End Sub
2655         '         ' Summary:
2656         '     Sends the records of a selected rectangle from a System.Drawing.Imaging.Metafile,
2657         '     one at a time, to a callback method for display in a specified rectangle.
2658         '         ' Parameters:
2659         '   metafile:
2660         '     System.Drawing.Imaging.Metafile to enumerate.
2661         '         '   destRect:
2662         '     System.Drawing.Rectangle structure that specifies the location and size of the
2663         '     drawn metafile.
2664         '         '   srcRect:
2665         '     System.Drawing.Rectangle structure that specifies the portion of the metafile,
2666         '     relative to its upper-left corner, to draw.
2667         '         '   srcUnit:
2668         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the unit
2669         '     of measure used to determine the portion of the metafile that the rectangle specified
2670         '     by the srcRect parameter contains.
2671         '         '   callback:
2672         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2673         '     to which the metafile records are sent.
2674         '         '   callbackData:
2675         '     Internal pointer that is required, but ignored. You can pass System.IntPtr.Zero
2676         '     for this parameter.
2677         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destRect As Rectangle, srcRect As Rectangle, srcUnit As GraphicsUnit, callback As EnumerateMetafileProc, callbackData As IntPtr)
2678
2679         End Sub
2680         '         ' Summary:
2681         '     Sends the records in a selected rectangle from a System.Drawing.Imaging.Metafile,
2682         '     one at a time, to a callback method for display in a specified parallelogram.
2683         '         ' Parameters:
2684         '   metafile:
2685         '     System.Drawing.Imaging.Metafile to enumerate.
2686         '         '   destPoints:
2687         '     Array of three System.Drawing.PointF structures that define a parallelogram that
2688         '     determines the size and location of the drawn metafile.
2689         '         '   srcRect:
2690         '     System.Drawing.RectangleF structure that specifies the portion of the metafile,
2691         '     relative to its upper-left corner, to draw.
2692         '         '   srcUnit:
2693         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the unit
2694         '     of measure used to determine the portion of the metafile that the rectangle specified
2695         '     by the srcRect parameter contains.
2696         '         '   callback:
2697         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2698         '     to which the metafile records are sent.
2699         '         '   callbackData:
2700         '     Internal pointer that is required, but ignored. You can pass System.IntPtr.Zero
2701         '     for this parameter.
2702         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destPoints() As PointF, srcRect As RectangleF, srcUnit As GraphicsUnit, callback As EnumerateMetafileProc, callbackData As IntPtr)
2703
2704         End Sub
2705         '         ' Summary:
2706         '     Sends the records in a selected rectangle from a System.Drawing.Imaging.Metafile,
2707         '     one at a time, to a callback method for display in a specified parallelogram.
2708         '         ' Parameters:
2709         '   metafile:
2710         '     System.Drawing.Imaging.Metafile to enumerate.
2711         '         '   destPoints:
2712         '     Array of three System.Drawing.Point structures that define a parallelogram that
2713         '     determines the size and location of the drawn metafile.
2714         '         '   srcRect:
2715         '     System.Drawing.Rectangle structure that specifies the portion of the metafile,
2716         '     relative to its upper-left corner, to draw.
2717         '         '   srcUnit:
2718         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the unit
2719         '     of measure used to determine the portion of the metafile that the rectangle specified
2720         '     by the srcRect parameter contains.
2721         '         '   callback:
2722         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2723         '     to which the metafile records are sent.
2724         '         '   callbackData:
2725         '     Internal pointer that is required, but ignored. You can pass System.IntPtr.Zero
2726         '     for this parameter.
2727         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destPoints() As Point, srcRect As Rectangle, srcUnit As GraphicsUnit, callback As EnumerateMetafileProc, callbackData As IntPtr)
2728
2729         End Sub
2730         '         ' Summary:
2731         '     Sends the records of a selected rectangle from a System.Drawing.Imaging.Metafile,
2732         '     one at a time, to a callback method for display in a specified rectangle.
2733         '         ' Parameters:
2734         '   metafile:
2735         '     System.Drawing.Imaging.Metafile to enumerate.
2736         '         '   destRect:
2737         '     System.Drawing.RectangleF structure that specifies the location and size of the
2738         '     drawn metafile.
2739         '         '   srcRect:
2740         '     System.Drawing.RectangleF structure that specifies the portion of the metafile,
2741         '     relative to its upper-left corner, to draw.
2742         '         '   srcUnit:
2743         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the unit
2744         '     of measure used to determine the portion of the metafile that the rectangle specified
2745         '     by the srcRect parameter contains.
2746         '         '   callback:
2747         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2748         '     to which the metafile records are sent.
2749         '         '   callbackData:
2750         '     Internal pointer that is required, but ignored. You can pass System.IntPtr.Zero
2751         '     for this parameter.
2752         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destRect As RectangleF, srcRect As RectangleF, srcUnit As GraphicsUnit, callback As EnumerateMetafileProc, callbackData As IntPtr)
2753
2754         End Sub
2755         '         ' Summary:
2756         '     Sends the records in a selected rectangle from a System.Drawing.Imaging.Metafile,
2757         '     one at a time, to a callback method for display at a specified point.
2758         '         ' Parameters:
2759         '   metafile:
2760         '     System.Drawing.Imaging.Metafile to enumerate.
2761         '         '   destPoint:
2762         '     System.Drawing.PointF structure that specifies the location of the upper-left
2763         '     corner of the drawn metafile.
2764         '         '   srcRect:
2765         '     System.Drawing.RectangleF structure that specifies the portion of the metafile,
2766         '     relative to its upper-left corner, to draw.
2767         '         '   srcUnit:
2768         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the unit
2769         '     of measure used to determine the portion of the metafile that the rectangle specified
2770         '     by the srcRect parameter contains.
2771         '         '   callback:
2772         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2773         '     to which the metafile records are sent.
2774         '         '   callbackData:
2775         '     Internal pointer that is required, but ignored. You can pass System.IntPtr.Zero
2776         '     for this parameter.
2777         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destPoint As PointF, srcRect As RectangleF, srcUnit As GraphicsUnit, callback As EnumerateMetafileProc, callbackData As IntPtr)
2778
2779         End Sub
2780         '         ' Summary:
2781         '     Sends the records in a selected rectangle from a System.Drawing.Imaging.Metafile,
2782         '     one at a time, to a callback method for display at a specified point using specified
2783         '     image attributes.
2784         '         ' Parameters:
2785         '   metafile:
2786         '     System.Drawing.Imaging.Metafile to enumerate.
2787         '         '   destPoint:
2788         '     System.Drawing.Point structure that specifies the location of the upper-left
2789         '     corner of the drawn metafile.
2790         '         '   srcRect:
2791         '     System.Drawing.Rectangle structure that specifies the portion of the metafile,
2792         '     relative to its upper-left corner, to draw.
2793         '         '   unit:
2794         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the unit
2795         '     of measure used to determine the portion of the metafile that the rectangle specified
2796         '     by the srcRect parameter contains.
2797         '         '   callback:
2798         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2799         '     to which the metafile records are sent.
2800         '         '   callbackData:
2801         '     Internal pointer that is required, but ignored. You can pass System.IntPtr.Zero
2802         '     for this parameter.
2803         '         '   imageAttr:
2804         '     System.Drawing.Imaging.ImageAttributes that specifies image attribute information
2805         '     for the drawn image.
2806         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destPoint As Point, srcRect As Rectangle, unit As GraphicsUnit, callback As EnumerateMetafileProc, callbackData As IntPtr, imageAttr As ImageAttributes)
2807
2808         End Sub
2809         '         ' Summary:
2810         '     Sends the records in a selected rectangle from a System.Drawing.Imaging.Metafile,
2811         '     one at a time, to a callback method for display in a specified parallelogram
2812         '     using specified image attributes.
2813         '         ' Parameters:
2814         '   metafile:
2815         '     System.Drawing.Imaging.Metafile to enumerate.
2816         '         '   destPoints:
2817         '     Array of three System.Drawing.PointF structures that define a parallelogram that
2818         '     determines the size and location of the drawn metafile.
2819         '         '   srcRect:
2820         '     System.Drawing.RectangleF structure that specifies the portion of the metafile,
2821         '     relative to its upper-left corner, to draw.
2822         '         '   unit:
2823         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the unit
2824         '     of measure used to determine the portion of the metafile that the rectangle specified
2825         '     by the srcRect parameter contains.
2826         '         '   callback:
2827         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2828         '     to which the metafile records are sent.
2829         '         '   callbackData:
2830         '     Internal pointer that is required, but ignored. You can pass System.IntPtr.Zero
2831         '     for this parameter.
2832         '         '   imageAttr:
2833         '     System.Drawing.Imaging.ImageAttributes that specifies image attribute information
2834         '     for the drawn image.
2835         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destPoints() As PointF, srcRect As RectangleF, unit As GraphicsUnit, callback As EnumerateMetafileProc, callbackData As IntPtr, imageAttr As ImageAttributes)
2836
2837         End Sub
2838         '         ' Summary:
2839         '     Sends the records of a selected rectangle from a System.Drawing.Imaging.Metafile,
2840         '     one at a time, to a callback method for display in a specified rectangle using
2841         '     specified image attributes.
2842         '         ' Parameters:
2843         '   metafile:
2844         '     System.Drawing.Imaging.Metafile to enumerate.
2845         '         '   destRect:
2846         '     System.Drawing.Rectangle structure that specifies the location and size of the
2847         '     drawn metafile.
2848         '         '   srcRect:
2849         '     System.Drawing.Rectangle structure that specifies the portion of the metafile,
2850         '     relative to its upper-left corner, to draw.
2851         '         '   unit:
2852         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the unit
2853         '     of measure used to determine the portion of the metafile that the rectangle specified
2854         '     by the srcRect parameter contains.
2855         '         '   callback:
2856         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2857         '     to which the metafile records are sent.
2858         '         '   callbackData:
2859         '     Internal pointer that is required, but ignored. You can pass System.IntPtr.Zero
2860         '     for this parameter.
2861         '         '   imageAttr:
2862         '     System.Drawing.Imaging.ImageAttributes that specifies image attribute information
2863         '     for the drawn image.
2864         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destRect As Rectangle, srcRect As Rectangle, unit As GraphicsUnit, callback As EnumerateMetafileProc, callbackData As IntPtr, imageAttr As ImageAttributes)
2865
2866         End Sub
2867         '         ' Summary:
2868         '     Sends the records of a selected rectangle from a System.Drawing.Imaging.Metafile,
2869         '     one at a time, to a callback method for display in a specified rectangle using
2870         '     specified image attributes.
2871         '         ' Parameters:
2872         '   metafile:
2873         '     System.Drawing.Imaging.Metafile to enumerate.
2874         '         '   destRect:
2875         '     System.Drawing.RectangleF structure that specifies the location and size of the
2876         '     drawn metafile.
2877         '         '   srcRect:
2878         '     System.Drawing.RectangleF structure that specifies the portion of the metafile,
2879         '     relative to its upper-left corner, to draw.
2880         '         '   unit:
2881         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the unit
2882         '     of measure used to determine the portion of the metafile that the rectangle specified
2883         '     by the srcRect parameter contains.
2884         '         '   callback:
2885         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2886         '     to which the metafile records are sent.
2887         '         '   callbackData:
2888         '     Internal pointer that is required, but ignored. You can pass System.IntPtr.Zero
2889         '     for this parameter.
2890         '         '   imageAttr:
2891         '     System.Drawing.Imaging.ImageAttributes that specifies image attribute information
2892         '     for the drawn image.
2893         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destRect As RectangleF, srcRect As RectangleF, unit As GraphicsUnit, callback As EnumerateMetafileProc, callbackData As IntPtr, imageAttr As ImageAttributes)
2894
2895         End Sub
2896         '         ' Summary:
2897         '     Sends the records in a selected rectangle from a System.Drawing.Imaging.Metafile,
2898         '     one at a time, to a callback method for display in a specified parallelogram
2899         '     using specified image attributes.
2900         '         ' Parameters:
2901         '   metafile:
2902         '     System.Drawing.Imaging.Metafile to enumerate.
2903         '         '   destPoints:
2904         '     Array of three System.Drawing.Point structures that define a parallelogram that
2905         '     determines the size and location of the drawn metafile.
2906         '         '   srcRect:
2907         '     System.Drawing.Rectangle structure that specifies the portion of the metafile,
2908         '     relative to its upper-left corner, to draw.
2909         '         '   unit:
2910         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the unit
2911         '     of measure used to determine the portion of the metafile that the rectangle specified
2912         '     by the srcRect parameter contains.
2913         '         '   callback:
2914         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2915         '     to which the metafile records are sent.
2916         '         '   callbackData:
2917         '     Internal pointer that is required, but ignored. You can pass System.IntPtr.Zero
2918         '     for this parameter.
2919         '         '   imageAttr:
2920         '     System.Drawing.Imaging.ImageAttributes that specifies image attribute information
2921         '     for the drawn image.
2922         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destPoints() As Point, srcRect As Rectangle, unit As GraphicsUnit, callback As EnumerateMetafileProc, callbackData As IntPtr, imageAttr As ImageAttributes)
2923
2924         End Sub
2925         '         ' Summary:
2926         '     Sends the records in a selected rectangle from a System.Drawing.Imaging.Metafile,
2927         '     one at a time, to a callback method for display at a specified point using specified
2928         '     image attributes.
2929         '         ' Parameters:
2930         '   metafile:
2931         '     System.Drawing.Imaging.Metafile to enumerate.
2932         '         '   destPoint:
2933         '     System.Drawing.PointF structure that specifies the location of the upper-left
2934         '     corner of the drawn metafile.
2935         '         '   srcRect:
2936         '     System.Drawing.RectangleF structure that specifies the portion of the metafile,
2937         '     relative to its upper-left corner, to draw.
2938         '         '   unit:
2939         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the unit
2940         '     of measure used to determine the portion of the metafile that the rectangle specified
2941         '     by the srcRect parameter contains.
2942         '         '   callback:
2943         '     System.Drawing.Graphics.EnumerateMetafileProc delegate that specifies the method
2944         '     to which the metafile records are sent.
2945         '         '   callbackData:
2946         '     Internal pointer that is required, but ignored. You can pass System.IntPtr.Zero
2947         '     for this parameter.
2948         '         '   imageAttr:
2949         '     System.Drawing.Imaging.ImageAttributes that specifies image attribute information
2950         '     for the drawn image.
2951         Public Overrides Sub EnumerateMetafile(metafile As Metafile, destPoint As PointF, srcRect As RectangleF, unit As GraphicsUnit, callback As EnumerateMetafileProc, callbackData As IntPtr, imageAttr As ImageAttributes)
2952
2953         End Sub
2954         '         ' Summary:
2955         '     Updates the clip region of this System.Drawing.Graphics to exclude the area specified
2956         '     by a System.Drawing.Region.
2957         '         ' Parameters:
2958         '   region:
2959         '     System.Drawing.Region that specifies the region to exclude from the clip region.
2960         Public Overrides Sub ExcludeClip(region As Region)
2961
2962         End Sub
2963         '         ' Summary:
2964         '     Updates the clip region of this System.Drawing.Graphics to exclude the area specified
2965         '     by a System.Drawing.Rectangle structure.
2966         '         ' Parameters:
2967         '   rect:
2968         '     System.Drawing.Rectangle structure that specifies the rectangle to exclude from
2969         '     the clip region.
2970         Public Overrides Sub ExcludeClip(rect As Rectangle)
2971
2972         End Sub
2973         '         ' Summary:
2974         '     Fills the interior of a closed cardinal spline curve defined by an array of System.Drawing.Point
2975         '     structures.
2976         '         ' Parameters:
2977         '   brush:
2978         '     System.Drawing.Brush that determines the characteristics of the fill.
2979         '         '   points:
2980         '     Array of System.Drawing.Point structures that define the spline.
2981         '         ' Exceptions:
2982         '   T:System.ArgumentNullException:
2983         '     brush is null.-or-points is null.
2984         Public Overrides Sub FillClosedCurve(brush As Brush, points() As Point)
2985
2986         End Sub
2987         '         ' Summary:
2988         '     Fills the interior of a closed cardinal spline curve defined by an array of System.Drawing.PointF
2989         '     structures.
2990         '         ' Parameters:
2991         '   brush:
2992         '     System.Drawing.Brush that determines the characteristics of the fill.
2993         '         '   points:
2994         '     Array of System.Drawing.PointF structures that define the spline.
2995         '         ' Exceptions:
2996         '   T:System.ArgumentNullException:
2997         '     brush is null.-or-points is null.
2998         Public Overrides Sub FillClosedCurve(brush As Brush, points() As PointF)
2999
3000         End Sub
3001         '         ' Summary:
3002         '     Fills the interior of a closed cardinal spline curve defined by an array of System.Drawing.Point
3003         '     structures using the specified fill mode.
3004         '         ' Parameters:
3005         '   brush:
3006         '     System.Drawing.Brush that determines the characteristics of the fill.
3007         '         '   points:
3008         '     Array of System.Drawing.Point structures that define the spline.
3009         '         '   fillmode:
3010         '     Member of the System.Drawing.Drawing2D.FillMode enumeration that determines how
3011         '     the curve is filled.
3012         '         ' Exceptions:
3013         '   T:System.ArgumentNullException:
3014         '     brush is null.-or-points is null.
3015         Public Overrides Sub FillClosedCurve(brush As Brush, points() As Point, fillmode As FillMode)
3016
3017         End Sub
3018         '         ' Summary:
3019         '     Fills the interior of a closed cardinal spline curve defined by an array of System.Drawing.PointF
3020         '     structures using the specified fill mode.
3021         '         ' Parameters:
3022         '   brush:
3023         '     System.Drawing.Brush that determines the characteristics of the fill.
3024         '         '   points:
3025         '     Array of System.Drawing.PointF structures that define the spline.
3026         '         '   fillmode:
3027         '     Member of the System.Drawing.Drawing2D.FillMode enumeration that determines how
3028         '     the curve is filled.
3029         '         ' Exceptions:
3030         '   T:System.ArgumentNullException:
3031         '     brush is null.-or-points is null.
3032         Public Overrides Sub FillClosedCurve(brush As Brush, points() As PointF, fillmode As FillMode)
3033
3034         End Sub
3035         '         ' Summary:
3036         '     Fills the interior of a closed cardinal spline curve defined by an array of System.Drawing.Point
3037         '     structures using the specified fill mode and tension.
3038         '         ' Parameters:
3039         '   brush:
3040         '     System.Drawing.Brush that determines the characteristics of the fill.
3041         '         '   points:
3042         '     Array of System.Drawing.Point structures that define the spline.
3043         '         '   fillmode:
3044         '     Member of the System.Drawing.Drawing2D.FillMode enumeration that determines how
3045         '     the curve is filled.
3046         '         '   tension:
3047         '     Value greater than or equal to 0.0F that specifies the tension of the curve.
3048         '         ' Exceptions:
3049         '   T:System.ArgumentNullException:
3050         '     brush is null.-or-points is null.
3051         Public Overrides Sub FillClosedCurve(brush As Brush, points() As Point, fillmode As FillMode, tension As Single)
3052
3053         End Sub
3054         '         ' Summary:
3055         '     Fills the interior of a closed cardinal spline curve defined by an array of System.Drawing.PointF
3056         '     structures using the specified fill mode and tension.
3057         '         ' Parameters:
3058         '   brush:
3059         '     A System.Drawing.Brush that determines the characteristics of the fill.
3060         '         '   points:
3061         '     Array of System.Drawing.PointF structures that define the spline.
3062         '         '   fillmode:
3063         '     Member of the System.Drawing.Drawing2D.FillMode enumeration that determines how
3064         '     the curve is filled.
3065         '         '   tension:
3066         '     Value greater than or equal to 0.0F that specifies the tension of the curve.
3067         '         ' Exceptions:
3068         '   T:System.ArgumentNullException:
3069         '     brush is null.-or-points is null.
3070         Public Overrides Sub FillClosedCurve(brush As Brush, points() As PointF, fillmode As FillMode, tension As Single)
3071
3072         End Sub
3073         '         ' Summary:
3074         '     Fills the interior of an ellipse defined by a bounding rectangle specified by
3075         '     a System.Drawing.Rectangle structure.
3076         '         ' Parameters:
3077         '   brush:
3078         '     System.Drawing.Brush that determines the characteristics of the fill.
3079         '         '   rect:
3080         '     System.Drawing.Rectangle structure that represents the bounding rectangle that
3081         '     defines the ellipse.
3082         '         ' Exceptions:
3083         '   T:System.ArgumentNullException:
3084         '     brush is null.
3085         Public Overrides Sub FillEllipse(brush As Brush, rect As Rectangle)
3086             Call Graphics.FillEllipse(brush, rect)
3087         End Sub
3088         '         ' Summary:
3089         '     Fills the interior of an ellipse defined by a bounding rectangle specified by
3090         '     a System.Drawing.RectangleF structure.
3091         '         ' Parameters:
3092         '   brush:
3093         '     System.Drawing.Brush that determines the characteristics of the fill.
3094         '         '   rect:
3095         '     System.Drawing.RectangleF structure that represents the bounding rectangle that
3096         '     defines the ellipse.
3097         '         ' Exceptions:
3098         '   T:System.ArgumentNullException:
3099         '     brush is null.
3100         Public Overrides Sub FillEllipse(brush As Brush, rect As RectangleF)
3101             Call Graphics.FillEllipse(brush, rect)
3102         End Sub
3103         '         ' Summary:
3104         '     Fills the interior of an ellipse defined by a bounding rectangle specified by
3105         '     a pair of coordinates, a width, and a height.
3106         '         ' Parameters:
3107         '   brush:
3108         '     System.Drawing.Brush that determines the characteristics of the fill.
3109         '         '   x:
3110         '     The x-coordinate of the upper-left corner of the bounding rectangle that defines
3111         '     the ellipse.
3112         '         '   y:
3113         '     The y-coordinate of the upper-left corner of the bounding rectangle that defines
3114         '     the ellipse.
3115         '         '   width:
3116         '     Width of the bounding rectangle that defines the ellipse.
3117         '         '   height:
3118         '     Height of the bounding rectangle that defines the ellipse.
3119         '         ' Exceptions:
3120         '   T:System.ArgumentNullException:
3121         '     brush is null.
3122         Public Overrides Sub FillEllipse(brush As Brush, x As Integer, y As Integer, width As Integer, height As Integer)
3123             Call Graphics.FillEllipse(brush, x, y, width, height)
3124         End Sub
3125         '         ' Summary:
3126         '     Fills the interior of an ellipse defined by a bounding rectangle specified by
3127         '     a pair of coordinates, a width, and a height.
3128         '         ' Parameters:
3129         '   brush:
3130         '     System.Drawing.Brush that determines the characteristics of the fill.
3131         '         '   x:
3132         '     The x-coordinate of the upper-left corner of the bounding rectangle that defines
3133         '     the ellipse.
3134         '         '   y:
3135         '     The y-coordinate of the upper-left corner of the bounding rectangle that defines
3136         '     the ellipse.
3137         '         '   width:
3138         '     Width of the bounding rectangle that defines the ellipse.
3139         '         '   height:
3140         '     Height of the bounding rectangle that defines the ellipse.
3141         '         ' Exceptions:
3142         '   T:System.ArgumentNullException:
3143         '     brush is null.
3144         Public Overrides Sub FillEllipse(brush As Brush, x As Single, y As Single, width As Single, height As Single)
3145             Call Graphics.FillEllipse(brush, x, y, width, height)
3146         End Sub
3147         '         ' Summary:
3148         '     Fills the interior of a System.Drawing.Drawing2D.GraphicsPath.
3149         '         ' Parameters:
3150         '   brush:
3151         '     System.Drawing.Brush that determines the characteristics of the fill.
3152         '         '   path:
3153         '     System.Drawing.Drawing2D.GraphicsPath that represents the path to fill.
3154         '         ' Exceptions:
3155         '   T:System.ArgumentNullException:
3156         '     brush is null.-or-path is null.
3157         Public Overrides Sub FillPath(brush As Brush, path As GraphicsPath)
3158             Call Graphics.FillPath(brush, path)
3159         End Sub
3160         '         ' Summary:
3161         '     Fills the interior of a pie section defined by an ellipse specified by a System.Drawing.RectangleF
3162         '     structure and two radial lines.
3163         '         ' Parameters:
3164         '   brush:
3165         '     System.Drawing.Brush that determines the characteristics of the fill.
3166         '         '   rect:
3167         '     System.Drawing.Rectangle structure that represents the bounding rectangle that
3168         '     defines the ellipse from which the pie section comes.
3169         '         '   startAngle:
3170         '     Angle in degrees measured clockwise from the x-axis to the first side of the
3171         '     pie section.
3172         '         '   sweepAngle:
3173         '     Angle in degrees measured clockwise from the startAngle parameter to the second
3174         '     side of the pie section.
3175         '         ' Exceptions:
3176         '   T:System.ArgumentNullException:
3177         '     brush is null.
3178         Public Overrides Sub FillPie(brush As Brush, rect As Rectangle, startAngle As Single, sweepAngle As Single)
3179             Call Graphics.FillPie(brush, rect, startAngle, sweepAngle)
3180         End Sub
3181         '         ' Summary:
3182         '     Fills the interior of a pie section defined by an ellipse specified by a pair
3183         '     of coordinates, a width, a height, and two radial lines.
3184         '         ' Parameters:
3185         '   brush:
3186         '     System.Drawing.Brush that determines the characteristics of the fill.
3187         '         '   x:
3188         '     The x-coordinate of the upper-left corner of the bounding rectangle that defines
3189         '     the ellipse from which the pie section comes.
3190         '         '   y:
3191         '     The y-coordinate of the upper-left corner of the bounding rectangle that defines
3192         '     the ellipse from which the pie section comes.
3193         '         '   width:
3194         '     Width of the bounding rectangle that defines the ellipse from which the pie section
3195         '     comes.
3196         '         '   height:
3197         '     Height of the bounding rectangle that defines the ellipse from which the pie
3198         '     section comes.
3199         '         '   startAngle:
3200         '     Angle in degrees measured clockwise from the x-axis to the first side of the
3201         '     pie section.
3202         '         '   sweepAngle:
3203         '     Angle in degrees measured clockwise from the startAngle parameter to the second
3204         '     side of the pie section.
3205         '         ' Exceptions:
3206         '   T:System.ArgumentNullException:
3207         '     brush is null.
3208         Public Overrides Sub FillPie(brush As Brush, x As Integer, y As Integer, width As Integer, height As Integer, startAngle As Integer, sweepAngle As Integer)
3209             Call Graphics.FillPie(brush, x, y, width, height, startAngle, sweepAngle)
3210         End Sub
3211
3212         ''' <summary>
3213         ''' Fills the interior of a pie section defined by an ellipse specified by a pair
3214         ''' of coordinates, a width, a height, and two radial lines.
3215         ''' </summary>
3216         ''' <param name="brush">System.Drawing.Brush that determines the characteristics of the fill.</param>
3217         ''' <param name="x">The x-coordinate of the upper-left corner of the bounding rectangle that defines
3218         ''' the ellipse from which the pie section comes.</param>
3219         ''' <param name="y">The y-coordinate of the upper-left corner of the bounding rectangle that defines
3220         ''' the ellipse from which the pie section comes.</param>
3221         ''' <param name="width">Width of the bounding rectangle that defines the ellipse from which the pie section
3222         ''' comes.</param>
3223         ''' <param name="height">Height of the bounding rectangle that defines the ellipse from which the pie
3224         ''' section comes.</param>
3225         ''' <param name="startAngle">Angle in degrees measured clockwise from the x-axis to the first side of the
3226         ''' pie section.</param>
3227         ''' <param name="sweepAngle">Angle in degrees measured clockwise from the startAngle parameter to the second
3228         ''' side of the pie section.</param>
3229         Public Overrides Sub FillPie(brush As Brush, x As Single, y As Single, width As Single, height As Single, startAngle As Single, sweepAngle As Single)
3230             Call Graphics.FillPie(brush, x, y, width, height, startAngle, sweepAngle)
3231         End Sub
3232         '         ' Summary:
3233         '     Fills the interior of a polygon defined by an array of points specified by System.Drawing.Point
3234         '     structures.
3235         '         ' Parameters:
3236         '   brush:
3237         '     System.Drawing.Brush that determines the characteristics of the fill.
3238         '         '   points:
3239         '     Array of System.Drawing.Point structures that represent the vertices of the polygon
3240         '     to fill.
3241         '         ' Exceptions:
3242         '   T:System.ArgumentNullException:
3243         '     brush is null.-or-points is null.
3244         Public Overrides Sub FillPolygon(brush As Brush, points() As Point)
3245             Call Graphics.FillPolygon(brush, points)
3246         End Sub
3247         '         ' Summary:
3248         '     Fills the interior of a polygon defined by an array of points specified by System.Drawing.PointF
3249         '     structures.
3250         '         ' Parameters:
3251         '   brush:
3252         '     System.Drawing.Brush that determines the characteristics of the fill.
3253         '         '   points:
3254         '     Array of System.Drawing.PointF structures that represent the vertices of the
3255         '     polygon to fill.
3256         '         ' Exceptions:
3257         '   T:System.ArgumentNullException:
3258         '     brush is null.-or-points is null.
3259         Public Overrides Sub FillPolygon(brush As Brush, points() As PointF)
3260             Call Graphics.FillPolygon(brush, points)
3261         End Sub
3262         '         ' Summary:
3263         '     Fills the interior of a polygon defined by an array of points specified by System.Drawing.Point
3264         '     structures using the specified fill mode.
3265         '         ' Parameters:
3266         '   brush:
3267         '     System.Drawing.Brush that determines the characteristics of the fill.
3268         '         '   points:
3269         '     Array of System.Drawing.Point structures that represent the vertices of the polygon
3270         '     to fill.
3271         '         '   fillMode:
3272         '     Member of the System.Drawing.Drawing2D.FillMode enumeration that determines the
3273         '     style of the fill.
3274         '         ' Exceptions:
3275         '   T:System.ArgumentNullException:
3276         '     brush is null.-or-points is null.
3277         Public Overrides Sub FillPolygon(brush As Brush, points() As Point, fillMode As FillMode)
3278             Call Graphics.FillPolygon(brush, points, fillMode)
3279         End Sub
3280         '         ' Summary:
3281         '     Fills the interior of a polygon defined by an array of points specified by System.Drawing.PointF
3282         '     structures using the specified fill mode.
3283         '         ' Parameters:
3284         '   brush:
3285         '     System.Drawing.Brush that determines the characteristics of the fill.
3286         '         '   points:
3287         '     Array of System.Drawing.PointF structures that represent the vertices of the
3288         '     polygon to fill.
3289         '         '   fillMode:
3290         '     Member of the System.Drawing.Drawing2D.FillMode enumeration that determines the
3291         '     style of the fill.
3292         '         ' Exceptions:
3293         '   T:System.ArgumentNullException:
3294         '     brush is null.-or-points is null.
3295         Public Overrides Sub FillPolygon(brush As Brush, points() As PointF, fillMode As FillMode)
3296             Call Graphics.FillPolygon(brush, points, fillMode)
3297         End Sub
3298
3299         ''' <summary>
3300         ''' Fills the interior of a rectangle specified by a System.Drawing.Rectangle structure.
3301         ''' </summary>
3302         ''' <param name="brush">System.Drawing.Brush that determines the characteristics of the fill.</param>
3303         ''' <param name="rect">System.Drawing.Rectangle structure that represents the rectangle to fill.</param>
3304         Public Overrides Sub FillRectangle(brush As Brush, rect As Rectangle)
3305             Call Graphics.FillRectangle(brush, rect)
3306         End Sub
3307         '         ' Summary:
3308         '     Fills the interior of a rectangle specified by a System.Drawing.RectangleF structure.
3309         '         ' Parameters:
3310         '   brush:
3311         '     System.Drawing.Brush that determines the characteristics of the fill.
3312         '         '   rect:
3313         '     System.Drawing.RectangleF structure that represents the rectangle to fill.
3314         '         ' Exceptions:
3315         '   T:System.ArgumentNullException:
3316         '     brush is null.
3317         Public Overrides Sub FillRectangle(brush As Brush, rect As RectangleF)
3318             Call Graphics.FillRectangle(brush, rect)
3319         End Sub
3320         '         ' Summary:
3321         '     Fills the interior of a rectangle specified by a pair of coordinates, a width,
3322         '     and a height.
3323         '         ' Parameters:
3324         '   brush:
3325         '     System.Drawing.Brush that determines the characteristics of the fill.
3326         '         '   x:
3327         '     The x-coordinate of the upper-left corner of the rectangle to fill.
3328         '         '   y:
3329         '     The y-coordinate of the upper-left corner of the rectangle to fill.
3330         '         '   width:
3331         '     Width of the rectangle to fill.
3332         '         '   height:
3333         '     Height of the rectangle to fill.
3334         '         ' Exceptions:
3335         '   T:System.ArgumentNullException:
3336         '     brush is null.
3337         Public Overrides Sub FillRectangle(brush As Brush, x As Integer, y As Integer, width As Integer, height As Integer)
3338
3339         End Sub
3340         '         ' Summary:
3341         '     Fills the interior of a rectangle specified by a pair of coordinates, a width,
3342         '     and a height.
3343         '         ' Parameters:
3344         '   brush:
3345         '     System.Drawing.Brush that determines the characteristics of the fill.
3346         '         '   x:
3347         '     The x-coordinate of the upper-left corner of the rectangle to fill.
3348         '         '   y:
3349         '     The y-coordinate of the upper-left corner of the rectangle to fill.
3350         '         '   width:
3351         '     Width of the rectangle to fill.
3352         '         '   height:
3353         '     Height of the rectangle to fill.
3354         '         ' Exceptions:
3355         '   T:System.ArgumentNullException:
3356         '     brush is null.
3357         Public Overrides Sub FillRectangle(brush As Brush, x As Single, y As Single, width As Single, height As Single)
3358
3359         End Sub
3360         '         ' Summary:
3361         '     Fills the interiors of a series of rectangles specified by System.Drawing.Rectangle
3362         '     structures.
3363         '         ' Parameters:
3364         '   brush:
3365         '     System.Drawing.Brush that determines the characteristics of the fill.
3366         '         '   rects:
3367         '     Array of System.Drawing.Rectangle structures that represent the rectangles to
3368         '     fill.
3369         '         ' Exceptions:
3370         '   T:System.ArgumentNullException:
3371         '     brush is null.-or-rects is null.
3372         '         '   T:System.ArgumentException:
3373         '     rects is a zero-length array.
3374         Public Overrides Sub FillRectangles(brush As Brush, rects() As Rectangle)
3375
3376         End Sub
3377         '         ' Summary:
3378         '     Fills the interiors of a series of rectangles specified by System.Drawing.RectangleF
3379         '     structures.
3380         '         ' Parameters:
3381         '   brush:
3382         '     System.Drawing.Brush that determines the characteristics of the fill.
3383         '         '   rects:
3384         '     Array of System.Drawing.RectangleF structures that represent the rectangles to
3385         '     fill.
3386         '         ' Exceptions:
3387         '   T:System.ArgumentNullException:
3388         '     brush is null.-or-rects is null.
3389         '         '   T:System.ArgumentException:
3390         '     Rects is a zero-length array.
3391         Public Overrides Sub FillRectangles(brush As Brush, rects() As RectangleF)
3392
3393         End Sub
3394         '         ' Summary:
3395         '     Fills the interior of a System.Drawing.Region.
3396         '         ' Parameters:
3397         '   brush:
3398         '     System.Drawing.Brush that determines the characteristics of the fill.
3399         '
3400         '   region:
3401         '     System.Drawing.Region that represents the area to fill.
3402         '         ' Exceptions:
3403         '   T:System.ArgumentNullException:
3404         '     brush is null.-or-region is null.
3405         Public Overrides Sub FillRegion(brush As Brush, region As Region)
3406
3407         End Sub
3408         '         ' Summary:
3409         '     Forces execution of all pending graphics operations and returns immediately without
3410         '     waiting for the operations to finish.
3411         Public Overrides Sub Flush()
3412
3413         End Sub
3414         '         ' Summary:
3415         '     Forces execution of all pending graphics operations with the method waiting or
3416         '     not waiting, as specified, to return before the operations finish.
3417         '         ' Parameters:
3418         '   intention:
3419         '     Member of the System.Drawing.Drawing2D.FlushIntention enumeration that specifies
3420         '     whether the method returns immediately or waits for any existing operations to
3421         '     finish.
3422         Public Overrides Sub Flush(intention As FlushIntention)
3423
3424         End Sub
3425         '         ' Summary:
3426         '     Updates the clip region of this System.Drawing.Graphics to the intersection of
3427         '     the current clip region and the specified System.Drawing.RectangleF structure.
3428         '         ' Parameters:
3429         '   rect:
3430         '     System.Drawing.RectangleF structure to intersect with the current clip region.
3431         Public Overrides Sub IntersectClip(rect As RectangleF)
3432
3433         End Sub
3434         '         ' Summary:
3435         '     Updates the clip region of this System.Drawing.Graphics to the intersection of
3436         '     the current clip region and the specified System.Drawing.Region.
3437         '         ' Parameters:
3438         '   region:
3439         '     System.Drawing.Region to intersect with the current region.
3440         Public Overrides Sub IntersectClip(region As Region)
3441
3442         End Sub
3443         '         ' Summary:
3444         '     Updates the clip region of this System.Drawing.Graphics to the intersection of
3445         '     the current clip region and the specified System.Drawing.Rectangle structure.
3446         '         ' Parameters:
3447         '   rect:
3448         '     System.Drawing.Rectangle structure to intersect with the current clip region.
3449         Public Overrides Sub IntersectClip(rect As Rectangle)
3450
3451         End Sub
3452         '         ' Summary:
3453         '     Multiplies the world transformation of this System.Drawing.Graphics and specified
3454         '     the System.Drawing.Drawing2D.Matrix.
3455         '         ' Parameters:
3456         '   matrix:
3457         '     4x4 System.Drawing.Drawing2D.Matrix that multiplies the world transformation.
3458         Public Overrides Sub MultiplyTransform(matrix As Drawing2D.Matrix)
3459
3460         End Sub
3461         '         ' Summary:
3462         '     Multiplies the world transformation of this System.Drawing.Graphics and specified
3463         '     the System.Drawing.Drawing2D.Matrix in the specified order.
3464         '         ' Parameters:
3465         '   matrix:
3466         '     4x4 System.Drawing.Drawing2D.Matrix that multiplies the world transformation.
3467         '         '   order:
3468         '     Member of the System.Drawing.Drawing2D.MatrixOrder enumeration that determines
3469         '     the order of the multiplication.
3470         Public Overrides Sub MultiplyTransform(matrix As Drawing2D.Matrix, order As MatrixOrder)
3471
3472         End Sub
3473
3474         '         ' Summary:
3475         '     Releases a device context handle obtained by a previous call to the System.Drawing.Graphics.GetHdc
3476         '     method of this System.Drawing.Graphics.
3477         '         ' Parameters:
3478         '   hdc:
3479         '     Handle to a device context obtained by a previous call to the System.Drawing.Graphics.GetHdc
3480         '     method of this System.Drawing.Graphics.
3481         <EditorBrowsable(EditorBrowsableState.Advanced)>
3482         Public Overrides Sub ReleaseHdc(hdc As IntPtr)
3483
3484         End Sub
3485         '         ' Summary:
3486         '     Releases a handle to a device context.
3487         '         ' Parameters:
3488         '   hdc:
3489         '     Handle to a device context.
3490         <EditorBrowsable(EditorBrowsableState.Never)>
3491         Public Overrides Sub ReleaseHdcInternal(hdc As IntPtr)
3492
3493         End Sub
3494         '         ' Summary:
3495         '     Resets the clip region of this System.Drawing.Graphics to an infinite region.
3496         Public Overrides Sub ResetClip()
3497
3498         End Sub
3499         '         ' Summary:
3500         '     Resets the world transformation matrix of this System.Drawing.Graphics to the
3501         '     identity matrix.
3502         Public Overrides Sub ResetTransform()
3503             Call Graphics.ResetTransform()
3504         End Sub
3505         '         ' Summary:
3506         '     Restores the state of this System.Drawing.Graphics to the state represented by
3507         '     a System.Drawing.Drawing2D.GraphicsState.
3508         '         ' Parameters:
3509         '   gstate:
3510         '     System.Drawing.Drawing2D.GraphicsState that represents the state to which to
3511         '     restore this System.Drawing.Graphics.
3512         Public Overrides Sub Restore(gstate As GraphicsState)
3513
3514         End Sub
3515         '         ' Summary:
3516         '     Applies the specified rotation to the transformation matrix of this System.Drawing.Graphics.
3517         '         ' Parameters:
3518         '   angle:
3519         '     Angle of rotation in degrees.
3520         Public Overrides Sub RotateTransform(angle As Single)
3521             Call Graphics.RotateTransform(angle)
3522         End Sub
3523         '         ' Summary:
3524         '     Applies the specified rotation to the transformation matrix of this System.Drawing.Graphics
3525         '     in the specified order.
3526         '         ' Parameters:
3527         '   angle:
3528         '     Angle of rotation in degrees.
3529         '         '   order:
3530         '     Member of the System.Drawing.Drawing2D.MatrixOrder enumeration that specifies
3531         '     whether the rotation is appended or prepended to the matrix transformation.
3532         Public Overrides Sub RotateTransform(angle As Single, order As MatrixOrder)
3533
3534         End Sub
3535         '         ' Summary:
3536         '     Applies the specified scaling operation to the transformation matrix of this
3537         '     System.Drawing.Graphics by prepending it to the object's transformation matrix.
3538         '         ' Parameters:
3539         '   sx:
3540         '     Scale factor in the x direction.
3541         '         '   sy:
3542         '     Scale factor in the y direction.
3543         Public Overrides Sub ScaleTransform(sx As Single, sy As Single)
3544
3545         End Sub
3546         '         ' Summary:
3547         '     Applies the specified scaling operation to the transformation matrix of this
3548         '     System.Drawing.Graphics in the specified order.
3549         '         ' Parameters:
3550         '   sx:
3551         '     Scale factor in the x direction.
3552         '         '   sy:
3553         '     Scale factor in the y direction.
3554         '         '   order:
3555         '     Member of the System.Drawing.Drawing2D.MatrixOrder enumeration that specifies
3556         '     whether the scaling operation is prepended or appended to the transformation
3557         '     matrix.
3558         Public Overrides Sub ScaleTransform(sx As Single, sy As Single, order As MatrixOrder)
3559
3560         End Sub
3561         '         ' Summary:
3562         '     Sets the clipping region of this System.Drawing.Graphics to the rectangle specified
3563         '     by a System.Drawing.Rectangle structure.
3564         '         ' Parameters:
3565         '   rect:
3566         '     System.Drawing.Rectangle structure that represents the new clip region.
3567         Public Overrides Sub SetClip(rect As Rectangle)
3568
3569         End Sub
3570         '         ' Summary:
3571         '     Sets the clipping region of this System.Drawing.Graphics to the rectangle specified
3572         '     by a System.Drawing.RectangleF structure.
3573         '         ' Parameters:
3574         '   rect:
3575         '     System.Drawing.RectangleF structure that represents the new clip region.
3576         Public Overrides Sub SetClip(rect As RectangleF)
3577
3578         End Sub
3579         '         ' Summary:
3580         '     Sets the clipping region of this System.Drawing.Graphics to the specified System.Drawing.Drawing2D.GraphicsPath.
3581         '         ' Parameters:
3582         '   path:
3583         '     System.Drawing.Drawing2D.GraphicsPath that represents the new clip region.
3584         Public Overrides Sub SetClip(path As GraphicsPath)
3585
3586         End Sub
3587         '         ' Summary:
3588         '     Sets the clipping region of this System.Drawing.Graphics to the Clip property
3589         '     of the specified System.Drawing.Graphics.
3590         '         ' Parameters:
3591         '   g:
3592         '     System.Drawing.Graphics from which to take the new clip region.
3593         Public Overrides Sub SetClip(g As Graphics)
3594
3595         End Sub
3596         '         ' Summary:
3597         '     Sets the clipping region of this System.Drawing.Graphics to the result of the
3598         '     specified operation combining the current clip region and the specified System.Drawing.Region.
3599         '         ' Parameters:
3600         '   region:
3601         '     System.Drawing.Region to combine.
3602         '         '   combineMode:
3603         '     Member from the System.Drawing.Drawing2D.CombineMode enumeration that specifies
3604         '     the combining operation to use.
3605         Public Overrides Sub SetClip(region As Region, combineMode As CombineMode)
3606
3607         End Sub
3608         '         ' Summary:
3609         '     Sets the clipping region of this System.Drawing.Graphics to the result of the
3610         '     specified operation combining the current clip region and the rectangle specified
3611         '     by a System.Drawing.RectangleF structure.
3612         '         ' Parameters:
3613         '   rect:
3614         '     System.Drawing.RectangleF structure to combine.
3615         '         '   combineMode:
3616         '     Member of the System.Drawing.Drawing2D.CombineMode enumeration that specifies
3617         '     the combining operation to use.
3618         Public Overrides Sub SetClip(rect As RectangleF, combineMode As CombineMode)
3619
3620         End Sub
3621         '         ' Summary:
3622         '     Sets the clipping region of this System.Drawing.Graphics to the result of the
3623         '     specified operation combining the current clip region and the rectangle specified
3624         '     by a System.Drawing.Rectangle structure.
3625         '         ' Parameters:
3626         '   rect:
3627         '     System.Drawing.Rectangle structure to combine.
3628         '         '   combineMode:
3629         '     Member of the System.Drawing.Drawing2D.CombineMode enumeration that specifies
3630         '     the combining operation to use.
3631         Public Overrides Sub SetClip(rect As Rectangle, combineMode As CombineMode)
3632
3633         End Sub
3634         '         ' Summary:
3635         '     Sets the clipping region of this System.Drawing.Graphics to the result of the
3636         '     specified operation combining the current clip region and the specified System.Drawing.Drawing2D.GraphicsPath.
3637         '         ' Parameters:
3638         '   path:
3639         '     System.Drawing.Drawing2D.GraphicsPath to combine.
3640         '         '   combineMode:
3641         '     Member of the System.Drawing.Drawing2D.CombineMode enumeration that specifies
3642         '     the combining operation to use.
3643         Public Overrides Sub SetClip(path As GraphicsPath, combineMode As CombineMode)
3644
3645         End Sub
3646         '         ' Summary:
3647         '     Sets the clipping region of this System.Drawing.Graphics to the result of the
3648         '     specified combining operation of the current clip region and the System.Drawing.Graphics.Clip
3649         '     property of the specified System.Drawing.Graphics.
3650         '         ' Parameters:
3651         '   g:
3652         '     System.Drawing.Graphics that specifies the clip region to combine.
3653         '         '   combineMode:
3654         '     Member of the System.Drawing.Drawing2D.CombineMode enumeration that specifies
3655         '     the combining operation to use.
3656         Public Overrides Sub SetClip(g As Graphics, combineMode As CombineMode)
3657
3658         End Sub
3659         '         ' Summary:
3660         '     Transforms an array of points from one coordinate space to another using the
3661         '     current world and page transformations of this System.Drawing.Graphics.
3662         '         ' Parameters:
3663         '   destSpace:
3664         '     Member of the System.Drawing.Drawing2D.CoordinateSpace enumeration that specifies
3665         '     the destination coordinate space.
3666         '         '   srcSpace:
3667         '     Member of the System.Drawing.Drawing2D.CoordinateSpace enumeration that specifies
3668         '     the source coordinate space.
3669         '         '   pts:
3670         '     Array of System.Drawing.Point structures that represents the points to transformation.
3671         Public Overrides Sub TransformPoints(destSpace As CoordinateSpace, srcSpace As CoordinateSpace, pts() As Point)
3672
3673         End Sub
3674         '         ' Summary:
3675         '     Transforms an array of points from one coordinate space to another using the
3676         '     current world and page transformations of this System.Drawing.Graphics.
3677         '         ' Parameters:
3678         '   destSpace:
3679         '     Member of the System.Drawing.Drawing2D.CoordinateSpace enumeration that specifies
3680         '     the destination coordinate space.
3681         '         '   srcSpace:
3682         '     Member of the System.Drawing.Drawing2D.CoordinateSpace enumeration that specifies
3683         '     the source coordinate space.
3684         '         '   pts:
3685         '     Array of System.Drawing.PointF structures that represent the points to transform.
3686         Public Overrides Sub TransformPoints(destSpace As CoordinateSpace, srcSpace As CoordinateSpace, pts() As PointF)
3687
3688         End Sub
3689         '         ' Summary:
3690         '     Translates the clipping region of this System.Drawing.Graphics by specified amounts
3691         '     in the horizontal and vertical directions.
3692         '         ' Parameters:
3693         '   dx:
3694         '     The x-coordinate of the translation.
3695         '         '   dy:
3696         '     The y-coordinate of the translation.
3697         Public Overrides Sub TranslateClip(dx As Integer, dy As Integer)
3698
3699         End Sub
3700         '         ' Summary:
3701         '     Translates the clipping region of this System.Drawing.Graphics by specified amounts
3702         '     in the horizontal and vertical directions.
3703         '         ' Parameters:
3704         '   dx:
3705         '     The x-coordinate of the translation.
3706         '         '   dy:
3707         '     The y-coordinate of the translation.
3708         Public Overrides Sub TranslateClip(dx As Single, dy As Single)
3709
3710         End Sub
3711         '         ' Summary:
3712         '     Changes the origin of the coordinate system by prepending the specified translation
3713         '     to the transformation matrix of this System.Drawing.Graphics.
3714         '         ' Parameters:
3715         '   dx:
3716         '     The x-coordinate of the translation.
3717         '         '   dy:
3718         '     The y-coordinate of the translation.
3719         Public Overrides Sub TranslateTransform(dx As Single, dy As Single)
3720             Call Graphics.TranslateTransform(dx, dy)
3721         End Sub
3722         '         ' Summary:
3723         '     Changes the origin of the coordinate system by applying the specified translation
3724         '     to the transformation matrix of this System.Drawing.Graphics in the specified
3725         '     order.
3726         '         ' Parameters:
3727         '   dx:
3728         '     The x-coordinate of the translation.
3729         '         '   dy:
3730         '     The y-coordinate of the translation.
3731         '         '   order:
3732         '     Member of the System.Drawing.Drawing2D.MatrixOrder enumeration that specifies
3733         '     whether the translation is prepended or appended to the transformation matrix.
3734         Public Overrides Sub TranslateTransform(dx As Single, dy As Single, order As MatrixOrder)
3735             Call Graphics.TranslateTransform(dx, dy, order)
3736         End Sub
3737
3738         Protected Overrides Sub Finalize()
3739             Call Graphics.Dispose()
3740         End Sub
3741
3742         '         ' Summary:
3743         '     Saves a graphics container with the current state of this System.Drawing.Graphics
3744         '     and opens and uses a new graphics container.
3745         '         ' Returns:
3746         '     This method returns a System.Drawing.Drawing2D.GraphicsContainer that represents
3747         '     the state of this System.Drawing.Graphics at the time of the method call.
3748         Public Overrides Function BeginContainer() As GraphicsContainer
3749             Return Graphics.BeginContainer
3750         End Function
3751         '         ' Summary:
3752         '     Saves a graphics container with the current state of this System.Drawing.Graphics
3753         '     and opens and uses a new graphics container with the specified scale transformation.
3754         '         ' Parameters:
3755         '   dstrect:
3756         '     System.Drawing.Rectangle structure that, together with the srcrect parameter,
3757         '     specifies a scale transformation for the container.
3758         '         '   srcrect:
3759         '     System.Drawing.Rectangle structure that, together with the dstrect parameter,
3760         '     specifies a scale transformation for the container.
3761         '         '   unit:
3762         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the unit
3763         '     of measure for the container.
3764         '         ' Returns:
3765         '     This method returns a System.Drawing.Drawing2D.GraphicsContainer that represents
3766         '     the state of this System.Drawing.Graphics at the time of the method call.
3767         Public Overrides Function BeginContainer(dstrect As Rectangle, srcrect As Rectangle, unit As GraphicsUnit) As GraphicsContainer
3768             Return Graphics.BeginContainer(dstrect, srcrect, unit)
3769         End Function
3770         '         ' Summary:
3771         '     Saves a graphics container with the current state of this System.Drawing.Graphics
3772         '     and opens and uses a new graphics container with the specified scale transformation.
3773         '         ' Parameters:
3774         '   dstrect:
3775         '     System.Drawing.RectangleF structure that, together with the srcrect parameter,
3776         '     specifies a scale transformation for the new graphics container.
3777         '         '   srcrect:
3778         '     System.Drawing.RectangleF structure that, together with the dstrect parameter,
3779         '     specifies a scale transformation for the new graphics container.
3780         '         '   unit:
3781         '     Member of the System.Drawing.GraphicsUnit enumeration that specifies the unit
3782         '     of measure for the container.
3783         '         ' Returns:
3784         '     This method returns a System.Drawing.Drawing2D.GraphicsContainer that represents
3785         '     the state of this System.Drawing.Graphics at the time of the method call.
3786         Public Overrides Function BeginContainer(dstrect As RectangleF, srcrect As RectangleF, unit As GraphicsUnit) As GraphicsContainer
3787             Return Graphics.BeginContainer(dstrect, srcrect, unit)
3788         End Function
3789         '         ' Summary:
3790         '     Gets the cumulative graphics context.
3791         '         ' Returns:
3792         '     An System.Object representing the cumulative graphics context.
3793         <EditorBrowsable(EditorBrowsableState.Never)>
3794         Public Overrides Function GetContextInfo() As Object
3795             Return Graphics.GetContextInfo
3796         End Function
3797
3798         '         ' Summary:
3799         '     Gets the nearest color to the specified System.Drawing.Color structure.
3800         '         ' Parameters:
3801         '   color:
3802         '     System.Drawing.Color structure for which to find a match.
3803         '         ' Returns:
3804         '     A System.Drawing.Color structure that represents the nearest color to the one
3805         '     specified with the color parameter.
3806         Public Overrides Function GetNearestColor(color As Color) As Color
3807             Return Graphics.GetNearestColor(color)
3808         End Function
3809         '         ' Summary:
3810         '     Indicates whether the rectangle specified by a System.Drawing.Rectangle structure
3811         '     is contained within the visible clip region of this System.Drawing.Graphics.
3812         '         ' Parameters:
3813         '   rect:
3814         '     System.Drawing.Rectangle structure to test for visibility.
3815         '         ' Returns:
3816         '     true if the rectangle specified by the rect parameter is contained within the
3817         '     visible clip region of this System.Drawing.Graphics; otherwise, false.
3818         Public Overrides Function IsVisible(rect As Rectangle) As Boolean
3819             Return Graphics.IsVisible(rect)
3820         End Function
3821         '         ' Summary:
3822         '     Indicates whether the rectangle specified by a System.Drawing.RectangleF structure
3823         '     is contained within the visible clip region of this System.Drawing.Graphics.
3824         '         ' Parameters:
3825         '   rect:
3826         '     System.Drawing.RectangleF structure to test for visibility.
3827         '         ' Returns:
3828         '     true if the rectangle specified by the rect parameter is contained within the
3829         '     visible clip region of this System.Drawing.Graphics; otherwise, false.
3830         Public Overrides Function IsVisible(rect As RectangleF) As Boolean
3831             Return Graphics.IsVisible(rect)
3832         End Function
3833         '         ' Summary:
3834         '     Indicates whether the specified System.Drawing.PointF structure is contained
3835         '     within the visible clip region of this System.Drawing.Graphics.
3836         '         ' Parameters:
3837         '   point:
3838         '     System.Drawing.PointF structure to test for visibility.
3839         '         ' Returns:
3840         '     true if the point specified by the point parameter is contained within the visible
3841         '     clip region of this System.Drawing.Graphics; otherwise, false.
3842         Public Overrides Function IsVisible(point As PointF) As Boolean
3843             Return Graphics.IsVisible(point)
3844         End Function
3845         '         ' Summary:
3846         '     Indicates whether the specified System.Drawing.Point structure is contained within
3847         '     the visible clip region of this System.Drawing.Graphics.
3848         '         ' Parameters:
3849         '   point:
3850         '     System.Drawing.Point structure to test for visibility.
3851         '         ' Returns:
3852         '     true if the point specified by the point parameter is contained within the visible
3853         '     clip region of this System.Drawing.Graphics; otherwise, false.
3854         Public Overrides Function IsVisible(point As Point) As Boolean
3855             Return Graphics.IsVisible(point)
3856         End Function
3857         '         ' Summary:
3858         '     Indicates whether the point specified by a pair of coordinates is contained within
3859         '     the visible clip region of this System.Drawing.Graphics.
3860         '         ' Parameters:
3861         '   x:
3862         '     The x-coordinate of the point to test for visibility.
3863         '         '   y:
3864         '     The y-coordinate of the point to test for visibility.
3865         '         ' Returns:
3866         '     true if the point defined by the x and y parameters is contained within the visible
3867         '     clip region of this System.Drawing.Graphics; otherwise, false.
3868         Public Overrides Function IsVisible(x As Single, y As SingleAs Boolean
3869             Return Graphics.IsVisible(x, y)
3870         End Function
3871         '         ' Summary:
3872         '     Indicates whether the point specified by a pair of coordinates is contained within
3873         '     the visible clip region of this System.Drawing.Graphics.
3874         '         ' Parameters:
3875         '   x:
3876         '     The x-coordinate of the point to test for visibility.
3877         '         '   y:
3878         '     The y-coordinate of the point to test for visibility.
3879         '         ' Returns:
3880         '     true if the point defined by the x and y parameters is contained within the visible
3881         '     clip region of this System.Drawing.Graphics; otherwise, false.
3882         Public Overrides Function IsVisible(x As Integer, y As IntegerAs Boolean
3883             Return Graphics.IsVisible(x, y)
3884         End Function
3885         '         ' Summary:
3886         '     Indicates whether the rectangle specified by a pair of coordinates, a width,
3887         '     and a height is contained within the visible clip region of this System.Drawing.Graphics.
3888         '         ' Parameters:
3889         '   x:
3890         '     The x-coordinate of the upper-left corner of the rectangle to test for visibility.
3891         '         '   y:
3892         '     The y-coordinate of the upper-left corner of the rectangle to test for visibility.
3893         '         '   width:
3894         '     Width of the rectangle to test for visibility.
3895         '         '   height:
3896         '     Height of the rectangle to test for visibility.
3897         '         ' Returns:
3898         '     true if the rectangle defined by the x, y, width, and height parameters is contained
3899         '     within the visible clip region of this System.Drawing.Graphics; otherwise, false.
3900         Public Overrides Function IsVisible(x As Single, y As Single, width As Single, height As SingleAs Boolean
3901             Return Graphics.IsVisible(x, y, width, height)
3902         End Function
3903         '         ' Summary:
3904         '     Indicates whether the rectangle specified by a pair of coordinates, a width,
3905         '     and a height is contained within the visible clip region of this System.Drawing.Graphics.
3906         '         ' Parameters:
3907         '   x:
3908         '     The x-coordinate of the upper-left corner of the rectangle to test for visibility.
3909         '         '   y:
3910         '     The y-coordinate of the upper-left corner of the rectangle to test for visibility.
3911         '         '   width:
3912         '     Width of the rectangle to test for visibility.
3913         '         '   height:
3914         '     Height of the rectangle to test for visibility.
3915         '         ' Returns:
3916         '     true if the rectangle defined by the x, y, width, and height parameters is contained
3917         '     within the visible clip region of this System.Drawing.Graphics; otherwise, false.
3918         Public Overrides Function IsVisible(x As Integer, y As Integer, width As Integer, height As IntegerAs Boolean
3919             Return Graphics.IsVisible(x, y, width, height)
3920         End Function
3921         '         ' Summary:
3922         '     Gets an array of System.Drawing.Region objects, each of which bounds a range
3923         '     of character positions within the specified string.
3924         '         ' Parameters:
3925         '   text:
3926         '     String to measure.
3927         '         '   font:
3928         '     System.Drawing.Font that defines the text format of the string.
3929         '         '   layoutRect:
3930         '     System.Drawing.RectangleF structure that specifies the layout rectangle for the
3931         '     string.
3932         '         '   stringFormat:
3933         '     System.Drawing.StringFormat that represents formatting information, such as line
3934         '     spacing, for the string.
3935         '         ' Returns:
3936         '     This method returns an array of System.Drawing.Region objects, each of which
3937         '     bounds a range of character positions within the specified string.
3938         Public Overrides Function MeasureCharacterRanges(text As String, font As Font, layoutRect As RectangleF, stringFormat As StringFormat) As Region()
3939             Return Graphics.MeasureCharacterRanges(text, font, layoutRect, stringFormat)
3940         End Function
3941
3942         ''' <summary>
3943         ''' Measures the specified string when drawn with the specified <see cref="Font"/>.
3944         ''' </summary>
3945         ''' <param name="text">String to measure.</param>
3946         ''' <param name="font"><see cref="Font"/> that defines the text format of the string.</param>
3947         ''' <returns>This method returns a System.Drawing.SizeF structure that represents the size,
3948         ''' in the units specified by the <see cref="PageUnit"/> property, of the
3949         ''' string specified by the text parameter as drawn with the font parameter.</returns>
3950         Public Overrides Function MeasureString(text$, font As Font) As SizeF
3951             Return Graphics.MeasureString(text, font)
3952         End Function
3953
3954         ''' <summary>
3955         ''' Using <see cref="Font"/>
3956         ''' </summary>
3957         ''' <param name="text"></param>
3958         ''' <returns></returns>
3959         Public Overloads Function MeasureString(text As StringAs SizeF
3960             Return Graphics.MeasureString(text, Font)
3961         End Function
3962
3963         ' Summary:
3964         '     Measures the specified string when drawn with the specified System.Drawing.Font.
3965         '         ' Parameters:
3966         '   text:
3967         '     String to measure.
3968         '         '   font:
3969         '     System.Drawing.Font that defines the format of the string.
3970         '         '   width:
3971         '     Maximum width of the string in pixels.
3972         '         ' Returns:
3973         '     This method returns a System.Drawing.SizeF structure that represents the size,
3974         '     in the units specified by the System.Drawing.Graphics.PageUnit property, of the
3975         '     string specified in the text parameter as drawn with the font parameter.
3976         '         ' Exceptions:
3977         '   T:System.ArgumentException:
3978         '     font is null.
3979         Public Overrides Function MeasureString(text As String, font As Font, width As IntegerAs SizeF
3980             Return Graphics.MeasureString(text, font, width)
3981         End Function
3982         '         ' Summary:
3983         '     Measures the specified string when drawn with the specified System.Drawing.Font
3984         '     within the specified layout area.
3985         '         ' Parameters:
3986         '   text:
3987         '     String to measure.
3988         '         '   font:
3989         '     System.Drawing.Font defines the text format of the string.
3990         '         '   layoutArea:
3991         '     System.Drawing.SizeF structure that specifies the maximum layout area for the
3992         '     text.
3993         '         ' Returns:
3994         '     This method returns a System.Drawing.SizeF structure that represents the size,
3995         '     in the units specified by the System.Drawing.Graphics.PageUnit property, of the
3996         '     string specified by the text parameter as drawn with the font parameter.
3997         '         ' Exceptions:
3998         '   T:System.ArgumentException:
3999         '     font is null.
4000         Public Overrides Function MeasureString(text As String, font As Font, layoutArea As SizeF) As SizeF
4001             Return Graphics.MeasureString(text, font, layoutArea)
4002         End Function
4003         '         ' Summary:
4004         '     Measures the specified string when drawn with the specified System.Drawing.Font
4005         '     and formatted with the specified System.Drawing.StringFormat.
4006         '         ' Parameters:
4007         '   text:
4008         '     String to measure.
4009         '         '   font:
4010         '     System.Drawing.Font defines the text format of the string.
4011         '         '   layoutArea:
4012         '     System.Drawing.SizeF structure that specifies the maximum layout area for the
4013         '     text.
4014         '         '   stringFormat:
4015         '     System.Drawing.StringFormat that represents formatting information, such as line
4016         '     spacing, for the string.
4017         '         ' Returns:
4018         '     This method returns a System.Drawing.SizeF structure that represents the size,
4019         '     in the units specified by the System.Drawing.Graphics.PageUnit property, of the
4020         '     string specified in the text parameter as drawn with the font parameter and the
4021         '     stringFormat parameter.
4022         '         ' Exceptions:
4023         '   T:System.ArgumentException:
4024         '     font is null.
4025         Public Overrides Function MeasureString(text As String, font As Font, layoutArea As SizeF, stringFormat As StringFormat) As SizeF
4026             Return Graphics.MeasureString(text, font, layoutArea, stringFormat)
4027         End Function
4028         '         ' Summary:
4029         '     Measures the specified string when drawn with the specified System.Drawing.Font
4030         '     and formatted with the specified System.Drawing.StringFormat.
4031         '         ' Parameters:
4032         '   text:
4033         '     String to measure.
4034         '         '   font:
4035         '     System.Drawing.Font that defines the text format of the string.
4036         '         '   width:
4037         '     Maximum width of the string.
4038         '         '   format:
4039         '     System.Drawing.StringFormat that represents formatting information, such as line
4040         '     spacing, for the string.
4041         '         ' Returns:
4042         '     This method returns a System.Drawing.SizeF structure that represents the size,
4043         '     in the units specified by the System.Drawing.Graphics.PageUnit property, of the
4044         '     string specified in the text parameter as drawn with the font parameter and the
4045         '     stringFormat parameter.
4046         '         ' Exceptions:
4047         '   T:System.ArgumentException:
4048         '     font is null.
4049         Public Overrides Function MeasureString(text As String, font As Font, width As Integer, format As StringFormat) As SizeF
4050             Return Graphics.MeasureString(text, font, width, format)
4051         End Function
4052         '         ' Summary:
4053         '     Measures the specified string when drawn with the specified System.Drawing.Font
4054         '     and formatted with the specified System.Drawing.StringFormat.
4055         '         ' Parameters:
4056         '   text:
4057         '     String to measure.
4058         '         '   font:
4059         '     System.Drawing.Font defines the text format of the string.
4060         '         '   origin:
4061         '     System.Drawing.PointF structure that represents the upper-left corner of the
4062         '     string.
4063         '         '   stringFormat:
4064         '     System.Drawing.StringFormat that represents formatting information, such as line
4065         '     spacing, for the string.
4066         '         ' Returns:
4067         '     This method returns a System.Drawing.SizeF structure that represents the size,
4068         '     in the units specified by the System.Drawing.Graphics.PageUnit property, of the
4069         '     string specified by the text parameter as drawn with the font parameter and the
4070         '     stringFormat parameter.
4071         '         ' Exceptions:
4072         '   T:System.ArgumentException:
4073         '     font is null.
4074         Public Overrides Function MeasureString(text As String, font As Font, origin As PointF, stringFormat As StringFormat) As SizeF
4075             Return Graphics.MeasureString(text, font, origin, stringFormat)
4076         End Function
4077         '         ' Summary:
4078         '     Measures the specified string when drawn with the specified System.Drawing.Font
4079         '     and formatted with the specified System.Drawing.StringFormat.
4080         '         ' Parameters:
4081         '   text:
4082         '     String to measure.
4083         '         '   font:
4084         '     System.Drawing.Font that defines the text format of the string.
4085         '         '   layoutArea:
4086         '     System.Drawing.SizeF structure that specifies the maximum layout area for the
4087         '     text.
4088         '         '   stringFormat:
4089         '     System.Drawing.StringFormat that represents formatting information, such as line
4090         '     spacing, for the string.
4091         '         '   charactersFitted:
4092         '     Number of characters in the string.
4093         '         '   linesFilled:
4094         '     Number of text lines in the string.
4095         '         ' Returns:
4096         '     This method returns a System.Drawing.SizeF structure that represents the size
4097         '     of the string, in the units specified by the System.Drawing.Graphics.PageUnit
4098         '     property, of the text parameter as drawn with the font parameter and the stringFormat
4099         '     parameter.
4100         '         ' Exceptions:
4101         '   T:System.ArgumentException:
4102         '     font is null.
4103         Public Overrides Function MeasureString(text As String, font As Font, layoutArea As SizeF, stringFormat As StringFormat, ByRef charactersFitted As IntegerByRef linesFilled As IntegerAs SizeF
4104             Return Graphics.MeasureString(text, font, layoutArea, stringFormat, charactersFitted, linesFilled)
4105         End Function
4106
4107         Public Overrides Sub DrawBezier(pen As Pen, pt1 As Point, pt2 As Point, pt3 As Point, pt4 As Point)
4108             Call Graphics.DrawBezier(pen, pt1, pt2, pt3, pt4)
4109         End Sub
4110
4111         Public Overrides Sub DrawRectangle(pen As Pen, rect As RectangleF)
4112             Call Graphics.DrawRectangles(pen, {rect})
4113         End Sub
4114 #End Region
4115
4116         ''' <summary>
4117         ''' Releases all resources used by this <see cref="System.Drawing.Graphics"/>.
4118         ''' </summary>
4119         Public Overrides Sub Dispose() Implements IDisposable.Dispose
4120             Call Graphics.Dispose()  ' 在这里不应该将图片资源给消灭掉,只需要释放掉gdi+资源就行了
4121         End Sub
4122     End Class
4123 End Namespace