2770 references to Graphics
DesignSurface (1)
MainForm.MyScrollableControl.cs (1)
34var graphics = e.Graphics;
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (1)
91Dim labelGraphics As Graphics = Label.CreateGraphics
PresentationFramework-SystemDrawing (2)
SystemDrawingExtension.cs (2)
108Graphics graphics = Graphics.FromImage(bmp);
PresentationUI (3)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (1)
995protected override void Paint(Graphics graphics,
MS\Internal\Documents\SignatureSummaryDialog.cs (2)
534private int CalculateItemHeight(Graphics graphics, SignatureResources item) 611private void DrawListBoxSummaryItem(Graphics graphics,
System.Drawing (1)
System.Drawing.cs (1)
60[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Drawing.Graphics))]
System.Drawing.Common (89)
Special\NotSupported.cs (89)
19public Bitmap(int width, int height, System.Drawing.Graphics g) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 217public System.Drawing.Graphics Graphics { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 220public void Render(System.Drawing.Graphics? target) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 228public System.Drawing.BufferedGraphics Allocate(System.Drawing.Graphics targetGraphics, System.Drawing.Rectangle targetRectangle) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 357public float GetHeight(System.Drawing.Graphics graphics) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 362public void ToLogFont(object logFont, System.Drawing.Graphics graphics) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 413public static System.Drawing.FontFamily[] GetFamilies(System.Drawing.Graphics graphics) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 494public void DrawImage(System.Drawing.Image image, System.Drawing.PointF[] destPoints, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Imaging.ImageAttributes? imageAttr, System.Drawing.Graphics.DrawImageAbort? callback) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 495public void DrawImage(System.Drawing.Image image, System.Drawing.PointF[] destPoints, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Imaging.ImageAttributes? imageAttr, System.Drawing.Graphics.DrawImageAbort? callback, int callbackData) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 499public void DrawImage(System.Drawing.Image image, System.Drawing.Point[] destPoints, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Imaging.ImageAttributes? imageAttr, System.Drawing.Graphics.DrawImageAbort? callback) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 500public void DrawImage(System.Drawing.Image image, System.Drawing.Point[] destPoints, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Imaging.ImageAttributes? imageAttr, System.Drawing.Graphics.DrawImageAbort? callback, int callbackData) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 505public void DrawImage(System.Drawing.Image image, System.Drawing.Rectangle destRect, int srcX, int srcY, int srcWidth, int srcHeight, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Imaging.ImageAttributes? imageAttr, System.Drawing.Graphics.DrawImageAbort? callback) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 506public void DrawImage(System.Drawing.Image image, System.Drawing.Rectangle destRect, int srcX, int srcY, int srcWidth, int srcHeight, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Imaging.ImageAttributes? imageAttrs, System.Drawing.Graphics.DrawImageAbort? callback, System.IntPtr callbackData) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 509public void DrawImage(System.Drawing.Image image, System.Drawing.Rectangle destRect, float srcX, float srcY, float srcWidth, float srcHeight, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Imaging.ImageAttributes? imageAttrs, System.Drawing.Graphics.DrawImageAbort? callback) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 510public void DrawImage(System.Drawing.Image image, System.Drawing.Rectangle destRect, float srcX, float srcY, float srcWidth, float srcHeight, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Imaging.ImageAttributes? imageAttrs, System.Drawing.Graphics.DrawImageAbort? callback, System.IntPtr callbackData) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 549public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.Point destPoint, System.Drawing.Graphics.EnumerateMetafileProc callback) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 550public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.Point destPoint, System.Drawing.Graphics.EnumerateMetafileProc callback, System.IntPtr callbackData) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 551public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.Point destPoint, System.Drawing.Graphics.EnumerateMetafileProc callback, System.IntPtr callbackData, System.Drawing.Imaging.ImageAttributes? imageAttr) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 552public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.Point destPoint, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Graphics.EnumerateMetafileProc callback) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 553public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.Point destPoint, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Graphics.EnumerateMetafileProc callback, System.IntPtr callbackData) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 554public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.Point destPoint, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit unit, System.Drawing.Graphics.EnumerateMetafileProc callback, System.IntPtr callbackData, System.Drawing.Imaging.ImageAttributes? imageAttr) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 555public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF destPoint, System.Drawing.Graphics.EnumerateMetafileProc callback) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 556public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF destPoint, System.Drawing.Graphics.EnumerateMetafileProc callback, System.IntPtr callbackData) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 557public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF destPoint, System.Drawing.Graphics.EnumerateMetafileProc callback, System.IntPtr callbackData, System.Drawing.Imaging.ImageAttributes? imageAttr) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 558public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF destPoint, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Graphics.EnumerateMetafileProc callback) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 559public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF destPoint, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Graphics.EnumerateMetafileProc callback, System.IntPtr callbackData) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 560public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF destPoint, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit unit, System.Drawing.Graphics.EnumerateMetafileProc callback, System.IntPtr callbackData, System.Drawing.Imaging.ImageAttributes? imageAttr) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 561public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF[] destPoints, System.Drawing.Graphics.EnumerateMetafileProc callback) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 562public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF[] destPoints, System.Drawing.Graphics.EnumerateMetafileProc callback, System.IntPtr callbackData) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 563public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF[] destPoints, System.Drawing.Graphics.EnumerateMetafileProc callback, System.IntPtr callbackData, System.Drawing.Imaging.ImageAttributes? imageAttr) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 564public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF[] destPoints, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Graphics.EnumerateMetafileProc callback) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 565public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF[] destPoints, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Graphics.EnumerateMetafileProc callback, System.IntPtr callbackData) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 566public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.PointF[] destPoints, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit unit, System.Drawing.Graphics.EnumerateMetafileProc callback, System.IntPtr callbackData, System.Drawing.Imaging.ImageAttributes? imageAttr) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 567public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.Point[] destPoints, System.Drawing.Graphics.EnumerateMetafileProc callback) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 568public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.Point[] destPoints, System.Drawing.Graphics.EnumerateMetafileProc callback, System.IntPtr callbackData) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 569public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.Point[] destPoints, System.Drawing.Graphics.EnumerateMetafileProc callback, System.IntPtr callbackData, System.Drawing.Imaging.ImageAttributes? imageAttr) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 570public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.Point[] destPoints, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Graphics.EnumerateMetafileProc callback) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 571public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.Point[] destPoints, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Graphics.EnumerateMetafileProc callback, System.IntPtr callbackData) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 572public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.Point[] destPoints, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit unit, System.Drawing.Graphics.EnumerateMetafileProc callback, System.IntPtr callbackData, System.Drawing.Imaging.ImageAttributes? imageAttr) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 573public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.Rectangle destRect, System.Drawing.Graphics.EnumerateMetafileProc callback) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 574public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.Rectangle destRect, System.Drawing.Graphics.EnumerateMetafileProc callback, System.IntPtr callbackData) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 575public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.Rectangle destRect, System.Drawing.Graphics.EnumerateMetafileProc callback, System.IntPtr callbackData, System.Drawing.Imaging.ImageAttributes? imageAttr) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 576public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.Rectangle destRect, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Graphics.EnumerateMetafileProc callback) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 577public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.Rectangle destRect, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Graphics.EnumerateMetafileProc callback, System.IntPtr callbackData) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 578public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.Rectangle destRect, System.Drawing.Rectangle srcRect, System.Drawing.GraphicsUnit unit, System.Drawing.Graphics.EnumerateMetafileProc callback, System.IntPtr callbackData, System.Drawing.Imaging.ImageAttributes? imageAttr) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 579public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.RectangleF destRect, System.Drawing.Graphics.EnumerateMetafileProc callback) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 580public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.RectangleF destRect, System.Drawing.Graphics.EnumerateMetafileProc callback, System.IntPtr callbackData) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 581public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.RectangleF destRect, System.Drawing.Graphics.EnumerateMetafileProc callback, System.IntPtr callbackData, System.Drawing.Imaging.ImageAttributes? imageAttr) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 582public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.RectangleF destRect, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Graphics.EnumerateMetafileProc callback) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 583public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.RectangleF destRect, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit srcUnit, System.Drawing.Graphics.EnumerateMetafileProc callback, System.IntPtr callbackData) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 584public void EnumerateMetafile(System.Drawing.Imaging.Metafile metafile, System.Drawing.RectangleF destRect, System.Drawing.RectangleF srcRect, System.Drawing.GraphicsUnit unit, System.Drawing.Graphics.EnumerateMetafileProc callback, System.IntPtr callbackData, System.Drawing.Imaging.ImageAttributes? imageAttr) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 616public static System.Drawing.Graphics FromHdc(System.IntPtr hdc) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 618public static System.Drawing.Graphics FromHdc(System.IntPtr hdc, System.IntPtr hdevice) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 620public static System.Drawing.Graphics FromHdcInternal(System.IntPtr hdc) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 622public static System.Drawing.Graphics FromHwnd(System.IntPtr hwnd) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 624public static System.Drawing.Graphics FromHwndInternal(System.IntPtr hwnd) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 625public static System.Drawing.Graphics FromImage(System.Drawing.Image image) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 667public void SetClip(System.Drawing.Graphics g) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 668public void SetClip(System.Drawing.Graphics g, System.Drawing.Drawing2D.CombineMode combineMode) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1038public bool Equals(System.Drawing.Region region, System.Drawing.Graphics g) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1045public System.Drawing.RectangleF GetBounds(System.Drawing.Graphics g) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1046public System.IntPtr GetHrgn(System.Drawing.Graphics g) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1053public bool IsEmpty(System.Drawing.Graphics g) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1054public bool IsInfinite(System.Drawing.Graphics g) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1056public bool IsVisible(System.Drawing.Point point, System.Drawing.Graphics? g) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1058public bool IsVisible(System.Drawing.PointF point, System.Drawing.Graphics? g) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1060public bool IsVisible(System.Drawing.Rectangle rect, System.Drawing.Graphics? g) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1062public bool IsVisible(System.Drawing.RectangleF rect, System.Drawing.Graphics? g) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1063public bool IsVisible(int x, int y, System.Drawing.Graphics? g) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1065public bool IsVisible(int x, int y, int width, int height, System.Drawing.Graphics? g) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1067public bool IsVisible(float x, float y, System.Drawing.Graphics? g) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1069public bool IsVisible(float x, float y, float width, float height, System.Drawing.Graphics? g) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1569public bool IsOutlineVisible(System.Drawing.Point pt, System.Drawing.Pen pen, System.Drawing.Graphics? graphics) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1571public bool IsOutlineVisible(System.Drawing.PointF pt, System.Drawing.Pen pen, System.Drawing.Graphics? graphics) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1573public bool IsOutlineVisible(int x, int y, System.Drawing.Pen pen, System.Drawing.Graphics? graphics) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1575public bool IsOutlineVisible(float x, float y, System.Drawing.Pen pen, System.Drawing.Graphics? graphics) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1577public bool IsVisible(System.Drawing.Point pt, System.Drawing.Graphics? graphics) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1579public bool IsVisible(System.Drawing.PointF pt, System.Drawing.Graphics? graphics) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1581public bool IsVisible(int x, int y, System.Drawing.Graphics? graphics) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 1583public bool IsVisible(float x, float y, System.Drawing.Graphics? graphics) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 2939public override System.Drawing.Graphics OnStartPage(System.Drawing.Printing.PrintDocument document, System.Drawing.Printing.PrintPageEventArgs e) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 2956public virtual System.Drawing.Graphics? OnStartPage(System.Drawing.Printing.PrintDocument document, System.Drawing.Printing.PrintPageEventArgs e) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 3035public System.Drawing.Graphics CreateMeasurementGraphics() { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 3036public System.Drawing.Graphics CreateMeasurementGraphics(bool honorOriginAtMargins) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 3037public System.Drawing.Graphics CreateMeasurementGraphics(System.Drawing.Printing.PageSettings pageSettings) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 3038public System.Drawing.Graphics CreateMeasurementGraphics(System.Drawing.Printing.PageSettings pageSettings, bool honorOriginAtMargins) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 3140public PrintPageEventArgs(System.Drawing.Graphics? graphics, System.Drawing.Rectangle marginBounds, System.Drawing.Rectangle pageBounds, System.Drawing.Printing.PageSettings pageSettings) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } 3142public System.Drawing.Graphics? Graphics { get { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); } } 3170public override System.Drawing.Graphics OnStartPage(System.Drawing.Printing.PrintDocument document, System.Drawing.Printing.PrintPageEventArgs e) { throw new System.PlatformNotSupportedException(System.SR.SystemDrawingCommon_PlatformNotSupported); }
System.Drawing.Common.Tests (1111)
mono\System.Drawing.Imaging\BmpCodecTests.cs (2)
430Graphics gr = Graphics.FromImage(bmp);
mono\System.Drawing.Imaging\GifCodecTests.cs (2)
184Graphics gr = Graphics.FromImage(bmp);
mono\System.Drawing.Imaging\IconCodecTests.cs (2)
1868Graphics gr = Graphics.FromImage(bmp);
mono\System.Drawing.Imaging\JpegCodecTests.cs (2)
349Graphics gr = Graphics.FromImage(bmp);
mono\System.Drawing.Imaging\PngCodecTests.cs (2)
570Graphics gr = Graphics.FromImage(bmp);
mono\System.Drawing.Imaging\TiffCodecTests.cs (2)
241Graphics gr = Graphics.FromImage(bmp);
mono\System.Drawing\BitmapTests.cs (2)
457using (Graphics gr = Graphics.FromImage(bmp))
mono\System.Drawing\GraphicsTests.cs (288)
104using Graphics g = Graphics.FromImage(bmp); 122using Graphics g = Graphics.FromImage(bmp); 151using Graphics g = Graphics.FromImage(bmp); 166using Graphics g = Graphics.FromImage(bmp); 177using Graphics g = Graphics.FromImage(bmp); 204using Graphics g = Graphics.FromImage(bmp); 221using Graphics g = Graphics.FromImage(bmp); 240using (Graphics g = Graphics.FromImage(bmp)) 253using (Graphics g = Graphics.FromImage(bmp)) 265using (Graphics g = Graphics.FromImage(bmp)) 281using Graphics g = Graphics.FromImage(bmp); 348Exception exception = AssertExtensions.Throws<ArgumentException, Exception>(() => Graphics.FromImage(img)); 356public Graphics Graphics { get; } 360Graphics = Graphics.FromImage(_bitmap); 379var g = b.Graphics; 392var g = b.Graphics; 425var g = b.Graphics; 436var g = b.Graphics; 452var g = b.Graphics; 465var g = b.Graphics; 481var g = b.Graphics; 496var g = b.Graphics; 512var g = b.Graphics; 527var g = b.Graphics; 543var g = b.Graphics; 559var g = b.Graphics; 592var g = b.Graphics; 614var g = b.Graphics; 637var g = b.Graphics; 658var g = b.Graphics; 666var g = b.Graphics; 674var g = b.Graphics; 714using Graphics g = Graphics.FromImage(bitmap); 728using Graphics g = Graphics.FromImage(bitmap); 738using Graphics g = Graphics.FromImage(bitmap); 748using Graphics g = Graphics.FromImage(bitmap); 760using Graphics g = Graphics.FromImage(bitmap); 772using Graphics g = Graphics.FromImage(bitmap); 780using Graphics g = Graphics.FromImage(bitmap); 788using Graphics g = Graphics.FromImage(bitmap); 799using Graphics g = Graphics.FromImage(bitmap); 810using Graphics g = Graphics.FromImage(bitmap); 821using Graphics g = Graphics.FromImage(bitmap); 833using Graphics g = Graphics.FromImage(bitmap); 848using Graphics g = Graphics.FromImage(bitmap); 870using Graphics g = Graphics.FromImage(bitmap); 885using Graphics g = Graphics.FromImage(bitmap); 905private static void CheckDefaultProperties(string message, Graphics g) 920private static void CheckCustomProperties(string message, Graphics g) 951using Graphics g = Graphics.FromImage(bitmap); 984using Graphics g = Graphics.FromImage(bitmap); 1018using Graphics g = Graphics.FromImage(bitmap); 1050using Graphics g = Graphics.FromImage(bitmap); 1086using Graphics g = Graphics.FromImage(bitmap); 1094using Graphics g = Graphics.FromImage(bitmap); 1134using Graphics g = Graphics.FromImage(bitmap); 1142using Graphics g = Graphics.FromImage(bitmap); 1150using Graphics g = Graphics.FromImage(bitmap); 1158using Graphics g = Graphics.FromImage(bitmap); 1166using Graphics g = Graphics.FromImage(bitmap); 1174using Graphics g = Graphics.FromImage(bitmap); 1182using Graphics g = Graphics.FromImage(bitmap); 1190using (Graphics g = Graphics.FromImage(bitmap)) 1211using (Graphics g = Graphics.FromImage(bitmap)) 1375using (Graphics g = Graphics.FromImage(bitmap)) 1521using (Graphics g = Graphics.FromImage(bitmap)) 1574using Graphics g = Graphics.FromImage(bitmap); 1595using Graphics g = Graphics.FromImage(bitmap); 1604using Graphics g = Graphics.FromImage(bitmap); 1621using Graphics g = Graphics.FromImage(bitmap); 1654using Graphics g = Graphics.FromImage(bitmap); 1685using Graphics g = Graphics.FromImage(bitmap); 1718using Graphics g = Graphics.FromImage(bitmap); 1749using Graphics g = Graphics.FromImage(bitmap); 1780using Graphics g = Graphics.FromImage(bitmap); 1803using Graphics g = Graphics.FromImage(bitmap); 1847using Graphics g = Graphics.FromImage(bitmap); 1870using Graphics g = Graphics.FromImage(bitmap); 1883using Graphics g = Graphics.FromImage(bitmap); 1896using Graphics g = Graphics.FromImage(bitmap); 1919using Graphics g = Graphics.FromImage(bitmap); 1963using Graphics g = Graphics.FromImage(bitmap); 1999using Graphics g = Graphics.FromImage(bitmap); 2006private static Region[] Measure_Helper(Graphics gfx, RectangleF rect, bool useSpan) 2022using Graphics gfx = Graphics.FromImage(new Bitmap(1, 1)); 2056using Graphics gfx = Graphics.FromImage(new Bitmap(1, 1)); 2084using Graphics g = Graphics.FromImage(bitmap); 2101using Graphics g = Graphics.FromImage(bitmap); 2118using Graphics g = Graphics.FromImage(bitmap); 2134using Graphics g = Graphics.FromImage(b); 2146using Graphics g = Graphics.FromImage(b); 2154using Graphics g = Graphics.FromImage(b); 2164using Graphics g = Graphics.FromImage(b); 2176using Graphics g = Graphics.FromImage(b); 2184using Graphics g = Graphics.FromImage(b); 2201using Graphics g = Graphics.FromImage(bmp); 2234using Graphics g = Graphics.FromImage(bmp); 2279using Graphics g = Graphics.FromImage(bmp); 2298using Graphics g = Graphics.FromImage(bmp); 2317using Graphics g = Graphics.FromImage(bmp); 2336using Graphics g = Graphics.FromImage(bmp); 2344using Graphics g = Graphics.FromImage(bmp); 2360using Graphics g = Graphics.FromImage(bmp); 2368using Graphics g = Graphics.FromImage(bmp); 2377using Graphics g = Graphics.FromImage(bmp); 2385using Graphics g = Graphics.FromImage(bmp); 2401using Graphics g = Graphics.FromImage(bmp); 2409using Graphics g = Graphics.FromImage(bmp); 2420using Graphics g = Graphics.FromImage(bmp); 2428using Graphics g = Graphics.FromImage(bmp); 2436using Graphics g = Graphics.FromImage(bmp); 2444using Graphics g = Graphics.FromImage(bmp); 2452using Graphics g = Graphics.FromImage(bmp); 2460using Graphics g = Graphics.FromImage(bmp); 2471using Graphics g = Graphics.FromImage(bmp); 2479using Graphics g = Graphics.FromImage(bmp); 2494using Graphics g = Graphics.FromImage(bmp); 2502using Graphics g = Graphics.FromImage(bmp); 2510using Graphics g = Graphics.FromImage(bmp); 2518using Graphics g = Graphics.FromImage(bmp); 2526using Graphics g = Graphics.FromImage(bmp); 2534using Graphics g = Graphics.FromImage(bmp); 2542using Graphics g = Graphics.FromImage(bmp); 2550using Graphics g = Graphics.FromImage(bmp); 2558using Graphics g = Graphics.FromImage(bmp); 2566using Graphics g = Graphics.FromImage(bmp); 2574using Graphics g = Graphics.FromImage(bmp); 2582using Graphics g = Graphics.FromImage(bmp); 2590using Graphics g = Graphics.FromImage(bmp); 2597using Graphics g = Graphics.FromImage(bmp); 2627using Graphics g = Graphics.FromImage(bmp); 2635using Graphics g = Graphics.FromImage(bmp); 2685using Graphics g = Graphics.FromImage(bmp); 2693using Graphics g = Graphics.FromImage(bmp); 2744using Graphics g = Graphics.FromImage(bmp); 2755using Graphics g = Graphics.FromImage(bmp); 2764using Graphics g = Graphics.FromImage(bmp); 2772using Graphics g = Graphics.FromImage(bmp); 2780using Graphics g = Graphics.FromImage(bmp); 2788using Graphics g = Graphics.FromImage(bmp); 2796using Graphics g = Graphics.FromImage(bmp); 2804using Graphics g = Graphics.FromImage(bmp); 2812using Graphics g = Graphics.FromImage(bmp); 2820using Graphics g = Graphics.FromImage(bmp); 2828using Graphics g = Graphics.FromImage(bmp); 2836using Graphics g = Graphics.FromImage(bmp); 2855using Graphics g = Graphics.FromImage(bmp); 2864using Graphics g = Graphics.FromImage(bmp); 2872using Graphics g = Graphics.FromImage(bmp); 2897using Graphics g = Graphics.FromImage(bmp); 2906using Graphics g = Graphics.FromImage(bmp); 2914using Graphics g = Graphics.FromImage(bmp); 2939using Graphics g = Graphics.FromImage(bmp); 2965using (Graphics g = Graphics.FromImage(bmp)) 2972using (Graphics g = Graphics.FromImage(bmp)) 2983using Graphics g = Graphics.FromImage(b);
mono\System.Imaging\MetafileTest.cs (14)
217using Graphics g = Graphics.FromImage(bmp); 234using Graphics g = Graphics.FromImage(bmp); 250using Graphics g = Graphics.FromImage(bmp); 290using (Graphics g = Graphics.FromImage(bmp)) 303using (Graphics g = Graphics.FromImage(mf)) 332using (Graphics g = Graphics.FromImage(bmp)) 345using (Graphics g = Graphics.FromImage(mf))
System\Drawing\BitmapTests.cs (4)
222AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(width, 1, Graphics.FromImage(new Bitmap(1, 1)))); 237AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(1, height, Graphics.FromImage(new Bitmap(1, 1)))); 286using Graphics graphics = Graphics.FromImage(image);
System\Drawing\BufferedGraphicsContextTests.cs (20)
22using Graphics graphics = Graphics.FromImage(image); 34using Graphics graphics = Graphics.FromImage(image); 46using Graphics graphics = Graphics.FromImage(image); 58using Graphics graphics = Graphics.FromImage(image); 80using Graphics graphics = Graphics.FromImage(image); 102using Graphics graphics = Graphics.FromImage(image); 147Graphics graphics = Graphics.FromImage(image); 160using Graphics graphics = Graphics.FromImage(image); 230using Graphics graphics = Graphics.FromImage(image); 242using Graphics graphics = Graphics.FromImage(image);
System\Drawing\BufferedGraphicsTests.cs (14)
13using Graphics targetGraphics = Graphics.FromImage(image); 28using Graphics targetGraphics = Graphics.FromImage(image); 45using Graphics graphics = Graphics.FromImage(image); 65using Graphics graphics = Graphics.FromImage(image); 89using Graphics originalGraphics = Graphics.FromImage(originalImage); 90using Graphics targetGraphics = Graphics.FromImage(targetImage); 110using Graphics graphics = Graphics.FromImage(image);
System\Drawing\Drawing2D\GraphicsPathTests.cs (18)
1755using Graphics graphics = Graphics.FromImage(bitmap); 1763using Graphics graphics = Graphics.FromImage(bitmap); 1771using Graphics graphics = Graphics.FromImage(bitmap); 1781using Graphics graphics = Graphics.FromImage(bitmap); 1790using Graphics graphics = Graphics.FromImage(bitmap); 1811using Graphics graphics = Graphics.FromImage(bitmap); 1825using Graphics graphics = Graphics.FromImage(bitmap); 2245private static void AssertIsOutlineVisibleLine(Graphics graphics) 2273private static void AssertIsOutlineVisibleRectangle(Graphics graphics) 2301private static void AssertIsVisibleRectangle(Graphics graphics) 2322private static void AssertIsVisibleEllipse(Graphics graphics)
System\Drawing\FontFamilyTests.cs (2)
98using var graphics = Graphics.FromImage(image);
System\Drawing\FontTests.cs (22)
468using Graphics graphics = Graphics.FromImage(image); 503using Graphics graphics = Graphics.FromImage(image); 535Graphics graphics = Graphics.FromImage(image); 546using Graphics graphics = Graphics.FromImage(image); 592using Graphics graphics = Graphics.FromImage(image); 617using Graphics graphics = Graphics.FromImage(image); 636using Graphics graphics = Graphics.FromImage(image); 737using Graphics graphics = Graphics.FromImage(image); 765using Graphics graphics = Graphics.FromImage(image); 784Graphics graphics = Graphics.FromImage(image); 841using Graphics graphics = Graphics.FromImage(image);
System\Drawing\GdiPlusHandlesTests.cs (2)
28using Graphics graphicsFromHdc = Graphics.FromHdc(hdc);
System\Drawing\Graphics_DrawBezierTests.cs (26)
13using Graphics graphics = Graphics.FromImage(bitmap); 27using Graphics graphics = Graphics.FromImage(bitmap); 46using Graphics graphics = Graphics.FromImage(bitmap); 64using Graphics graphics = Graphics.FromImage(image); 74using Graphics graphics = Graphics.FromImage(image); 87using Graphics graphics = Graphics.FromImage(image); 107Graphics graphics = Graphics.FromImage(image); 120using Graphics graphics = Graphics.FromImage(image); 129using Graphics graphics = Graphics.FromImage(image); 141using Graphics graphics = Graphics.FromImage(image); 151using Graphics graphics = Graphics.FromImage(image); 161using Graphics graphics = Graphics.FromImage(image); 180Graphics graphics = Graphics.FromImage(image);
System\Drawing\Graphics_DrawLineTests.cs (24)
13using Graphics graphics = Graphics.FromImage(bitmap); 28using Graphics graphics = Graphics.FromImage(bitmap); 42using Graphics graphics = Graphics.FromImage(image); 53using Graphics graphics = Graphics.FromImage(image); 67using Graphics graphics = Graphics.FromImage(image); 88Graphics graphics = Graphics.FromImage(image); 101using Graphics graphics = Graphics.FromImage(image); 110using Graphics graphics = Graphics.FromImage(image); 122using Graphics graphics = Graphics.FromImage(image); 134using Graphics graphics = Graphics.FromImage(image); 144using Graphics graphics = Graphics.FromImage(image); 163Graphics graphics = Graphics.FromImage(image);
System\Drawing\Graphics_GetContextTests.Core.cs (14)
15using Graphics graphics = Graphics.FromImage(image); 28using Graphics graphics = Graphics.FromImage(image); 46using Graphics graphics = Graphics.FromImage(image); 61using Graphics graphics = Graphics.FromImage(image); 80using Graphics graphics = Graphics.FromImage(image); 99using Graphics graphics = Graphics.FromImage(image); 120using Graphics graphics = Graphics.FromImage(image);
System\Drawing\Graphics_GetContextTests.cs (14)
15using Graphics graphics = Graphics.FromImage(image); 32using Graphics graphics = Graphics.FromImage(image); 47using Graphics graphics = Graphics.FromImage(image); 63using Graphics graphics = Graphics.FromImage(image); 81using Graphics graphics = Graphics.FromImage(image); 99using Graphics graphics = Graphics.FromImage(image); 120using Graphics graphics = Graphics.FromImage(image);
System\Drawing\GraphicsTests.Core.cs (28)
17using Graphics graphics = Graphics.FromImage(image); 26using Graphics graphics = Graphics.FromImage(image); 43Graphics graphics = Graphics.FromImage(image); 54using Graphics graphics = Graphics.FromImage(image); 74using Graphics graphics = Graphics.FromImage(image); 84using Graphics graphics = Graphics.FromImage(image); 97using Graphics graphics = Graphics.FromImage(image); 116Graphics graphics = Graphics.FromImage(image); 128using Graphics graphics = Graphics.FromImage(image); 138using Graphics graphics = Graphics.FromImage(image); 151using Graphics graphics = Graphics.FromImage(image); 162using Graphics graphics = Graphics.FromImage(image); 173using Graphics graphics = Graphics.FromImage(image); 192Graphics graphics = Graphics.FromImage(image);
System\Drawing\GraphicsTests.cs (405)
22using Graphics graphics = Graphics.FromImage(bitmap); 28using Graphics graphicsCopy = Graphics.FromHdc(hdc); 41using Graphics graphics1 = Graphics.FromImage(bitmap); 42using Graphics graphics2 = Graphics.FromImage(bitmap); 58using Graphics graphics = Graphics.FromImage(bitmap); 74Graphics graphics = Graphics.FromImage(bitmap); 84using Graphics graphics = Graphics.FromHdc(hdc); 93using Graphics graphics = Graphics.FromHdc(hdc, IntPtr.Zero); 102using Graphics graphics = Graphics.FromHdcInternal(hdc); 110AssertExtensions.Throws<ArgumentNullException>("hdc", () => Graphics.FromHdc(IntPtr.Zero)); 116Assert.Throws<OutOfMemoryException>(() => Graphics.FromHdcInternal(IntPtr.Zero)); 122Assert.Throws<OutOfMemoryException>(() => Graphics.FromHdc(IntPtr.Zero, 10)); 128Assert.Throws<OutOfMemoryException>(() => Graphics.FromHwnd(10)); 129Assert.Throws<OutOfMemoryException>(() => Graphics.FromHwndInternal(10)); 136using Graphics graphics = Graphics.FromImage(bitmap); 157using Graphics graphics = Graphics.FromImage(bitmap); 172using Graphics graphics1 = Graphics.FromImage(bitmap1); 173using Graphics graphics2 = Graphics.FromImage(bitmap2); 189using Graphics graphics = Graphics.FromImage(bitmap); 199Graphics graphics = Graphics.FromImage(bitmap); 217using Graphics graphics = Graphics.FromHwnd(hwnd); 226using Graphics graphics = Graphics.FromHwnd(hwnd); 234Assert.Throws<OutOfMemoryException>(() => Graphics.FromHdc(10)); 235Assert.Throws<OutOfMemoryException>(() => Graphics.FromHdcInternal(10)); 251using Graphics graphics = Graphics.FromImage(image); 258AssertExtensions.Throws<ArgumentNullException>("image", () => Graphics.FromImage(null)); 268Exception exception = AssertExtensions.Throws<ArgumentException, Exception>(() => Graphics.FromImage(image)); 279AssertExtensions.Throws<ArgumentException>(null, () => Graphics.FromImage(image)); 286Assert.Throws<OutOfMemoryException>(() => Graphics.FromImage(image)); 295Assert.Throws<OutOfMemoryException>(() => Graphics.FromImage(image)); 314using Graphics graphics = Graphics.FromImage(image); 316using Graphics targetGraphics = Graphics.FromImage(targetImage); 338using Graphics graphics = Graphics.FromImage(image); 346using Graphics graphics = Graphics.FromImage(image); 363Graphics graphics = Graphics.FromImage(image); 406using Graphics graphics = Graphics.FromImage(image); 422using Graphics graphics = Graphics.FromImage(image); 430using Graphics graphics = Graphics.FromImage(image); 447Graphics graphics = Graphics.FromImage(image); 458var graphics = Graphics.FromImage(bitmap); 470var graphics = Graphics.FromImage(bitmap); 484using Graphics graphics = Graphics.FromImage(image); 500Graphics graphics = Graphics.FromImage(image); 510using Graphics graphics = Graphics.FromImage(image); 526Graphics graphics = Graphics.FromImage(image); 540using Graphics graphics = Graphics.FromImage(image); 555using Graphics graphics = Graphics.FromImage(image); 572Graphics graphics = Graphics.FromImage(image); 591using Graphics graphics = Graphics.FromImage(image); 602using Graphics graphics = Graphics.FromImage(image); 610using Graphics graphics = Graphics.FromImage(image); 618using Graphics graphics = Graphics.FromImage(image); 635Graphics graphics = Graphics.FromImage(image); 649using Graphics graphics = Graphics.FromImage(image); 663using Graphics graphics = Graphics.FromImage(image); 671using Graphics graphics = Graphics.FromImage(image); 688Graphics graphics = Graphics.FromImage(image); 705using Graphics graphics = Graphics.FromImage(image); 716using Graphics graphics = Graphics.FromImage(image); 724using Graphics graphics = Graphics.FromImage(image); 732using Graphics graphics = Graphics.FromImage(image); 749Graphics graphics = Graphics.FromImage(image); 765using Graphics graphics = Graphics.FromImage(image); 776using Graphics graphics = Graphics.FromImage(image); 784using Graphics graphics = Graphics.FromImage(image); 792using Graphics graphics = Graphics.FromImage(image); 809Graphics graphics = Graphics.FromImage(image); 861using Graphics graphics = Graphics.FromImage(image); 874using Graphics graphics = Graphics.FromImage(image); 891Graphics graphics = Graphics.FromImage(image); 907using Graphics graphics = Graphics.FromImage(image); 918using Graphics graphics = Graphics.FromImage(image); 926using Graphics graphics = Graphics.FromImage(image); 934using Graphics graphics = Graphics.FromImage(image); 951Graphics graphics = Graphics.FromImage(image); 965using Graphics graphics = Graphics.FromImage(image); 976using Graphics graphics = Graphics.FromImage(image); 984using Graphics graphics = Graphics.FromImage(image); 1001Graphics graphics = Graphics.FromImage(image); 1018using Graphics graphics = Graphics.FromImage(image); 1029using Graphics graphics = Graphics.FromImage(image); 1037using Graphics graphics = Graphics.FromImage(image); 1054Graphics graphics = Graphics.FromImage(image); 1068using Graphics graphics = Graphics.FromImage(image); 1091using Graphics graphics = Graphics.FromImage(image); 1099using Graphics graphics = Graphics.FromImage(image); 1110using Graphics graphics = Graphics.FromImage(image); 1119using Graphics graphics = Graphics.FromImage(image); 1138Graphics graphics = Graphics.FromImage(image); 1149using Graphics graphics = Graphics.FromImage(image); 1162using Graphics graphics = Graphics.FromImage(image); 1178Graphics graphics = Graphics.FromImage(image); 1188using Graphics graphics = Graphics.FromImage(image); 1205using Graphics graphics = Graphics.FromImage(image); 1220using Graphics graphics = Graphics.FromImage(image); 1244using Graphics graphics = Graphics.FromImage(image); 1256using Graphics graphics = Graphics.FromImage(image); 1265using Graphics graphics = Graphics.FromImage(image); 1284Graphics graphics = Graphics.FromImage(image); 1298using Graphics graphics = Graphics.FromImage(image); 1318using Graphics graphics = Graphics.FromImage(image); 1334using Graphics graphics = Graphics.FromImage(image); 1342using Graphics graphics = Graphics.FromImage(image); 1359Graphics graphics = Graphics.FromImage(image); 1372using Graphics graphics = Graphics.FromImage(image); 1390using Graphics graphics = Graphics.FromImage(image); 1404using Graphics graphics = Graphics.FromImage(image); 1415using Graphics graphics = Graphics.FromImage(image); 1423using Graphics graphics = Graphics.FromImage(image); 1440Graphics graphics = Graphics.FromImage(image); 1455using Graphics graphics = Graphics.FromImage(image); 1475using Graphics graphics = Graphics.FromImage(image); 1491using Graphics graphics = Graphics.FromImage(image); 1499using Graphics graphics = Graphics.FromImage(image); 1516Graphics graphics = Graphics.FromImage(image); 1539using Graphics graphics = Graphics.FromImage(image); 1556using Graphics graphics = Graphics.FromImage(image); 1608using Graphics graphics = Graphics.FromImage(image); 1619using Graphics graphics = Graphics.FromImage(image); 1647using Graphics graphics = Graphics.FromImage(image); 1655using Graphics graphics = Graphics.FromImage(image); 1675Graphics graphics = Graphics.FromImage(image); 1740using Graphics graphics = Graphics.FromImage(image); 1805using Graphics graphics = Graphics.FromImage(image); 1821using Graphics graphics = Graphics.FromImage(image); 1837using Graphics graphics = Graphics.FromImage(image); 1852using Graphics graphics = Graphics.FromImage(image); 1863using Graphics graphics = Graphics.FromImage(image); 1872using Graphics graphics = Graphics.FromImage(image); 1881using Graphics graphics = Graphics.FromImage(image); 1890using Graphics graphics = Graphics.FromImage(image); 1907Graphics graphics = Graphics.FromImage(image); 1925using Graphics graphics = Graphics.FromImage(image); 1933using Graphics graphics = Graphics.FromImage(image); 1949Graphics graphics = Graphics.FromImage(image); 1959using Graphics graphics = Graphics.FromImage(image); 1970using Graphics graphics = Graphics.FromImage(image); 1984using Graphics graphics = Graphics.FromImage(image); 1996using Graphics graphics = Graphics.FromImage(image); 2008using Graphics graphics = Graphics.FromImage(image); 2029Graphics graphics = Graphics.FromImage(image); 2042using Graphics graphics = Graphics.FromImage(image); 2052using Graphics graphics = Graphics.FromImage(image); 2065using Graphics graphics = Graphics.FromImage(image); 2085Graphics graphics = Graphics.FromImage(image); 2097using Graphics graphics = Graphics.FromImage(image); 2106using Graphics graphics = Graphics.FromImage(image); 2118using Graphics graphics = Graphics.FromImage(image); 2128using Graphics graphics = Graphics.FromImage(image); 2138using Graphics graphics = Graphics.FromImage(image); 2157Graphics graphics = Graphics.FromImage(image); 2168using Graphics graphics = Graphics.FromImage(image); 2179using Graphics graphics = Graphics.FromImage(image); 2193using Graphics graphics = Graphics.FromImage(image); 2214Graphics graphics = Graphics.FromImage(image); 2227using Graphics graphics = Graphics.FromImage(image); 2238using Graphics graphics = Graphics.FromImage(image); 2252using Graphics graphics = Graphics.FromImage(image); 2264using Graphics graphics = Graphics.FromImage(image); 2276using Graphics graphics = Graphics.FromImage(image); 2297Graphics graphics = Graphics.FromImage(image); 2310using Graphics graphics = Graphics.FromImage(image); 2319using Graphics graphics = Graphics.FromImage(image); 2331using Graphics graphics = Graphics.FromImage(image); 2343using Graphics graphics = Graphics.FromImage(image); 2353using Graphics graphics = Graphics.FromImage(image); 2372Graphics graphics = Graphics.FromImage(image); 2383using Graphics graphics = Graphics.FromImage(image); 2392using Graphics graphics = Graphics.FromImage(image); 2404using Graphics graphics = Graphics.FromImage(image); 2413using Graphics graphics = Graphics.FromImage(image); 2425using Graphics graphics = Graphics.FromImage(image); 2445Graphics graphics = Graphics.FromImage(image); 2455using Graphics graphics = Graphics.FromImage(image); 2469using Graphics graphics = Graphics.FromImage(image); 2486using Graphics graphics = Graphics.FromImage(image); 2503using Graphics graphics = Graphics.FromImage(image); 2523using Graphics graphics = Graphics.FromImage(image); 2534using Graphics graphics = Graphics.FromImage(image); 2558Graphics graphics = Graphics.FromImage(image); 2574using Graphics graphics = Graphics.FromImage(image); 2585using Graphics graphics = Graphics.FromImage(image); 2599using Graphics graphics = Graphics.FromImage(image); 2614using Graphics graphics = Graphics.FromImage(image); 2626using Graphics graphics = Graphics.FromImage(image); 2647Graphics graphics = Graphics.FromImage(image); 2660using Graphics graphics = Graphics.FromImage(image); 2670using Graphics graphics = Graphics.FromImage(image); 2683using Graphics graphics = Graphics.FromImage(image); 2694using Graphics graphics = Graphics.FromImage(image); 2705using Graphics graphics = Graphics.FromImage(image); 2725Graphics graphics = Graphics.FromImage(image); 2739using Graphics graphics = Graphics.FromImage(image); 2755using Graphics graphics = Graphics.FromImage(image); 2773Graphics graphics = Graphics.FromImage(image); 2783using Graphics graphics = Graphics.FromImage(image); 2792using Graphics graphics = Graphics.FromImage(image); 2799private static void VerifyGraphics(Graphics graphics, RectangleF expectedVisibleClipBounds) 2826using Graphics graphics = Graphics.FromImage(bitmap); 2835using Graphics graphics = Graphics.FromImage(bitmap); 2846using Graphics graphics = Graphics.FromImage(bitmap); 2856using Graphics graphics = Graphics.FromImage(bitmap); 2867using Graphics graphics = Graphics.FromImage(bitmap); 2884using Graphics graphics = Graphics.FromImage(bitmap); 2888using Graphics graphics2 = Graphics.FromImage(bitmap2); 2934using Graphics graphics = Graphics.FromImage(bitmap); 2943using Graphics graphics = Graphics.FromImage(bitmap); 2952using Graphics graphics = Graphics.FromImage(bitmap); 2961using Graphics graphics = Graphics.FromImage(bitmap);
System\Drawing\Imaging\CachedBitmapTests.cs (2)
13using var graphics = Graphics.FromImage(bitmap);
System\Drawing\Imaging\Effects\EffectsTests.cs (2)
12using var graphics = Graphics.FromImage(bitmap);
System\Drawing\Imaging\ImageAttributesTests.cs (90)
71using var graphics = Graphics.FromImage(bitmap); 95using var graphics = Graphics.FromImage(bitmap); 129using var graphicsSmallBitmap = Graphics.FromImage(bitmapSmall); 130using var graphicsBigBitmap = Graphics.FromImage(bitmapBig); 148using var graphics = Graphics.FromImage(bitmap); 174using var graphics = Graphics.FromImage(bitmap); 205using var graphics = Graphics.FromImage(bitmap); 274using var graphics = Graphics.FromImage(bitmap); 301using var graphics = Graphics.FromImage(bitmap); 343using var graphics = Graphics.FromImage(bitmap); 366using var graphics = Graphics.FromImage(bitmap); 393using var graphics = Graphics.FromImage(bitmap); 422using var graphics = Graphics.FromImage(bitmap); 483using var graphics = Graphics.FromImage(bitmap); 496using var graphics = Graphics.FromImage(bitmap); 509using var graphics = Graphics.FromImage(bitmap); 538using var graphics = Graphics.FromImage(bitmap); 552using var graphics = Graphics.FromImage(bitmap); 582using var graphics = Graphics.FromImage(bitmap); 595using var graphics = Graphics.FromImage(bitmap); 608using var graphics = Graphics.FromImage(bitmap); 639using var graphics = Graphics.FromImage(bitmap); 670using var graphics = Graphics.FromImage(bitmap); 685using var graphics = Graphics.FromImage(bitmap); 718using var graphics = Graphics.FromImage(bitmap); 735using var graphics = Graphics.FromImage(bitmap); 752using var graphics = Graphics.FromImage(bitmap); 786using var graphics = Graphics.FromImage(bitmap); 801using var graphics = Graphics.FromImage(bitmap); 816using var graphics = Graphics.FromImage(bitmap); 849using var graphics = Graphics.FromImage(bitmap); 864using var graphics = Graphics.FromImage(bitmap); 905using var graphics = Graphics.FromImage(bitmap); 931using var graphics = Graphics.FromImage(bitmap); 961using var graphics = Graphics.FromImage(bitmap); 1010using var graphics = Graphics.FromImage(bitmap); 1025using var graphics = Graphics.FromImage(bitmap); 1057using var graphics = Graphics.FromImage(bitmap); 1123using var graphics = Graphics.FromImage(bitmap); 1139using var graphics = Graphics.FromImage(bitmap); 1172using var graphics = Graphics.FromImage(bitmap); 1185using var graphics = Graphics.FromImage(bitmap); 1198using var graphics = Graphics.FromImage(bitmap); 1249using var graphics = Graphics.FromImage(bitmap); 1263using var graphics = Graphics.FromImage(bitmap);
System\Drawing\Imaging\MetafileTests.cs (86)
123using Graphics g = Graphics.FromImage(bmp); 142using Graphics g = Graphics.FromImage(bmp); 169using Graphics g = Graphics.FromImage(bmp); 185using Graphics g = Graphics.FromImage(bmp); 205using Graphics g = Graphics.FromImage(bmp); 215using Graphics g = Graphics.FromImage(bmp); 226using Graphics g = Graphics.FromImage(bmp); 235using Graphics g = Graphics.FromImage(bmp); 245using Graphics g = Graphics.FromImage(bmp); 255using Graphics g = Graphics.FromImage(bmp); 266using Graphics g = Graphics.FromImage(bmp); 302using Graphics g = Graphics.FromImage(bmp); 320using Graphics g = Graphics.FromImage(bmp); 338using (Graphics g = Graphics.FromImage(bmp)) 354using (Graphics g = Graphics.FromImage(bmp)) 371using (Graphics g = Graphics.FromImage(bmp)) 398using Graphics g = Graphics.FromImage(bmp); 409using Graphics g = Graphics.FromImage(bmp); 422using Graphics g = Graphics.FromImage(bmp); 434using Graphics g = Graphics.FromImage(bmp); 447using (Graphics g = Graphics.FromImage(bmp)) 463using (Graphics g = Graphics.FromImage(bmp)) 479using (Graphics g = Graphics.FromImage(bmp)) 496using (Graphics g = Graphics.FromImage(bmp)) 514using (Graphics g = Graphics.FromImage(bmp)) 531using (Graphics g = Graphics.FromImage(bmp)) 547using (Graphics g = Graphics.FromImage(bmp)) 563using (Graphics g = Graphics.FromImage(bmp)) 580using (Graphics g = Graphics.FromImage(bmp)) 598using (Graphics g = Graphics.FromImage(bmp)) 636using Graphics g = Graphics.FromImage(bmp); 658using Graphics g = Graphics.FromImage(bmp); 676using Graphics g = Graphics.FromImage(bmp); 693using Graphics g = Graphics.FromImage(bmp); 709using Graphics g = Graphics.FromImage(bmp); 725using Graphics g = Graphics.FromImage(bmp); 736using Graphics g = Graphics.FromImage(bmp); 747using Graphics g = Graphics.FromImage(bmp); 759using Graphics g = Graphics.FromImage(bmp); 772using Graphics g = Graphics.FromImage(bmp); 798using Graphics g = Graphics.FromImage(bmp); 813using Graphics g = Graphics.FromImage(bmp); 825using Graphics g = Graphics.FromImage(bmp);
System\Drawing\Printing\PrintDocumentTests.cs (2)
279public override Graphics OnStartPage(PrintDocument document, PrintPageEventArgs e) 282return Graphics.FromImage(bitmap);
System\Drawing\Printing\PrinterSettingsTests.cs (4)
457using Graphics graphic = printerSettings.CreateMeasurementGraphics(); 469using Graphics graphic = printerSettings.CreateMeasurementGraphics(true); 480using Graphics graphic = printerSettings.CreateMeasurementGraphics(pageSettings); 493using Graphics graphic = printerSettings.CreateMeasurementGraphics(pageSettings, true);
System\Drawing\RegionTests.cs (14)
32private static readonly Graphics s_graphic = Graphics.FromImage(new Bitmap(1, 1)); 478using Graphics graphics = Graphics.FromImage(new Bitmap(600, 800)); 608var graphics = Graphics.FromImage(image); 989var graphics = Graphics.FromImage(image); 1290var graphics = Graphics.FromImage(image); 1330var disposedGraphics = Graphics.FromImage(image); 1384var disposedGraphics = Graphics.FromImage(image);
System\Drawing\TextureBrushTests.cs (2)
813using Graphics targetGraphics = Graphics.FromImage(targetImage);
System.Windows.Forms (549)
System\Drawing\Design\PaintValueEventArgs.cs (4)
19/// <param name="graphics">The <see cref="Drawing.Graphics"/> object with which drawing should be done.</param> 21public PaintValueEventArgs(ITypeDescriptorContext? context, object? value, Graphics graphics, Rectangle bounds) 40/// <see cref="Drawing.Graphics"/> object with which painting should be done. 42public Graphics Graphics { get; }
System\Drawing\Design\UITypeEditor.cs (1)
128public void PaintValue(object? value, Graphics canvas, Rectangle rectangle)
System\Windows\Forms\Control.cs (10)
2259using Graphics g = CreateGraphics(); 4449public Graphics CreateGraphics() 4455internal Graphics CreateGraphicsInternal() 4457return Graphics.FromHwndInternal(Handle); 4879using Graphics g = Graphics.FromImage(image); 4890using Graphics destGraphics = Graphics.FromImage(bitmap); 5776using Graphics graphics = CreateGraphicsInternal(); 8172Graphics g = e.GraphicsInternal;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (9)
86/// Get <see cref="StringFormat"/> object for rendering text using GDI+ (<see cref="Graphics"/>). 97internal static void DrawDitheredFill(Graphics g, Color color1, Color color2, Rectangle bounds) 339Graphics g = e.GraphicsInternal; 366private void DrawFocus(Graphics g, Rectangle r) 374internal virtual void DrawImageCore(Graphics graphics, Image image, Rectangle imageBounds, Point imageStart, LayoutData layout) 434Graphics? graphics = deviceContext.TryGetGraphics(create: true); 458Graphics g = e.GraphicsInternal; 648internal static ColorOptions PaintFlatRender(Graphics g, Color foreColor, Color backColor, bool enabled) => 653internal static ColorOptions PaintPopupRender(Graphics g, Color foreColor, Color backColor, bool enabled) =>
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonPopupAdapter.cs (1)
88Graphics g = e.GraphicsInternal;
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (4)
152Graphics g, 201internal static Rectangle DrawPopupBorder(Graphics g, Rectangle r, ColorData colors) 310using (Graphics offscreen = Graphics.FromImage(bitmap))
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (1)
32Graphics g = e.GraphicsInternal;
System\Windows\Forms\Controls\Buttons\ButtonRenderer.cs (18)
53public static void DrawParentBackground(Graphics g, Rectangle bounds, Control childControl) 65/// <inheritdoc cref="DrawButton(Graphics, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, PushButtonState)"/> 66public static void DrawButton(Graphics g, Rectangle bounds, PushButtonState state) => 78Graphics? graphics = deviceContext.TryGetGraphics(create: true); 105Graphics? graphics = deviceContext.TryGetGraphics(create: true); 116Graphics? graphics = deviceContext.TryGetGraphics(create: true); 124/// <inheritdoc cref="DrawButton(Graphics, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, PushButtonState)"/> 125public static void DrawButton(Graphics g, Rectangle bounds, bool focused, PushButtonState state) => 128/// <inheritdoc cref="DrawButton(Graphics, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, PushButtonState)"/> 129public static void DrawButton(Graphics g, Rectangle bounds, string? buttonText, Font? font, bool focused, PushButtonState state) 141/// <inheritdoc cref="DrawButton(Graphics, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, PushButtonState)"/> 142public static void DrawButton(Graphics g, Rectangle bounds, string? buttonText, Font? font, TextFormatFlags flags, bool focused, PushButtonState state) 170/// <inheritdoc cref="DrawButton(Graphics, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, PushButtonState)"/> 172public static void DrawButton(Graphics g, Rectangle bounds, Image image, Rectangle imageBounds, bool focused, PushButtonState state) 197/// <inheritdoc cref="DrawButton(Graphics, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, PushButtonState)"/> 199Graphics g, 221Graphics g, 246Graphics? graphics = deviceContext.TryGetGraphics(create: true);
System\Windows\Forms\Controls\Buttons\CheckBoxRenderer.cs (13)
38/// <inheritdoc cref="ButtonRenderer.DrawParentBackground(Graphics, Rectangle, Control)"/> 39public static void DrawParentBackground(Graphics g, Rectangle bounds, Control childControl) 49/// <inheritdoc cref="DrawCheckBox(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, CheckBoxState)"/> 50public static void DrawCheckBox(Graphics g, Point glyphLocation, CheckBoxState state) 83/// <inheritdoc cref="DrawCheckBox(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, CheckBoxState)"/> 85Graphics g, 101/// <inheritdoc cref="DrawCheckBox(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, CheckBoxState)"/> 103Graphics g, 113Graphics g, 155/// <inheritdoc cref="DrawCheckBox(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, CheckBoxState)"/> 157Graphics g, 181Graphics g, 230public static Size GetGlyphSize(Graphics g, CheckBoxState state) => GetGlyphSize((IDeviceContext)g, state);
System\Windows\Forms\Controls\Buttons\RadioButtonRenderer.cs (15)
39/// <inheritdoc cref="ButtonRenderer.DrawParentBackground(Graphics, Rectangle, Control)"/> 40public static void DrawParentBackground(Graphics g, Rectangle bounds, Control childControl) 49/// <inheritdoc cref="DrawRadioButton(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, RadioButtonState)" /> 50public static void DrawRadioButton(Graphics g, Point glyphLocation, RadioButtonState state) => 65Graphics graphics, 87/// <inheritdoc cref="DrawRadioButton(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, RadioButtonState)" /> 89Graphics g, 102/// <inheritdoc cref="DrawRadioButton(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, RadioButtonState)" /> 104Graphics g, 117Graphics g, 155/// <inheritdoc cref="DrawRadioButton(Graphics, Point, Rectangle, string?, Font?, TextFormatFlags, Image, Rectangle, bool, RadioButtonState)" /> 157Graphics g, 181Graphics g, 204Graphics g, 251public static Size GetGlyphSize(Graphics g, RadioButtonState state)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (6)
3394using Graphics graphics = CreateGraphicsInternal(); 3608using Graphics graphics = CreateGraphicsInternal(); 3766using Graphics g = Graphics.FromHdcInternal((IntPtr)dc); 3792using Graphics g = Graphics.FromHdcInternal((HDC)m.WParamInternal);
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (3)
67public virtual void DrawPopUpCombo(ComboBox comboBox, Graphics g) 112public virtual void DrawFlatCombo(ComboBox comboBox, Graphics g) 161protected virtual void DrawFlatComboDropDown(ComboBox comboBox, Graphics g, Rectangle dropDownRect)
System\Windows\Forms\Controls\ComboBox\ComboBoxRenderer.cs (7)
26private static void DrawBackground(Graphics g, Rectangle bounds, ComboBoxState state) 48public static void DrawTextBox(Graphics g, Rectangle bounds, ComboBoxState state) 58public static void DrawTextBox(Graphics g, Rectangle bounds, string? comboBoxText, Font? font, ComboBoxState state) 66public static void DrawTextBox(Graphics g, Rectangle bounds, string? comboBoxText, Font? font, Rectangle textBounds, ComboBoxState state) 74public static void DrawTextBox(Graphics g, Rectangle bounds, string? comboBoxText, Font? font, TextFormatFlags flags, ComboBoxState state) 86public static void DrawTextBox(Graphics g, Rectangle bounds, string? comboBoxText, Font? font, Rectangle textBounds, TextFormatFlags flags, ComboBoxState state) 98public static void DrawDropDownButton(Graphics g, Rectangle bounds, ComboBoxState state)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (9)
5438using (Graphics graphics = CreateGraphicsInternal()) 5632private void DrawColHeaderShadow(Graphics g, int mouseX) 16667Graphics g = e.GraphicsInternal; 19191protected virtual void PaintBackground(Graphics graphics, Rectangle clipBounds, Rectangle gridBounds) 19262private void PaintBorder(Graphics g, Rectangle clipRect, Rectangle bounds) 19323private void PaintColumnHeaders(Graphics g, Rectangle clipBounds, bool singleBorderAdded) 19475Graphics g, 19539private void PaintRows(Graphics g, 19661private void PaintTopLeftHeaderCell(Graphics g)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (6)
149protected override Rectangle GetContentBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 217protected override Rectangle GetErrorIconBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 280Graphics graphics, 411private static Rectangle GetThemeMargins(Graphics g) 600Graphics graphics, 639Graphics g,
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.DataGridViewButtonCellRenderer.cs (1)
25public static void DrawButton(Graphics g, Rectangle bounds, int buttonState)
System\Windows\Forms\Controls\DataGridView\DataGridViewCell.cs (18)
1476protected virtual Rectangle GetContentBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) => Rectangle.Empty; 1537protected virtual Rectangle GetErrorIconBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) => Rectangle.Empty; 2306Graphics graphics, 2312Graphics g, 2520Graphics graphics, 2534Graphics graphics, 2559Graphics graphics, 2605Graphics graphics, 2625Graphics graphics, 3067Graphics graphics, 3082Graphics graphics, 3119Graphics graphics, 3524Graphics graphics, 3544private static void PaintErrorIcon(Graphics graphics, Rectangle iconBounds) 3557Graphics graphics, 3589Graphics graphics, 3629internal void PaintWork(Graphics graphics, 3954internal static bool TextFitsInBounds(Graphics graphics, string text, Font font, Size maxBounds, TextFormatFlags flags)
System\Windows\Forms\Controls\DataGridView\DataGridViewCellPaintingEventArgs.cs (3)
15Graphics graphics, 54public Graphics? Graphics { get; private set; } 172Graphics graphics,
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (7)
444protected override Rectangle GetContentBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 506protected override Rectangle GetErrorIconBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 636Graphics graphics, 992Graphics graphics, 1031Graphics g, 1351using (Graphics offscreen = Graphics.FromImage(bitmap))
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.DataGridViewCheckBoxCellRenderer.cs (1)
25public static void DrawCheckBox(Graphics g, Rectangle bounds, int state)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (6)
211protected override Rectangle GetContentBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 477Graphics graphics, 712Graphics graphics, 744Graphics g, 837Graphics gFlip = Graphics.FromImage(bmFlipXPThemes);
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.DataGridViewColumnHeaderCellRenderer.cs (1)
25public static void DrawHeader(Graphics g, Rectangle bounds, int headerState)
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.cs (6)
728protected override Rectangle GetContentBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 823private int GetDropDownButtonHeight(Graphics graphics, DataGridViewCellStyle cellStyle) 834protected override Rectangle GetErrorIconBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 1163Graphics graphics, 1817Graphics graphics, 1860Graphics g,
System\Windows\Forms\Controls\DataGridView\DataGridViewComboBoxCell.DataGridViewComboBoxCellRenderer.cs (5)
30public static void DrawTextBox(Graphics g, Rectangle bounds, ComboBoxState state) 35public static void DrawDropDownButton(Graphics g, Rectangle bounds, ComboBoxState state) 41public static void DrawBorder(Graphics g, Rectangle bounds) 55public static void DrawDropDownButton(Graphics g, Rectangle bounds, ComboBoxState state, bool rightToLeft) 69public static void DrawReadOnlyButton(Graphics g, Rectangle bounds, ComboBoxState state)
System\Windows\Forms\Controls\DataGridView\DataGridViewHeaderCell.cs (2)
381internal static Rectangle GetThemeMargins(Graphics g) 515Graphics graphics,
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (5)
225protected override Rectangle GetContentBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 287protected override Rectangle GetErrorIconBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 396Graphics graphics, 678Graphics graphics, 717Graphics g,
System\Windows\Forms\Controls\DataGridView\DataGridViewLinkCell.cs (5)
420protected override Rectangle GetContentBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 490protected override Rectangle GetErrorIconBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 537Graphics graphics, 836Graphics graphics, 875Graphics g,
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (4)
1171Graphics graphics, 1406Graphics graphics, 1482Graphics graphics, 1675Graphics graphics,
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (8)
183protected override Rectangle GetContentBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 242protected override Rectangle GetErrorIconBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 507Graphics graphics, 574Graphics graphics, 613Graphics graphics, 699using Graphics gFlip = Graphics.FromImage(bmFlipXPThemes); 1018Graphics g,
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.DataGridViewRowHeaderCellRenderer.cs (1)
25public static void DrawHeader(Graphics g, Rectangle bounds, int headerState)
System\Windows\Forms\Controls\DataGridView\DataGridViewRowPostPaintEventArgs.cs (3)
14Graphics graphics, 44public Graphics Graphics { get; private set; } 169Graphics graphics,
System\Windows\Forms\Controls\DataGridView\DataGridViewRowPrePaintEventArgs.cs (3)
16Graphics graphics, 47public Graphics Graphics { get; private set; } 186Graphics graphics,
System\Windows\Forms\Controls\DataGridView\DataGridViewTextBoxCell.cs (5)
256protected override Rectangle GetContentBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 326protected override Rectangle GetErrorIconBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 389Graphics graphics, 599Graphics graphics, 638Graphics graphics,
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.cs (6)
26protected override Rectangle GetContentBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 83protected override Rectangle GetErrorIconBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 134protected override Size GetPreferredSize(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex, Size constraintSize) 166Graphics graphics, 205Graphics graphics, 357Graphics graphics,
System\Windows\Forms\Controls\DataGridView\DataGridViewTopLeftHeaderCell.DataGridViewTopLeftHeaderCellRenderer.cs (1)
25public static void DrawHeader(Graphics g, Rectangle bounds, int headerState)
System\Windows\Forms\Controls\DataGridView\DataGridViewUtilities.cs (1)
151Graphics graphics,
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (4)
472Graphics graphics = e.GraphicsInternal; 560Graphics graphics = e.GraphicsInternal; 668using Graphics graphics = Graphics.FromHdcInternal((HDC)m.WParamInternal);
System\Windows\Forms\Controls\GroupBox\GroupBoxRenderer.cs (8)
50public static void DrawParentBackground(Graphics g, Rectangle bounds, Control childControl) 62public static void DrawGroupBox(Graphics g, Rectangle bounds, GroupBoxState state) 77public static void DrawGroupBox(Graphics g, Rectangle bounds, string? groupBoxText, Font? font, GroupBoxState state) 84Graphics g, 96Graphics g, 126Graphics g, 157private static void DrawThemedGroupBoxNoText(Graphics g, Rectangle bounds, GroupBoxState state) 246private static void DrawUnthemedGroupBoxNoText(Graphics g, Rectangle bounds)
System\Windows\Forms\Controls\ImageList\ImageList.cs (5)
510public void Draw(Graphics g, Point pt, int index) => Draw(g, pt.X, pt.Y, index); 516public void Draw(Graphics g, int x, int y, int index) => Draw(g, x, y, _imageSize.Width, _imageSize.Height, index); 523public void Draw(Graphics g, int x, int y, int width, int height, int index) 661Graphics graphics = Graphics.FromImage(result);
System\Windows\Forms\Controls\Labels\Label.cs (3)
982protected void DrawImage(Graphics g, Image image, Rectangle r, ContentAlignment align) 985private void DrawImageInternal(Graphics g, Image image, Rectangle r, ContentAlignment align) 1356using Graphics g = hDC.CreateGraphics();
System\Windows\Forms\Controls\Labels\LinkLabel.cs (5)
509private Region? EnsureRun(Graphics g) 672using Graphics g = CreateGraphicsInternal(); 970Graphics g = e.GraphicsInternal; 1233Graphics g = e.GraphicsInternal; 1375private void PaintLinkBackground(Graphics g)
System\Windows\Forms\Controls\Labels\LinkLabel.Link.LinkAccessibleObject.cs (2)
37using Graphics graphics = Graphics.FromHwnd(_owningLink.Owner.Handle);
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (5)
1953using Graphics graphics = CreateGraphicsInternal(); 2280using (Graphics graphics = CreateGraphicsInternal()) 2326using Graphics g = Graphics.FromHdc((HDC)m.WParamInternal); 2381using Graphics graphics = CreateGraphicsInternal();
System\Windows\Forms\Controls\ListView\DrawListViewColumnHeaderEventArgs.cs (2)
19Graphics graphics, 41public Graphics Graphics { get; }
System\Windows\Forms\Controls\ListView\DrawListViewItemEventArgs.cs (2)
17Graphics graphics, 33public Graphics Graphics { get; }
System\Windows\Forms\Controls\ListView\DrawListViewSubItemEventArgs.cs (2)
17Graphics graphics, 49public Graphics Graphics { get; }
System\Windows\Forms\Controls\ListView\ListView.cs (6)
2634using Graphics g = nmcd->nmcd.hdc.CreateGraphics(); 2698using Graphics g = nmcd->nmcd.hdc.CreateGraphics(); 5469using Graphics g = CreateGraphicsInternal(); 5990using Graphics g = nmcd->hdc.CreateGraphics(); 6894using Graphics g = Graphics.FromHdc((HDC)m.WParamInternal);
System\Windows\Forms\Controls\ProgressBar\ProgressBarRenderer.cs (4)
27public static void DrawHorizontalBar(Graphics g, Rectangle bounds) 37public static void DrawVerticalBar(Graphics g, Rectangle bounds) 47public static void DrawHorizontalChunks(Graphics g, Rectangle bounds) 57public static void DrawVerticalChunks(Graphics g, Rectangle bounds)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.MeasureTextHelper.cs (4)
15public static SizeF MeasureText(PropertyGrid owner, Graphics g, string? text, Font font) 18public static SizeF MeasureText(PropertyGrid owner, Graphics g, string? text, Font font, int width) 21public static SizeF MeasureTextSimple(PropertyGrid owner, Graphics g, string? text, Font font, SizeF size) 31public static SizeF MeasureText(PropertyGrid owner, Graphics g, string? text, Font font, SizeF size)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\CategoryGridEntry.cs (2)
105Graphics g, 142Graphics g,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (1)
87internal override void DrawImageCore(Graphics graphics, Image image, Rectangle imageBounds, Point imageStart, LayoutData layout)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (11)
1187protected int GetLabelTextWidth(string? text, Graphics graphics, Font font) 1210public int GetValueTextWidth(string text, Graphics graphics, Font font) 1502/// Paints the label portion of this <see cref="GridEntry"/> into the given <see cref="Graphics"/> object. 1511Graphics g, 1628/// the given <see cref="Graphics"/> object. 1630private void PaintOutlineGlyph(Graphics g, Rectangle r) 1664void PaintOutlineWithExplorerTreeStyle(Graphics g, Rectangle r, HWND hwnd) 1705Graphics graphics, 1729void PaintOutlineWithClassicStyle(Graphics g, Rectangle r) 1781/// Paints the value portion of this <see cref="GridEntry"/> into the given <see cref="Graphics"/> object. 1789Graphics g,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
299using (Graphics g = CreateGraphics())
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (1)
89using Graphics g = _descriptionLabel.CreateGraphicsInternal();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyDescriptorGridEntry.cs (1)
501Graphics g,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (9)
675private static void AdjustOrigin(Graphics g, Point newOrigin, ref Rectangle r) 1069private int GetEntryLabelLength(Graphics g, GridEntry gridEntry) 1076private bool IsEntryLabelLong(Graphics g, GridEntry gridEntry) 1088Graphics g, 1148private void DrawValue(Graphics g, int row, Rectangle clipRect) 2212using Graphics g = CreateGraphicsInternal(); 2364using Graphics g = CreateGraphicsInternal(); 3255Graphics g = e.Graphics; 4114private static void ResetOrigin(Graphics g) => g.ResetTransform();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (4)
208private Bitmap GetSizeGripGlyph(Graphics g) 222using (Graphics glyphGraphics = Graphics.FromImage(_sizeGripGlyph)) 612using (Graphics g = _gridView.CreateGraphics())
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (1)
169using Graphics graphics = CreateGraphics();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridToolStripButton.cs (2)
24private void DrawDashedBorer(Graphics graphics) 43private void DrawHightContrastDashedBorer(Graphics graphics)
System\Windows\Forms\Controls\TabControl\TabRenderer.cs (9)
27public static void DrawTabItem(Graphics g, Rectangle bounds, TabItemState state) 37public static void DrawTabItem(Graphics g, Rectangle bounds, bool focused, TabItemState state) 54public static void DrawTabItem(Graphics g, Rectangle bounds, string? tabItemText, Font? font, TabItemState state) 62public static void DrawTabItem(Graphics g, Rectangle bounds, string? tabItemText, Font? font, bool focused, TabItemState state) 72public static void DrawTabItem(Graphics g, Rectangle bounds, string? tabItemText, Font? font, TextFormatFlags flags, bool focused, TabItemState state) 91public static void DrawTabItem(Graphics g, Rectangle bounds, Image image, Rectangle imageRectangle, bool focused, TabItemState state) 111public static void DrawTabItem(Graphics g, Rectangle bounds, string? tabItemText, Font? font, Image image, Rectangle imageRectangle, bool focused, TabItemState state) 121public static void DrawTabItem(Graphics g, Rectangle bounds, string? tabItemText, Font? font, TextFormatFlags flags, Image image, Rectangle imageRectangle, bool focused, TabItemState state) 142public static void DrawTabPage(Graphics g, Rectangle bounds)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (2)
2909using Graphics g = Graphics.FromHdc((HDC)m.WParamInternal);
System\Windows\Forms\Controls\TextBox\TextBox.cs (2)
825using Graphics g = Graphics.FromHdc((HDC)m.WParamInternal);
System\Windows\Forms\Controls\TextBox\TextBoxRenderer.cs (6)
25private static void DrawBackground(Graphics g, Rectangle bounds, TextBoxState state) 42public static void DrawTextBox(Graphics g, Rectangle bounds, TextBoxState state) 51public static void DrawTextBox(Graphics g, Rectangle bounds, string? textBoxText, Font? font, TextBoxState state) 59public static void DrawTextBox(Graphics g, Rectangle bounds, string? textBoxText, Font? font, Rectangle textBounds, TextBoxState state) 67public static void DrawTextBox(Graphics g, Rectangle bounds, string? textBoxText, Font? font, TextFormatFlags flags, TextBoxState state) 78public static void DrawTextBox(Graphics g, Rectangle bounds, string? textBoxText, Font? font, Rectangle textBounds, TextFormatFlags flags, TextBoxState state)
System\Windows\Forms\Controls\ToolStrips\ProfessionalColorTable.cs (2)
287private static Color GetAlphaBlendedColor(Graphics g, Color src, Color dest, int alpha) 305private static Color GetAlphaBlendedColorHighRes(Graphics? graphics, Color src, Color dest, int alpha)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (6)
2655using Graphics g = Graphics.FromImage(image); 3450Graphics toolstripGraphics = e.GraphicsInternal; 3496Graphics itemGraphics = itemHDC.CreateGraphics(); 3639Graphics g = e.GraphicsInternal; 3777internal void PaintInsertionMark(Graphics g)
System\Windows\Forms\Controls\ToolStrips\ToolStripArrowRenderEventArgs.cs (2)
14Graphics g, 43public Graphics Graphics { get; }
System\Windows\Forms\Controls\ToolStrips\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapter.cs (1)
68protected override void DrawFlatComboDropDown(ComboBox comboBox, Graphics g, Rectangle dropDownRect)
System\Windows\Forms\Controls\ToolStrips\ToolStripContentPanelRenderEventArgs.cs (2)
13public ToolStripContentPanelRenderEventArgs(Graphics g, ToolStripContentPanel contentPanel) 22public Graphics Graphics { get; }
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (1)
182Graphics g = e.Graphics;
System\Windows\Forms\Controls\ToolStrips\ToolStripGripRenderEventArgs.cs (1)
13public ToolStripGripRenderEventArgs(Graphics g, ToolStrip toolStrip)
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (11)
56Graphics g = e.Graphics; 136Graphics g = e.Graphics; 186Graphics g = e.Graphics; 204Graphics g = e.Graphics; 259Graphics g = e.Graphics; 288Graphics g = e.Graphics; 349Graphics g = e.Graphics; 409Graphics g = e.Graphics; 441Graphics g = e.Graphics; 462private static void DrawHightContrastDashedBorder(Graphics graphics, ToolStripItem item) 507Graphics g = e.Graphics;
System\Windows\Forms\Controls\ToolStrips\ToolStripItemImageRenderEventArgs.cs (2)
11public ToolStripItemImageRenderEventArgs(Graphics g, ToolStripItem item, Rectangle imageRectangle) 22Graphics g,
System\Windows\Forms\Controls\ToolStrips\ToolStripItemRenderEventArgs.cs (2)
13public ToolStripItemRenderEventArgs(Graphics g, ToolStripItem item) 22public Graphics Graphics { get; }
System\Windows\Forms\Controls\ToolStrips\ToolStripItemTextRenderEventArgs.cs (2)
20Graphics g, 43Graphics g,
System\Windows\Forms\Controls\ToolStrips\ToolStripLabel.cs (1)
349internal void PaintText(Graphics g)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (3)
709using (Graphics g = Graphics.FromImage(image)) 952Graphics g = e.Graphics;
System\Windows\Forms\Controls\ToolStrips\ToolStripPanelRenderEventArgs.cs (2)
13public ToolStripPanelRenderEventArgs(Graphics g, ToolStripPanel toolStripPanel) 22public Graphics Graphics { get; }
System\Windows\Forms\Controls\ToolStrips\ToolStripProfessionalLowResolutionRenderer.cs (1)
54Graphics g = e.Graphics;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (22)
157Graphics g = e.Graphics; 259Graphics g = e.Graphics; 346Graphics g = e.Graphics; 402Graphics g = e.Graphics; 482Graphics g = e.Graphics; 545Graphics g = e.Graphics; 910Graphics g = e.Graphics; 953private static void FillWithDoubleGradient(Color beginColor, Color middleColor, Color endColor, Graphics g, Rectangle bounds, int firstGradientWidth, int secondGradientWidth, LinearGradientMode mode, bool flipHorizontal) 1052Graphics g = e.Graphics; 1079private void RenderPressedGradient(Graphics g, Rectangle bounds) 1106Graphics g = e.Graphics; 1118private static void RenderBackgroundGradient(Graphics g, Control control, Color beginColor, Color endColor) 1124private static void RenderBackgroundGradient(Graphics g, Control control, Color beginColor, Color endColor, Orientation orientation) 1191Graphics g = e.Graphics; 1215Graphics g = e.Graphics; 1342Graphics g = e.Graphics; 1404private void RenderSelectedButtonFill(Graphics g, Rectangle bounds) 1428private void RenderCheckedButtonFill(Graphics g, Rectangle bounds) 1452private void RenderSeparatorInternal(Graphics g, ToolStripItem item, Rectangle bounds, bool vertical) 1540private void RenderPressedButtonFill(Graphics g, Rectangle bounds) 1565Graphics g = e.Graphics; 1646private static Point RenderArrowInternal(Graphics g, Rectangle dropDownRect, ArrowDirection direction, Brush brush)
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (7)
615Graphics g = e.Graphics; 865Graphics g = e.Graphics; 879using Graphics textGraphics = Graphics.FromImage(textBmp); 966Graphics g = e.Graphics; 1037using (Graphics graphics = Graphics.FromImage(disabledBitmap))
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderEventArgs.cs (3)
15public ToolStripRenderEventArgs(Graphics g, ToolStrip toolStrip) 24Graphics g, 38public Graphics Graphics { get; }
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparatorRenderEventArgs.cs (1)
16public ToolStripSeparatorRenderEventArgs(Graphics g, ToolStripSeparator separator, bool vertical)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (1)
517Graphics g = e.Graphics;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (10)
74private static void FillBackground(Graphics g, Rectangle bounds, Color backColor) 186Graphics g = e.Graphics; 278Graphics g = e.Graphics; 381Graphics g = e.Graphics; 412Graphics g = e.Graphics; 521Graphics g = e.Graphics; 646Graphics g = e.Graphics; 689private static void RenderSeparatorInternal(Graphics g, ToolStripItem item, Rectangle bounds, bool vertical) 744private static void RenderSmall3DBorderInternal(Graphics g, Rectangle bounds, ToolBarState state, bool rightToLeft) 791Graphics g = e.Graphics;
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
253using Graphics g = hdc.CreateGraphics();
System\Windows\Forms\Controls\TrackBar\TrackBarRenderer.cs (14)
28public static void DrawHorizontalTrack(Graphics g, Rectangle bounds) 38public static void DrawVerticalTrack(Graphics g, Rectangle bounds) 48public static void DrawHorizontalThumb(Graphics g, Rectangle bounds, TrackBarThumbState state) 58public static void DrawVerticalThumb(Graphics g, Rectangle bounds, TrackBarThumbState state) 68public static void DrawLeftPointingThumb(Graphics g, Rectangle bounds, TrackBarThumbState state) 78public static void DrawRightPointingThumb(Graphics g, Rectangle bounds, TrackBarThumbState state) 88public static void DrawTopPointingThumb(Graphics g, Rectangle bounds, TrackBarThumbState state) 98public static void DrawBottomPointingThumb(Graphics g, Rectangle bounds, TrackBarThumbState state) 108public static void DrawHorizontalTicks(Graphics g, Rectangle bounds, int numTicks, EdgeStyle edgeStyle) 138public static void DrawVerticalTicks(Graphics g, Rectangle bounds, int numTicks, EdgeStyle edgeStyle) 168public static Size GetLeftPointingThumbSize(Graphics g, TrackBarThumbState state) 178public static Size GetRightPointingThumbSize(Graphics g, TrackBarThumbState state) 188public static Size GetTopPointingThumbSize(Graphics g, TrackBarThumbState state) 198public static Size GetBottomPointingThumbSize(Graphics g, TrackBarThumbState state)
System\Windows\Forms\Controls\TreeView\DrawTreeNodeEventArgs.cs (2)
17Graphics graphics, 31public Graphics Graphics { get; }
System\Windows\Forms\Controls\TreeView\TreeView.cs (4)
2744using (Graphics g = nmtvcd->nmcd.hdc.CreateGraphics()) 2825using (Graphics g = nmtvcd->nmcd.hdc.CreateGraphics()) 3150using Graphics g = Graphics.FromHdc((HDC)m.WParamInternal);
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
201using Graphics graphics = CreateGraphicsInternal();
System\Windows\Forms\Dialogs\CommonDialogs\FontDialog.cs (2)
383using Graphics graphics = Graphics.FromHdcInternal(dc);
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
209using Graphics g = _message.CreateGraphicsInternal();
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
375using Graphics g = hdc.CreateGraphics();
System\Windows\Forms\Form.cs (2)
3733using Graphics graphics = Graphics.FromHwndInternal(0);
System\Windows\Forms\Input\Cursor.cs (5)
248private void DrawImageCore(Graphics graphics, Rectangle imageRect, Rectangle targetRect, bool stretch) 348/// Draws this <see cref="Cursor"/> to a <see cref="Graphics"/>. 350public void Draw(Graphics g, Rectangle targetRect) 356/// Draws this <see cref="Cursor"/> to a <see cref="Graphics"/>. 358public void DrawStretched(Graphics g, Rectangle targetRect)
System\Windows\Forms\Layout\Containers\SplitContainer.cs (3)
1027using Graphics g = CreateGraphicsInternal(); 1461private void DrawFocus(Graphics g, Rectangle r) 1553using Graphics g = CreateGraphicsInternal();
System\Windows\Forms\Layout\MeasureItemEventArgs.cs (3)
14public MeasureItemEventArgs(Graphics graphics, int index) 19public MeasureItemEventArgs(Graphics graphics, int index, int itemHeight) 30public Graphics Graphics { get; }
System\Windows\Forms\Panels\Panel.cs (1)
233using Graphics g = hDC.CreateGraphics();
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutCellPaintEventArgs.cs (1)
15Graphics g,
System\Windows\Forms\Panels\TableLayoutPanel\TableLayoutPanel.cs (1)
355Graphics g = e.GraphicsInternal;
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.cs (2)
66public override Graphics? OnStartPage(PrintDocument document, PrintPageEventArgs e) 72Graphics? result = _underlyingController.OnStartPage(document, e);
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
593private void DrawMessage(Graphics g, Rectangle rect, bool isExceptionPrinting) 614private void DrawPages(Graphics g, Rectangle rect, PreviewPageInfo[] pages, Brush backBrush)
System\Windows\Forms\Rendering\ControlPaint.cs (65)
224using Graphics graphics = dc.CreateGraphics(); 394internal static void PrintBorder(Graphics graphics, Rectangle bounds, BorderStyle style, Border3DStyle b3dStyle) 415Graphics g, 521public static void DrawBorder(Graphics graphics, Rectangle bounds, Color color, ButtonBorderStyle style) 548Graphics graphics, 726else if (deviceContext.TryGetGraphics(create: true) is Graphics graphics) 785else if (deviceContext.TryGetGraphics(create: true) is Graphics graphics) 849else if (deviceContext.TryGetGraphics(create: true) is Graphics graphics) 923else if (deviceContext.TryGetGraphics(create: true) is Graphics graphics) 976public static void DrawBorder3D(Graphics graphics, Rectangle rectangle) 986public static void DrawBorder3D(Graphics graphics, Rectangle rectangle, Border3DStyle style) 997public static void DrawBorder3D(Graphics graphics, Rectangle rectangle, Border3DStyle style, Border3DSide sides) 1003public static void DrawBorder3D(Graphics graphics, int x, int y, int width, int height) 1013public static void DrawBorder3D(Graphics graphics, int x, int y, int width, int height, Border3DStyle style) 1023public static void DrawBorder3D(Graphics graphics, int x, int y, int width, int height, Border3DStyle style, Border3DSide sides) 1055private static void DrawBorderComplex(Graphics graphics, Rectangle bounds, Color color, ButtonBorderStyle style) 1153Graphics? graphics = context.TryGetGraphics(create: true); 1179public static void DrawButton(Graphics graphics, Rectangle rectangle, ButtonState state) 1185public static void DrawButton(Graphics graphics, int x, int y, int width, int height, ButtonState state) 1200Graphics graphics, 1213Graphics graphics, 1227public static void DrawCheckBox(Graphics graphics, Rectangle rectangle, ButtonState state) 1233public static void DrawCheckBox(Graphics graphics, int x, int y, int width, int height, ButtonState state) 1255public static void DrawComboButton(Graphics graphics, Rectangle rectangle, ButtonState state) 1261public static void DrawComboButton(Graphics graphics, int x, int y, int width, int height, ButtonState state) 1273public static void DrawContainerGrabHandle(Graphics graphics, Rectangle bounds) 1317private static void DrawFlatCheckBox(Graphics graphics, Rectangle rectangle, ButtonState state) 1338Graphics graphics, 1371using (Graphics g2 = Graphics.FromImage(bitmap)) 1397public static void DrawFocusRectangle(Graphics graphics, Rectangle rectangle) 1404public static void DrawFocusRectangle(Graphics graphics, Rectangle rectangle, Color foreColor, Color backColor) 1407internal static void DrawHighContrastFocusRectangle(Graphics graphics, Rectangle rectangle, Color color) 1410internal static void DrawBlackWhiteFocusRectangle(Graphics graphics, Rectangle rectangle, Color color) 1413private static void DrawFocusRectangle(Graphics graphics, Rectangle rectangle, Color color, bool highContrast, bool blackAndWhite = false) 1429Graphics graphics, 1442using Graphics g2 = Graphics.FromImage(bitmap); 1483public static void DrawGrabHandle(Graphics graphics, Rectangle rectangle, bool primary, bool enabled) 1510public static void DrawGrid(Graphics graphics, Rectangle area, Size pixelsBetweenDots, Color backColor) 1556Graphics graphics, 1580internal static void DrawImageReplaceColor(Graphics g, Image image, Rectangle dest, Color oldColor, Color newColor) 1593public static void DrawImageDisabled(Graphics graphics, Image image, int x, int y, Color background) 1600internal static void DrawImageDisabled(Graphics graphics, Image image, Rectangle imageBounds, bool unscaledImage) 1637using (Graphics g = Graphics.FromImage(bitmap)) 1666internal static void EnforceHeaderCellDividerContrast(Graphics graphics, Rectangle bounds) 1683public static void DrawLockedFrame(Graphics graphics, Rectangle rectangle, bool primary) 1701public static void DrawMenuGlyph(Graphics graphics, Rectangle rectangle, MenuGlyph glyph) 1709Graphics graphics, 1723public static void DrawMenuGlyph(Graphics graphics, int x, int y, int width, int height, MenuGlyph glyph) 1731Graphics graphics, 1746public static void DrawMixedCheckBox(Graphics graphics, Rectangle rectangle, ButtonState state) 1749public static void DrawMixedCheckBox(Graphics graphics, int x, int y, int width, int height, ButtonState state) 1763public static void DrawRadioButton(Graphics graphics, Rectangle rectangle, ButtonState state) 1769public static void DrawRadioButton(Graphics graphics, int x, int y, int width, int height, ButtonState state) 1845public static void DrawScrollButton(Graphics graphics, Rectangle rectangle, ScrollButton button, ButtonState state) 1852Graphics graphics, 1868Graphics graphics, 1887public static void DrawSizeGrip(Graphics graphics, Color backColor, Rectangle bounds) 1893public static void DrawSizeGrip(Graphics graphics, Color backColor, int x, int y, int width, int height) 1945Graphics graphics, 2021public static void DrawVisualStyleBorder(Graphics graphics, Rectangle bounds) 2321Graphics g, 2355internal static void PaintTableCellBorder(TableLayoutPanelCellBorderStyle borderStyle, Graphics g, Rectangle bound)
System\Windows\Forms\Rendering\DrawingEventArgs.cs (8)
21private Graphics? _graphics; 31Graphics graphics, 82internal Graphics Graphics 95internal Graphics GetOrCreateGraphicsInternal(Action<Graphics>? creationAction = null) 111_graphics = Graphics.FromHdcInternal((IntPtr)_hdc); 123internal Graphics? GetGraphics(bool create) 148internal static void CheckGraphicsForState(Graphics? graphics, DrawingEventFlags flags)
System\Windows\Forms\Rendering\DrawingEventFlags.cs (3)
12/// If true, consider the <see cref="Graphics"/> object to potentially have a clip or transform applied. 17/// Only used in <see cref="PaintEventArgs"/>. Saves the state of the <see cref="Graphics"/> at construction 24/// default when constructing via an <see cref="HDC"/> as it, by definition, has no <see cref="Graphics"/>
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (7)
31public DrawItemEventArgs(Graphics graphics, Font? font, Rectangle rect, int index, DrawItemState state) 40Graphics graphics, 83/// Gets the <see cref="Drawing.Graphics"/> object used to paint. 85public Graphics Graphics => _event.Graphics; 152/// <see cref="Graphics.Clip"/> or <see cref="Graphics.Transform"/>. 154internal Graphics GraphicsInternal => _event.GetOrCreateGraphicsInternal();
System\Windows\Forms\Rendering\GdiCache.cs (2)
36/// Gets an <see cref="Graphics"/> based off of the primary display. 43/// When disposed the <see cref="Graphics"/> object will be disposed and the underlying <see cref="HDC"/>
System\Windows\Forms\Rendering\GdiCache.ScreenGraphicsScope.cs (4)
11/// Scope that creates a wrapping <see cref="Drawing.Graphics"/> for a <see cref="ScreenDcCache.ScreenDcScope"/> 12/// and manages disposal of the <see cref="Drawing.Graphics"/> and the scope. 21public Graphics Graphics { get; } 29public static implicit operator Graphics(in ScreenGraphicsScope scope) => scope.Graphics;
System\Windows\Forms\Rendering\PaintEventArgs.cs (7)
37public PaintEventArgs(Graphics graphics, Rectangle clipRect) : this( 56Graphics graphics, 83/// Gets the <see cref="Drawing.Graphics"/> object used to paint. 85public Graphics Graphics => _event.Graphics; 106Graphics? graphics = _event.GetGraphics(create: false); 121private void SaveStateIfNeeded(Graphics graphics) 127internal Graphics GraphicsInternal => _event.GetOrCreateGraphicsInternal(SaveStateIfNeeded);
System\Windows\Forms\Rendering\TextRenderer.cs (3)
568if (deviceContext is not Graphics g) 585/// unmodified <see cref="Graphics"/> object (i.e. the default). 604if (deviceContext is not Graphics graphics)
System\Windows\Forms\Scrolling\ScrollBarRenderer.cs (12)
27public static void DrawArrowButton(Graphics g, Rectangle bounds, ScrollBarArrowButtonState state) 37public static void DrawHorizontalThumb(Graphics g, Rectangle bounds, ScrollBarState state) 47public static void DrawVerticalThumb(Graphics g, Rectangle bounds, ScrollBarState state) 57public static void DrawHorizontalThumbGrip(Graphics g, Rectangle bounds, ScrollBarState state) 67public static void DrawVerticalThumbGrip(Graphics g, Rectangle bounds, ScrollBarState state) 77public static void DrawRightHorizontalTrack(Graphics g, Rectangle bounds, ScrollBarState state) 87public static void DrawLeftHorizontalTrack(Graphics g, Rectangle bounds, ScrollBarState state) 97public static void DrawUpperVerticalTrack(Graphics g, Rectangle bounds, ScrollBarState state) 107public static void DrawLowerVerticalTrack(Graphics g, Rectangle bounds, ScrollBarState state) 117public static void DrawSizeBox(Graphics g, Rectangle bounds, ScrollBarSizeBoxState state) 127public static Size GetThumbGripSize(Graphics g, ScrollBarState state) 137public static Size GetSizeBoxSize(Graphics g, ScrollBarState state)
System\Windows\Forms\ToolTip\DrawToolTipEventArgs.cs (2)
20Graphics graphics, 42public Graphics Graphics { get; }
System\Windows\Forms\ToolTip\ToolTip.cs (1)
2319using Graphics graphics = paintScope.HDC.CreateGraphics();
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (3)
299public void DrawImage(Graphics g, Rectangle bounds, Image image) 314public void DrawImage(Graphics g, Rectangle bounds, ImageList imageList, int imageIndex) 738public HitTestCode HitTestBackground(Graphics g, Rectangle backgroundRectangle, Region region, Point pt, HitTestOptions options)
System.Windows.Forms.Design (89)
System\ComponentModel\Design\ByteViewer.cs (6)
122private void DrawAddress(Graphics g, int startLine, int line) 138private void DrawClient(Graphics g) 183private void DrawDump(Graphics g, ReadOnlySpan<byte> lineBuffer, int line, Span<char> charsBuffer) 203private void DrawHex(Graphics g, ReadOnlySpan<byte> lineBuffer, int line, Span<char> charsBuffer) 240private void DrawLines(Graphics g, int startLine, int linesCount) 518Graphics g = e.Graphics;
System\ComponentModel\Design\CollectionEditor.CollectionEditorCollectionForm.cs (3)
209private int CalcItemWidth(Graphics g, ListItem item) 523using Graphics g = _listBox.CreateGraphics(); 559Graphics g = e.Graphics;
System\ComponentModel\Design\CollectionEditor.SplitButton.cs (1)
195Graphics g = pevent.Graphics;
System\ComponentModel\Design\DesignerActionPanel.cs (1)
500Graphics g = e.Graphics;
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (3)
283public override void PaintLine(Graphics g, int lineWidth, int lineHeight) 295using Graphics swatchGraphics = Graphics.FromImage(_swatch);
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (1)
57Graphics g = e.Graphics;
System\ComponentModel\Design\DesignerActionPanel.Line.cs (1)
45public virtual void PaintLine(Graphics g, int lineWidth, int lineHeight)
System\ComponentModel\Design\DesignerActionPanel.PanelHeaderLine.cs (1)
98public override void PaintLine(Graphics g, int lineWidth, int lineHeight)
System\ComponentModel\Design\DesignerActionPanel.SeparatorLine.cs (1)
26public override void PaintLine(Graphics g, int lineWidth, int lineHeight)
System\ComponentModel\Design\DesignerActionPanel.TextBoxPropertyLine.cs (1)
288public override void PaintLine(Graphics g, int lineWidth, int lineHeight)
System\ComponentModel\Design\MultilineStringEditor.MultilineStringEditorUI.cs (2)
361using (Graphics g = CreateGraphics()) 412using Graphics g = CreateGraphics();
System\Drawing\Design\ColorEditor.ColorPalette.cs (2)
359Graphics graphics = pe.Graphics; 414private static void PaintValue(Color color, Graphics g, Rectangle rect)
System\Drawing\Design\ColorEditor.ColorUI.cs (1)
272Graphics graphics = die.Graphics;
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (2)
309using Graphics g = Graphics.FromHwnd(m.HWnd);
System\Windows\Forms\Design\Behavior\BehaviorService.cs (2)
134public Graphics AdornerWindowGraphics 138Graphics result = _adornerWindow.CreateGraphics();
System\Windows\Forms\Design\Behavior\DragAssistanceManager.cs (3)
24private readonly Graphics _graphics; // graphics to the adornerwindow 122Graphics? graphics, 141Graphics? graphics,
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (5)
47private Graphics _graphicsTarget; // graphics object of the AdornerWindows (via BehaviorService) in drop target 1020using (Graphics g = Graphics.FromImage(_dragImage)) 1028using (Graphics g = Graphics.FromImage(_dragImage))
System\Windows\Forms\Design\Behavior\ResizeBehavior.cs (2)
384using Graphics graphics = BehaviorService.AdornerWindowGraphics; 870using (Graphics graphics = BehaviorService.AdornerWindowGraphics)
System\Windows\Forms\Design\Behavior\SelectionManager.cs (2)
377using Graphics g = _behaviorService.AdornerWindowGraphics; 426using Graphics g = _behaviorService.AdornerWindowGraphics;
System\Windows\Forms\Design\Behavior\ToolboxItemSnapLineBehavior.cs (1)
339using Graphics graphics = _behaviorService.AdornerWindowGraphics;
System\Windows\Forms\Design\ComponentTray.cs (2)
1435Graphics gr = pe.Graphics; 1987Graphics gr = CreateGraphics();
System\Windows\Forms\Design\ControlDesigner.cs (5)
1437using Graphics adornerGraphics = BehaviorService.AdornerWindowGraphics; 2028using Graphics g = Graphics.FromHdc((HDC)m.WParamInternal); 2065using Graphics graphics = Graphics.FromHwnd(m.HWnd);
System\Windows\Forms\Design\DataGridViewColumnTypeEditor.Picker.cs (1)
45using Graphics g = _typesListBox.CreateGraphics();
System\Windows\Forms\Design\DesignerUtils.cs (18)
121using Graphics g = Graphics.FromImage(s_boxImage); 188private static void DrawDragBorder(Graphics g, Size imageSize, int borderSize, Color backColor) 212public static void DrawResizeBorder(Graphics g, Region resizeBorder, Color backColor) 226public static void DrawFrame(Graphics g, Region resizeBorder, FrameStyle style, Color backColor) 246public static void DrawGrabHandle(Graphics graphics, Rectangle bounds, bool isPrimary) 261public static void DrawNoResizeHandle(Graphics graphics, Rectangle bounds, bool isPrimary) 276public static void DrawLockedHandle(Graphics graphics, Rectangle bounds, bool isPrimary) 300public static void DrawSelectionBorder(Graphics graphics, Rectangle bounds) 332using Graphics g = Graphics.FromImage(image); 394using Graphics gDest = Graphics.FromImage(image); 430using Graphics g = Graphics.FromImage(image); 440using (Graphics g = Graphics.FromImage(image)) 529using Graphics g = ctrl.CreateGraphics();
System\Windows\Forms\Design\FlowLayoutPanelDesigner .cs (1)
481using Graphics graphics = BehaviorService.AdornerWindowGraphics;
System\Windows\Forms\Design\PanelDesigner.cs (1)
28protected virtual void DrawBorder(Graphics graphics)
System\Windows\Forms\Design\ParentControlDesigner.cs (1)
34private Graphics _graphics; // graphics object of the adornerwindow (via BehaviorService)
System\Windows\Forms\Design\PictureBoxDesigner.cs (1)
30private void DrawBorder(Graphics graphics)
System\Windows\Forms\Design\SelectionUIService.ContainerSelectionUIItem.cs (1)
51public override void DoPaint(Graphics graphics)
System\Windows\Forms\Design\SelectionUIService.SelectionUIItem.cs (1)
117public virtual void DoPaint(Graphics graphics)
System\Windows\Forms\Design\SplitterDesigner.cs (1)
23private void DrawBorder(Graphics graphics)
System\Windows\Forms\Design\SplitterPanelDesigner.cs (4)
134using Graphics graphics = _splitterPanel.CreateGraphics(); 158using Graphics graphics = control.CreateGraphics(); 173using Graphics graphics = control.CreateGraphics(); 178internal void DrawWaterMark(Graphics g)
System\Windows\Forms\Design\TableLayoutPanelDesigner.cs (1)
838protected override void DrawBorder(Graphics graphics)
System\Windows\Forms\Design\TabOrder.cs (1)
192private void DrawTabs(List<Control> tabs, Graphics graphics, bool fRegion)
System\Windows\Forms\Design\ToolStripAdornerWindowService.cs (1)
59public Graphics ToolStripAdornerWindowGraphics
System\Windows\Forms\Design\ToolStripItemBehavior.cs (1)
923Graphics g = bSvc.AdornerWindowGraphics;
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
237private void DrawBorder(Graphics graphics)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (6)
1812private void DrawArrow(Graphics g, Rectangle bounds) 1821private void DrawDropDown(Graphics g, Rectangle bounds, int state) 1856Graphics g = e.Graphics; 1870Graphics g = e.Graphics; 1885Graphics g = e.Graphics; 1971Graphics g = e.Graphics;
System.Windows.Forms.Design.Tests (16)
System\ComponentModel\Design\ByteViewerTests.cs (8)
426using Graphics graphics = Graphics.FromImage(image); 467using Graphics graphics = Graphics.FromImage(image); 512using Graphics graphics = Graphics.FromImage(image); 542using Graphics graphics = Graphics.FromImage(image);
System\Drawing\Design\FontNameEditorTests.cs (2)
86using var g = Graphics.FromImage(bitmap);
System\Drawing\Design\ImageEditorTests.cs (4)
162using Graphics graphics = Graphics.FromImage(image); 186using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\Design\ImageIndexEditorTests.cs (2)
36using var graphics = Graphics.FromImage(bitmap);
System.Windows.Forms.Primitives (25)
System\Drawing\FontExtensions.cs (1)
17public static LOGFONTW ToLogicalFont(this Font font, Graphics graphics)
System\Windows\Forms\DeviceContextExtensions.cs (13)
123internal static Graphics CreateGraphics(this HDC hdc) => Graphics.FromHdcInternal(hdc); 124internal static Graphics CreateGraphics(this CreateDcScope hdc) => Graphics.FromHdcInternal(hdc.HDC); 125internal static Graphics CreateGraphics(this GetDcScope hdc) => Graphics.FromHdcInternal(hdc.HDC); 163/// Convert the <paramref name="deviceContext"/> into a <see cref="Graphics"/> object if possible. 166/// Will create the <see cref="Graphics"/> if possible and it is not already created. 170/// Do NOT dispose of the <see cref="Graphics"/> object. If it was created, the object creating it owns it. 173internal static Graphics? TryGetGraphics(this IDeviceContext deviceContext, bool create = false) => deviceContext switch 175Graphics graphics => graphics, 176IGraphicsHdcProvider provider => (Graphics?)provider.GetGraphics(create), 188private static Graphics? AssertNoGraphics(bool create)
System\Windows\Forms\GraphicsClipScope.cs (3)
9/// Saves and restores <see cref="Graphics.Clip"/>. 14private readonly Graphics _graphics; 15public GraphicsClipScope(Graphics graphics)
System\Windows\Forms\GraphicsStateScope.cs (3)
10/// Saves and restores the entire state of a <see cref="Graphics"/>. 15private readonly Graphics _graphics; 17public GraphicsStateScope(Graphics graphics)
System\Windows\Forms\Internals\ScaleHelper.cs (2)
180using (Graphics graphics = Graphics.FromImage(scaledBitmap))
System\Windows\Forms\SystemDrawingExtensions.cs (3)
17/// Similar to <see cref="Graphics.GetNearestColor(Color)"/>, but this retains the original color if the color 32internal static Color FindNearestColor(this Graphics graphics, Color color) 54internal static void DrawLines(this Graphics graphics, Pen pen, ReadOnlySpan<int> lines)
System.Windows.Forms.Primitives.Tests (8)
System\Windows\Forms\DeviceContextHdcScopeTests.cs (6)
16using Graphics g = Graphics.FromImage(b); 99using Graphics g = Graphics.FromHdcInternal(hdc); 249using Graphics g = Graphics.FromImage(b);
System\Windows\Forms\DeviceContextScopeTests.cs (2)
34using Graphics graphics = dcScope.CreateGraphics(); 68using Graphics graphics = dcScope.CreateGraphics();
System.Windows.Forms.Tests (863)
CheckedListBoxTests.cs (11)
420using Graphics graphics = Graphics.FromImage(image); 442using Graphics graphics = Graphics.FromImage(image); 463using Graphics graphics = Graphics.FromImage(image); 474using Graphics graphics = Graphics.FromImage(image); 487using Graphics graphics = Graphics.FromImage(image); 814MeasureItemEventArgs eventArgs = new(Graphics.FromImage(image), 1);
System\Drawing\Design\PaintValueEventArgsTests.cs (2)
23using Graphics graphics = Graphics.FromImage(image);
System\Drawing\Design\UITypeEditorTests.cs (9)
101Graphics graphics = Graphics.FromImage(bitmap); 111using var graphics = Graphics.FromImage(image); 119Graphics graphics = Graphics.FromImage(bitmap); 126public void UITypeEditor_PaintValue_Invoke_CallsVirtualPaintValue(object value, Graphics canvas, Rectangle rectangle) 133using (var graphics = Graphics.FromImage(image))
System\Windows\Forms\ButtonTests.cs (4)
3424using Graphics graphics = Graphics.FromImage(image); 3497using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\CheckBoxRendererTests.cs (8)
26using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 62using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 99using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 134using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC);
System\Windows\Forms\ComboBoxTests.cs (20)
336control.TriggerMeasureItem(new MeasureItemEventArgs(Graphics.FromHwnd(IntPtr.Zero), 0, 0)); 341control.TriggerMeasureItem(new MeasureItemEventArgs(Graphics.FromHwnd(IntPtr.Zero), 0, 0)); 360comboBox.TestAccessor().Dynamic.OnPaint(new PaintEventArgs(Graphics.FromHwnd(comboBox.Handle), default)); 373comboBox.InvokeOnPaint(new PaintEventArgs(Graphics.FromHwnd(comboBox.Handle), default)); 377comboBox.InvokeOnPaint(new PaintEventArgs(Graphics.FromHwnd(comboBox.Handle), default)); 386Graphics graphics = Graphics.FromImage(bitmap); 724Graphics graphics = Graphics.FromImage(bitmap); 747control.TestRaiseOnDrawItem(new DrawItemEventArgs(Graphics.FromImage(bitmap), control.Font, default, 0, DrawItemState.Default)); 767Graphics graphics = Graphics.FromImage(bitmap); 1968using Graphics graphics = Graphics.FromImage(image); 2005using Graphics graphics = Graphics.FromImage(image); 2065using Graphics graphics = Graphics.FromImage(image); 2109using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ControlPaintTests.cs (136)
562using Graphics graphics = Graphics.FromImage(image); 575using Graphics graphics = Graphics.FromImage(image); 621using Graphics graphics = Graphics.FromImage(image); 663using Graphics graphics = Graphics.FromImage(image); 701using Graphics graphics = Graphics.FromImage(image); 726using Graphics graphics = Graphics.FromImage(image); 754using Graphics graphics = Graphics.FromImage(image); 766using Graphics graphics = Graphics.FromImage(image); 778using Graphics graphics = Graphics.FromImage(image); 790using Graphics graphics = Graphics.FromImage(image); 826using Graphics graphics = Graphics.FromImage(image); 838using Graphics graphics = Graphics.FromImage(image); 864using Graphics graphics = Graphics.FromImage(image); 875using Graphics graphics = Graphics.FromImage(image); 886using Graphics graphics = Graphics.FromImage(image); 910using Graphics graphics = Graphics.FromImage(image); 922using Graphics graphics = Graphics.FromImage(image); 947using Graphics graphics = Graphics.FromImage(image); 958using Graphics graphics = Graphics.FromImage(image); 969using Graphics graphics = Graphics.FromImage(image); 990using Graphics graphics = Graphics.FromImage(image); 1002using Graphics graphics = Graphics.FromImage(image); 1028using Graphics graphics = Graphics.FromImage(image); 1039using Graphics graphics = Graphics.FromImage(image); 1050using Graphics graphics = Graphics.FromImage(image); 1071using Graphics graphics = Graphics.FromImage(image); 1083using Graphics graphics = Graphics.FromImage(image); 1108using Graphics graphics = Graphics.FromImage(image); 1119using Graphics graphics = Graphics.FromImage(image); 1130using Graphics graphics = Graphics.FromImage(image); 1150using Graphics graphics = Graphics.FromImage(image); 1178using Graphics graphics = Graphics.FromImage(image); 1209using Graphics graphics = Graphics.FromImage(image); 1244using Graphics graphics = Graphics.FromImage(image); 1281using Graphics graphics = Graphics.FromImage(image); 1302using Graphics graphics = Graphics.FromImage(image); 1330using Graphics graphics = Graphics.FromImage(sourceImage); 1348using Graphics graphics = Graphics.FromImage(image); 1370using Graphics graphics = Graphics.FromImage(image); 1401using Graphics graphics = Graphics.FromImage(image); 1433using Graphics graphics = Graphics.FromImage(image); 1445using Graphics graphics = Graphics.FromImage(image); 1457using Graphics graphics = Graphics.FromImage(image); 1487using Graphics graphics = Graphics.FromImage(image); 1499using Graphics graphics = Graphics.FromImage(image); 1511using Graphics graphics = Graphics.FromImage(image); 1532using Graphics graphics = Graphics.FromImage(image); 1544using Graphics graphics = Graphics.FromImage(image); 1569using Graphics graphics = Graphics.FromImage(image); 1580using Graphics graphics = Graphics.FromImage(image); 1591using Graphics graphics = Graphics.FromImage(image); 1612using Graphics graphics = Graphics.FromImage(image); 1624using Graphics graphics = Graphics.FromImage(image); 1649using Graphics graphics = Graphics.FromImage(image); 1660using Graphics graphics = Graphics.FromImage(image); 1671using Graphics graphics = Graphics.FromImage(image); 1750using Graphics graphics = Graphics.FromImage(image); 1762using Graphics graphics = Graphics.FromImage(image); 1787using Graphics graphics = Graphics.FromImage(image); 1798using Graphics graphics = Graphics.FromImage(image); 1809using Graphics graphics = Graphics.FromImage(image); 1835using Graphics graphics = Graphics.FromImage(image); 1870using Graphics graphics = Graphics.FromImage(image); 1882using Graphics graphics = Graphics.FromImage(image); 1918using Graphics graphics = Graphics.FromImage(image); 1930using Graphics graphics = Graphics.FromImage(image); 1966using Graphics graphics = Graphics.FromImage(image); 1995using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ControlPaintTests.Rendering.cs (14)
19using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 38using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 98using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 173using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 247using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 321using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 349using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC);
System\Windows\Forms\ControlTests.Handlers.cs (18)
3855using Graphics graphics = Graphics.FromImage(image); 3977using Graphics graphics = Graphics.FromImage(image); 4027using Graphics graphics = Graphics.FromImage(image); 4104using Graphics graphics = Graphics.FromImage(image); 4637using Graphics graphics = Graphics.FromImage(image); 4656using Graphics graphics = Graphics.FromImage(image); 4695using Graphics graphics = Graphics.FromImage(image); 4724using Graphics graphics = Graphics.FromImage(image); 4760using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ControlTests.Methods.cs (14)
4296using Graphics graphics = Graphics.FromImage(image); 4305using Graphics graphics = Graphics.FromImage(image); 4352using Graphics graphics = Graphics.FromImage(image); 12894using Graphics graphics = Graphics.FromImage(image); 12989using Graphics graphics = Graphics.FromImage(image); 13236using Graphics graphics = Graphics.FromImage(image); 13353using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\CursorTests.cs (12)
380using Graphics graphics = Graphics.FromImage(image); 390using Graphics graphics = Graphics.FromImage(image); 406Graphics graphics = Graphics.FromImage(image); 417using Graphics graphics = Graphics.FromImage(image); 427using Graphics graphics = Graphics.FromImage(image); 443Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\DataGridViewCellPaintingEventArgsTests.cs (32)
22using Graphics graphics = Graphics.FromImage(image); 45using Graphics graphics = Graphics.FromImage(image); 60using Graphics graphics = Graphics.FromImage(image); 70using Graphics graphics = Graphics.FromImage(image); 81using Graphics graphics = Graphics.FromImage(image); 92using Graphics graphics = Graphics.FromImage(image); 105using Graphics graphics = Graphics.FromImage(image); 118using Graphics graphics = Graphics.FromImage(image); 131using Graphics graphics = Graphics.FromImage(image); 142using Graphics graphics = Graphics.FromImage(image); 155using Graphics graphics = Graphics.FromImage(image); 168using Graphics graphics = Graphics.FromImage(image); 181using Graphics graphics = Graphics.FromImage(image); 192using Graphics graphics = Graphics.FromImage(image); 205using Graphics graphics = Graphics.FromImage(image); 218using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\DataGridViewCellTests.cs (58)
3678using Graphics graphics = Graphics.FromImage(image); 3830using Graphics graphics = Graphics.FromImage(image); 5253using Graphics graphics = Graphics.FromImage(image); 5268using Graphics graphics = Graphics.FromImage(image); 5290using Graphics graphics = Graphics.FromImage(image); 5303using Graphics graphics = Graphics.FromImage(image); 5315using Graphics graphics = Graphics.FromImage(image); 5327using Graphics graphics = Graphics.FromImage(image); 5341using Graphics graphics = Graphics.FromImage(image); 5355using Graphics graphics = Graphics.FromImage(image); 5365using Graphics graphics = Graphics.FromImage(image); 5374using Graphics graphics = Graphics.FromImage(image); 5383using Graphics graphics = Graphics.FromImage(image); 5397using Graphics graphics = Graphics.FromImage(image); 5411using Graphics graphics = Graphics.FromImage(image); 5420using Graphics graphics = Graphics.FromImage(image); 5429using Graphics graphics = Graphics.FromImage(image); 5443using Graphics graphics = Graphics.FromImage(image); 5457using Graphics graphics = Graphics.FromImage(image); 5467using Graphics graphics = Graphics.FromImage(image); 5476using Graphics graphics = Graphics.FromImage(image); 6019using Graphics graphics = Graphics.FromImage(image); 6027using Graphics graphics = Graphics.FromImage(image); 6043using Graphics graphics = Graphics.FromImage(image); 6053using Graphics graphics = Graphics.FromImage(image); 6063using Graphics graphics = Graphics.FromImage(image); 6574public new Rectangle GetContentBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) => base.GetContentBounds(graphics, cellStyle, rowIndex); 6576public new Rectangle GetErrorIconBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) => base.GetErrorIconBounds(graphics, cellStyle, rowIndex); 6585public new Size GetPreferredSize(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex, Size constraintSize) => base.GetPreferredSize(graphics, cellStyle, rowIndex, constraintSize); 6649public new void Paint(Graphics graphics, Rectangle clipBounds, Rectangle cellBounds, int rowIndex, DataGridViewElementStates cellState, object value, object formattedValue, string errorText, DataGridViewCellStyle cellStyle, DataGridViewAdvancedBorderStyle advancedBorderStyle, DataGridViewPaintParts paintParts) 6654public new void PaintBorder(Graphics graphics, Rectangle clipBounds, Rectangle bounds, DataGridViewCellStyle cellStyle, DataGridViewAdvancedBorderStyle advancedBorderStyle) 6659public new void PaintErrorIcon(Graphics graphics, Rectangle clipBounds, Rectangle cellValueBounds, string errorText) => base.PaintErrorIcon(graphics, clipBounds, cellValueBounds, errorText);
System\Windows\Forms\DataGridViewHeaderCellTests.cs (3)
4622using Graphics graphics = Graphics.FromImage(image); 4712public new void Paint(Graphics graphics,
System\Windows\Forms\DataGridViewRowPostPaintEventArgsTests.cs (30)
22using Graphics graphics = Graphics.FromImage(image); 41using Graphics graphics = Graphics.FromImage(image); 56using Graphics graphics = Graphics.FromImage(image); 73using Graphics graphics = Graphics.FromImage(image); 86using Graphics graphics = Graphics.FromImage(image); 99using Graphics graphics = Graphics.FromImage(image); 110using Graphics graphics = Graphics.FromImage(image); 123using Graphics graphics = Graphics.FromImage(image); 134using Graphics graphics = Graphics.FromImage(image); 147using Graphics graphics = Graphics.FromImage(image); 158using Graphics graphics = Graphics.FromImage(image); 171using Graphics graphics = Graphics.FromImage(image); 182using Graphics graphics = Graphics.FromImage(image); 195using Graphics graphics = Graphics.FromImage(image); 208using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\DataGridViewRowPrePaintEventArgsTests.cs (35)
13Graphics graphics = Graphics.FromImage(image); 22public void Ctor_DataGridView_Graphics_Rectangle_Rectangle_Int_DataGridViewElementStates_String_DataGridViewCellStyle_Bool_Bool(DataGridView dataGridView, Graphics graphics, Rectangle clipBounds, Rectangle rowBounds, int rowIndex, DataGridViewElementStates rowState, string errorText, DataGridViewCellStyle inheritedRowStyle, bool isFirstDisplayedRow, bool isLastVisibleRow) 42using Graphics graphics = Graphics.FromImage(image); 57using Graphics graphics = Graphics.FromImage(image); 74using Graphics graphics = Graphics.FromImage(image); 89using Graphics graphics = Graphics.FromImage(image); 103using Graphics graphics = Graphics.FromImage(image); 113using Graphics graphics = Graphics.FromImage(image); 126using Graphics graphics = Graphics.FromImage(image); 137using Graphics graphics = Graphics.FromImage(image); 150using Graphics graphics = Graphics.FromImage(image); 161using Graphics graphics = Graphics.FromImage(image); 174using Graphics graphics = Graphics.FromImage(image); 185using Graphics graphics = Graphics.FromImage(image); 198using Graphics graphics = Graphics.FromImage(image); 209using Graphics graphics = Graphics.FromImage(image); 222using Graphics graphics = Graphics.FromImage(image); 235using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\DataGridViewRowTests.cs (80)
4197using Graphics graphics = Graphics.FromImage(image); 4213using Graphics graphics = Graphics.FromImage(image); 4236using Graphics graphics = Graphics.FromImage(image); 4593using Graphics graphics = Graphics.FromImage(image); 4617using Graphics graphics = Graphics.FromImage(image); 4643using Graphics graphics = Graphics.FromImage(image); 4667using Graphics graphics = Graphics.FromImage(image); 4691using Graphics graphics = Graphics.FromImage(image); 4715using Graphics graphics = Graphics.FromImage(image); 4739using Graphics graphics = Graphics.FromImage(image); 4764using Graphics graphics = Graphics.FromImage(image); 4789using Graphics graphics = Graphics.FromImage(image); 4797using Graphics graphics = Graphics.FromImage(image); 4874using Graphics graphics = Graphics.FromImage(image); 5000using Graphics graphics = Graphics.FromImage(image); 5039using Graphics graphics = Graphics.FromImage(image); 5063using Graphics graphics = Graphics.FromImage(image); 5089using Graphics graphics = Graphics.FromImage(image); 5113using Graphics graphics = Graphics.FromImage(image); 5137using Graphics graphics = Graphics.FromImage(image); 5161using Graphics graphics = Graphics.FromImage(image); 5185using Graphics graphics = Graphics.FromImage(image); 5210using Graphics graphics = Graphics.FromImage(image); 5235using Graphics graphics = Graphics.FromImage(image); 5309using Graphics graphics = Graphics.FromImage(image); 5328using Graphics graphics = Graphics.FromImage(image); 5359using Graphics graphics = Graphics.FromImage(image); 5383using Graphics graphics = Graphics.FromImage(image); 5409using Graphics graphics = Graphics.FromImage(image); 5433using Graphics graphics = Graphics.FromImage(image); 5457using Graphics graphics = Graphics.FromImage(image); 5481using Graphics graphics = Graphics.FromImage(image); 5505using Graphics graphics = Graphics.FromImage(image); 5530using Graphics graphics = Graphics.FromImage(image); 5555using Graphics graphics = Graphics.FromImage(image); 5632using Graphics graphics = Graphics.FromImage(image); 5648using Graphics graphics = Graphics.FromImage(image); 5666using Graphics graphics = Graphics.FromImage(image); 5770public new void DrawFocus(Graphics graphics, Rectangle clipBounds, Rectangle bounds, int rowIndex, DataGridViewElementStates rowState, DataGridViewCellStyle cellStyle, bool cellsPaintSelectionBackground) 5775public new void Paint(Graphics graphics, Rectangle clipBounds, Rectangle rowBounds, int rowIndex, DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow) 5780public new void PaintCells(Graphics graphics, Rectangle clipBounds, Rectangle rowBounds, int rowIndex, DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow, DataGridViewPaintParts paintParts) 5785public new void PaintHeader(Graphics graphics, Rectangle clipBounds, Rectangle rowBounds, int rowIndex, DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow, DataGridViewPaintParts paintParts)
System\Windows\Forms\DateTimePickerTests.cs (2)
546control.OnPaint(new(Graphics.FromImage(bmp), default)); 554control.OnPaint(new(Graphics.FromImage(bmp), default));
System\Windows\Forms\DrawItemEventArgsTests.cs (8)
25using Graphics graphics = Graphics.FromImage(image); 50using Graphics graphics = Graphics.FromImage(image); 90using Graphics graphics = Graphics.FromImage(image); 100using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\DrawListViewColumnHeaderEventArgsTests.cs (12)
24using Graphics graphics = Graphics.FromImage(image); 48using Graphics graphics = Graphics.FromImage(image); 76using Graphics graphics = Graphics.FromImage(image); 88using Graphics graphics = Graphics.FromImage(image); 98using Graphics graphics = Graphics.FromImage(image); 114using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\DrawListViewItemEventArgsTests.cs (14)
24using Graphics graphics = Graphics.FromImage(image); 45using Graphics graphics = Graphics.FromImage(image); 54using Graphics graphics = Graphics.FromImage(image); 113using Graphics graphics = Graphics.FromImage(image); 123using Graphics graphics = Graphics.FromImage(image); 133using Graphics graphics = Graphics.FromImage(image); 143using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\DrawListViewSubItemEventArgsTests.cs (12)
25using Graphics graphics = Graphics.FromImage(image); 48using Graphics graphics = Graphics.FromImage(image); 58using Graphics graphics = Graphics.FromImage(image); 67using Graphics graphics = Graphics.FromImage(image); 117using Graphics graphics = Graphics.FromImage(image); 127using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\DrawToolTipEventArgsTests.cs (10)
23using Graphics graphics = Graphics.FromImage(image); 48using Graphics graphics = Graphics.FromImage(image); 58using Graphics graphics = Graphics.FromImage(image); 68using Graphics graphics = Graphics.FromImage(image); 78using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\DrawTreeNodeEventArgsTests.cs (4)
23using Graphics graphics = Graphics.FromImage(image); 37using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\GroupBoxTests.cs (12)
1850using Graphics graphics = Graphics.FromImage(image); 1888using Graphics graphics = Graphics.FromImage(image); 2088using Graphics graphics = Graphics.FromImage(image); 2126using Graphics graphics = Graphics.FromImage(image); 2189using Graphics graphics = Graphics.FromImage(image); 2234using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ImageListTests.cs (16)
931using Graphics graphics = Graphics.FromImage(sourceImage); 946using Graphics graphics = Graphics.FromImage(sourceImage); 960using Graphics graphics = Graphics.FromImage(sourceImage); 975using Graphics graphics = Graphics.FromImage(sourceImage); 998using Graphics graphics = Graphics.FromImage(sourceImage); 1013using Graphics graphics = Graphics.FromImage(sourceImage); 1038using Graphics graphics = Graphics.FromImage(sourceImage); 1054using Graphics graphics = Graphics.FromImage(sourceImage);
System\Windows\Forms\ListBoxTests.cs (4)
5519Graphics graphics = Graphics.FromImage(bitmap); 5640using Graphics graphics = Graphics.FromImage(bitmap);
System\Windows\Forms\MeasureItemEventArgsTests.cs (10)
14Graphics graphics = Graphics.FromImage(image); 23public void Ctor_Graphics_Int_Int(Graphics graphics, int index, int itemHeight) 35Graphics graphics = Graphics.FromImage(image); 44public void Ctor_Graphics_Int(Graphics graphics, int index) 60using Graphics graphics = Graphics.FromImage(image); 75using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\PaintEventArgsTests.cs (10)
23using Graphics graphics = Graphics.FromImage(image); 33Assert.Throws<ArgumentNullException>("graphics", () => new PaintEventArgs((Graphics)null, new Rectangle(1, 2, 3, 4))); 40using Graphics graphics = Graphics.FromImage(image); 52using Graphics graphics = Graphics.FromImage(image); 64Graphics g1 = args.Graphics; 65Graphics g2 = args.Graphics; 71public SubPaintEventArgs(Graphics graphics, Rectangle clipRect) : base(graphics, clipRect)
System\Windows\Forms\ProgressBarRendererTest.cs (3)
64private void TestProgressBarRenderer(Action<Graphics, Rectangle> drawAction) 68using Graphics graphics1 = Graphics.FromImage(bitmap1);
System\Windows\Forms\RadioButtonRendererTests.cs (8)
25using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 56using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 93using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 113using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC);
System\Windows\Forms\ScrollableControlTests.cs (8)
1531using Graphics graphics = Graphics.FromImage(image); 1678using Graphics graphics = Graphics.FromImage(image); 1730using Graphics graphics = Graphics.FromImage(image); 1818using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\StatusStripTests.cs (2)
1211using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\TabControlTests.cs (2)
4221Graphics graphics = Graphics.FromImage(bitmap);
System\Windows\Forms\TableLayoutCellPaintEventArgsTests.cs (3)
24using Graphics graphics = Graphics.FromImage(image); 38(Graphics)null, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), 1, 2));
System\Windows\Forms\TableLayoutPanelTests.cs (6)
1209Graphics graphics = Graphics.FromImage(image); 1430using Graphics graphics = Graphics.FromImage(image); 1470using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\TabPageTests.cs (8)
3977using Graphics graphics = Graphics.FromImage(image); 4047using Graphics graphics = Graphics.FromImage(image); 4103using Graphics graphics = Graphics.FromImage(image); 4186using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\TextBoxRendererTests.cs (6)
34using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 63using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 98using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC);
System\Windows\Forms\TextRendererTests.cs (34)
36using Graphics graphics = Graphics.FromImage(image); 70using Graphics graphics = Graphics.FromImage(image); 107using Graphics graphics = Graphics.FromImage(image); 148using Graphics graphics = Graphics.FromImage(image); 180using Graphics graphics = Graphics.FromImage(image); 216using Graphics graphics = Graphics.FromImage(image); 256using Graphics graphics = Graphics.FromImage(image); 300using Graphics graphics = Graphics.FromImage(image); 312using Graphics graphics = Graphics.FromImage(image); 473using Graphics graphics = Graphics.FromImage(image); 488using Graphics graphics = Graphics.FromImage(image); 503using Graphics graphics = Graphics.FromImage(image); 518using Graphics graphics = Graphics.FromImage(image); 537using Graphics graphics = Graphics.FromImage(image); 726using Graphics graphics = Graphics.FromImage(image); 754using (Graphics graphics = Graphics.FromImage(metafileRecorder)) 803using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ToolStripArrowRenderEventArgsTests.cs (9)
20Graphics graphics = Graphics.FromImage(image); 28public void Ctor_Graphics_ToolStripItem_Rectangle_Color_ArrowDirection(Graphics g, ToolStripItem toolStripItem, Rectangle arrowRectangle, Color arrowColor, ArrowDirection arrowDirection) 50using Graphics graphics = Graphics.FromImage(image); 70using Graphics graphics = Graphics.FromImage(image); 85using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ToolStripButtonTests.cs (6)
1265using Graphics graphics = Graphics.FromImage(image); 1356using Graphics graphics = Graphics.FromImage(image); 1449Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapterTests.cs (2)
78using Graphics graphics = Graphics.FromImage(bitmap);
System\Windows\Forms\ToolStripContentPanelRenderEventArgsTests.cs (7)
13Graphics graphics = Graphics.FromImage(image); 22public void ToolStripContentPanelRenderEventArgs_Null_Graphics_ToolStripContentPanel_ThrowsArgumentNullException(Graphics g, ToolStripContentPanel toolStripContentPanel) 31using Graphics graphics = Graphics.FromImage(image); 45using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ToolStripContentPanelTests.cs (2)
1854using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ToolStripControlHostTests.cs (2)
4109var graphics = Graphics.FromImage(image);
System\Windows\Forms\ToolStripGripRenderEventArgsTests.cs (6)
13Graphics graphics = Graphics.FromImage(image); 22public void ToolStripGripRenderEventArgs_Null_Graphics_ToolStrip_ThrowsArgumentNullException(Graphics g, ToolStrip toolStrip) 30Graphics graphics = Graphics.FromImage(image); 45public void Ctor_Graphics_ToolStrip(Graphics g, ToolStrip toolStrip)
System\Windows\Forms\ToolStripItemImageRenderEventArgsTests.cs (10)
13Graphics graphics = Graphics.FromImage(image); 22public void ToolStripItemImageRenderEventArgs_Null_Graphics_ToolStripItem_ThrowsArgumentNullException(Graphics g, ToolStripItem toolStripItem) 30Graphics graphics = Graphics.FromImage(image); 62public void ToolStripItemImageRenderEventArgs_Ctor_Graphics_ToolStripItem_Rectangle(Graphics g, ToolStripItem item, Rectangle imageRectangle, Image expectedImage) 75using Graphics g = Graphics.FromImage(image); 100using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ToolStripItemRenderEventArgsTests.cs (6)
13Graphics graphics = Graphics.FromImage(image); 22public void ToolStripItemRenderEventArgs_Null_Graphics_ToolStripItem_ThrowsArgumentNullException(Graphics g, ToolStripItem toolStripItem) 30Graphics graphics = Graphics.FromImage(image); 43public void Ctor_Graphics_ToolStripItem(Graphics g, ToolStripItem item, ToolStrip expectedToolStrip)
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (8)
22using Graphics g = Graphics.FromImage(image); 48using Graphics g = Graphics.FromImage(image); 65using Graphics graphics = Graphics.FromImage(image); 81using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ToolStripPanelRenderEventArgsTests.cs (7)
13Graphics graphics = Graphics.FromImage(image); 22public void ToolStripPanelRenderEventArgs_Null_Graphics_ToolStripPanel_ThrowsArgumentNullException(Graphics g, ToolStripPanel toolStripPanel) 31using Graphics graphics = Graphics.FromImage(image); 45using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ToolStripRendererTests.cs (30)
45using Graphics graphics = Graphics.FromImage(image); 80Graphics graphics = Graphics.FromImage(image); 137Graphics graphics = Graphics.FromImage(image); 192Graphics graphics = Graphics.FromImage(image); 204public void ToolStripRenderer_DrawItemCheck_Invoke_CallsRenderItemCheck(Graphics graphics, ToolStripItem item, Image image, Rectangle imageRectangle) 237public void ToolStripRenderer_DrawItemImage_Invoke_CallsRenderItemImage(Graphics graphics, ToolStripItem item, Image image, Rectangle imageRectangle) 313using Graphics graphics = Graphics.FromImage(image); 420Graphics graphics = Graphics.FromImage(image); 486using Graphics graphics = Graphics.FromImage(image); 521Graphics graphics = Graphics.FromImage(image); 603Graphics graphics = Graphics.FromImage(image); 660Graphics graphics = Graphics.FromImage(image); 725using Graphics graphics = Graphics.FromImage(image); 799public void ToolStripRenderer_OnRenderItemCheck_Invoke_Nop(Graphics graphics, ToolStripItem item, Image image, Rectangle imageRectangle) 819public void ToolStripRenderer_OnRenderItemImage_Invoke_Nop(Graphics graphics, ToolStripItem item, Image image, Rectangle imageRectangle) 842using Graphics graphics = Graphics.FromImage(image); 919using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (9)
13Graphics graphics = Graphics.FromImage(image); 22public void ToolStripRenderEventArgs_Null_Graphics_ToolStrip_ThrowsArgumentNullException(Graphics g, ToolStrip toolStrip) 40using Graphics graphics = Graphics.FromImage(image); 64using Graphics graphics = Graphics.FromImage(image); 93using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ToolStripSeparatorRenderEventArgsTests.cs (6)
13Graphics graphics = Graphics.FromImage(image); 22public void ToolStripSeparatorRenderEventArgs_Null_Graphics_ToolStripSeparator_ThrowsArgumentNullException(Graphics g, ToolStripSeparator toolStripSeparator) 30Graphics graphics = Graphics.FromImage(image); 37public void Ctor_Graphics_ToolStripItem_Bool(Graphics g, ToolStripSeparator separator, bool vertical)
System\Windows\Forms\ToolStripSeparatorTests.cs (6)
1118Graphics graphics = Graphics.FromImage(image); 1212using Graphics graphics = Graphics.FromImage(image); 1283using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ToolStripTests.cs (12)
5872using Graphics graphics = Graphics.FromImage(image); 6019using Graphics graphics = Graphics.FromImage(image); 6070using Graphics graphics = Graphics.FromImage(image); 6157using Graphics graphics = Graphics.FromImage(image); 6232using Graphics graphics = Graphics.FromImage(image); 6261using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\TrackBarRendererTests.cs (10)
14private readonly Graphics _graphics; 19_graphics = Graphics.FromImage(_bitmap); 38void TestDrawTrack(Action<Graphics, Rectangle> drawTrack, Rectangle bounds) 51void TestDrawTrackWithInvalidBounds(Action<Graphics, Rectangle> drawTrack, Rectangle[] invalidBounds) 75void TestDrawThumb(Action<Graphics, Rectangle, TrackBarThumbState> drawThumb, Rectangle bounds, TrackBarThumbState state) 91void TestGetThumbSize(Func<Graphics, TrackBarThumbState, Size> getThumbSize) 106void TestDrawTicks(Action<Graphics, Rectangle, int, EdgeStyle> drawTicks, Rectangle bounds, int tickCount, EdgeStyle edgeStyle) 124void TestDrawTicksWithInvalidParameters(Action<Graphics, Rectangle, int, EdgeStyle> drawTicks, Rectangle bounds, int[] invalidTickCounts, Rectangle[] invalidBounds) 155var drawThumbActions = new Action<Graphics, Rectangle, TrackBarThumbState>[] 163foreach (Action<Graphics, Rectangle, TrackBarThumbState> drawThumb in drawThumbActions)
System\Windows\Forms\TreeViewTests.cs (2)
5667Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\UpDownBaseTests.cs (4)
2246using Graphics graphics = Graphics.FromImage(image); 2282using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (37)
137using Graphics graphics = Graphics.FromImage(bitmap); 171using Graphics graphics = Graphics.FromImage(bitmap); 206using Graphics graphics = Graphics.FromImage(bitmap); 224using Graphics graphics = Graphics.FromImage(bitmap); 234using Graphics graphics = Graphics.FromImage(bitmap); 244using Graphics graphics = Graphics.FromImage(bitmap); 268using Graphics graphics = Graphics.FromImage(bitmap); 281using Graphics graphics = Graphics.FromImage(bitmap); 305using Graphics graphics = Graphics.FromImage(bitmap); 315using Graphics graphics = Graphics.FromImage(bitmap); 326using Graphics graphics = Graphics.FromImage(bitmap); 353using Graphics graphics = Graphics.FromImage(bitmap); 380using Graphics graphics = Graphics.FromImage(bitmap); 419using Graphics graphics = Graphics.FromImage(bitmap); 450using Graphics graphics = Graphics.FromImage(bitmap); 481using Graphics graphics = Graphics.FromImage(bitmap); 504using Graphics graphics = form.CreateGraphics(); 572using Graphics graphics = Graphics.FromImage(image); 584using Graphics graphics = Graphics.FromImage(image);
TrackBarTests.cs (2)
3244using Graphics graphics = Graphics.FromImage(bitmap);
System.Windows.Forms.TestUtilities (2)
CommonTestHelperEx.cs (2)
112Graphics graphics = Graphics.FromImage(image);
System.Windows.Forms.UI.IntegrationTests (2)
Infra\ScreenshotService.cs (2)
64using var graphics = Graphics.FromImage(bitmap);
WindowsFormsIntegration (7)
System\Windows\Integration\HostUtils.cs (7)
184using (SD.Graphics g = SD.Graphics.FromImage(bitmap)) 202using (SD.Graphics g = SD.Graphics.FromImage(returnBitmap)) 298using (SD.Graphics graphicsTemplate = control.CreateGraphics()) 304using (SD.Graphics graphics = SD.Graphics.FromImage(chunk))
WinFormsControlsTest (1)
CustomComCtl32Button.cs (1)
75static void DrawRoundBorder(Control sender, Graphics g)