2842 references to Graphics
DesignSurface (1)
MainForm.MyScrollableControl.cs (1)
31var graphics = e.Graphics;
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Helpers\VBInputBox.vb (1)
92Dim labelGraphics As Graphics = Label.CreateGraphics
PresentationFramework-SystemDrawing (2)
SystemDrawingExtension.cs (2)
69Graphics graphics = Graphics.FromImage(bmp);
PresentationUI (3)
MS\Internal\Documents\RMPublishingDialog.RightsTable.cs (1)
999protected override void Paint(Graphics graphics,
MS\Internal\Documents\SignatureSummaryDialog.cs (2)
542private int CalculateItemHeight(Graphics graphics, SignatureResources item) 619private 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 (1115)
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)
351Graphics 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)
103using Graphics g = Graphics.FromImage(bmp); 121using Graphics g = Graphics.FromImage(bmp); 150using Graphics g = Graphics.FromImage(bmp); 165using Graphics g = Graphics.FromImage(bmp); 176using Graphics g = Graphics.FromImage(bmp); 203using Graphics g = Graphics.FromImage(bmp); 220using Graphics g = Graphics.FromImage(bmp); 239using (Graphics g = Graphics.FromImage(bmp)) 252using (Graphics g = Graphics.FromImage(bmp)) 264using (Graphics g = Graphics.FromImage(bmp)) 280using Graphics g = Graphics.FromImage(bmp); 347Exception exception = AssertExtensions.Throws<ArgumentException, Exception>(() => Graphics.FromImage(img)); 355public Graphics Graphics { get; } 359Graphics = Graphics.FromImage(_bitmap); 378var g = b.Graphics; 391var g = b.Graphics; 424var g = b.Graphics; 435var g = b.Graphics; 451var g = b.Graphics; 464var g = b.Graphics; 480var g = b.Graphics; 495var g = b.Graphics; 511var g = b.Graphics; 526var g = b.Graphics; 542var g = b.Graphics; 558var g = b.Graphics; 591var g = b.Graphics; 613var g = b.Graphics; 636var g = b.Graphics; 657var g = b.Graphics; 665var g = b.Graphics; 673var g = b.Graphics; 713using Graphics g = Graphics.FromImage(bitmap); 727using Graphics g = Graphics.FromImage(bitmap); 737using Graphics g = Graphics.FromImage(bitmap); 747using Graphics g = Graphics.FromImage(bitmap); 759using Graphics g = Graphics.FromImage(bitmap); 771using Graphics g = Graphics.FromImage(bitmap); 779using Graphics g = Graphics.FromImage(bitmap); 787using Graphics g = Graphics.FromImage(bitmap); 798using Graphics g = Graphics.FromImage(bitmap); 809using Graphics g = Graphics.FromImage(bitmap); 820using Graphics g = Graphics.FromImage(bitmap); 832using Graphics g = Graphics.FromImage(bitmap); 847using Graphics g = Graphics.FromImage(bitmap); 869using Graphics g = Graphics.FromImage(bitmap); 884using Graphics g = Graphics.FromImage(bitmap); 904private static void CheckDefaultProperties(string message, Graphics g) 919private static void CheckCustomProperties(string message, Graphics g) 950using Graphics g = Graphics.FromImage(bitmap); 983using Graphics g = Graphics.FromImage(bitmap); 1017using Graphics g = Graphics.FromImage(bitmap); 1049using Graphics g = Graphics.FromImage(bitmap); 1085using Graphics g = Graphics.FromImage(bitmap); 1093using Graphics g = Graphics.FromImage(bitmap); 1133using Graphics g = Graphics.FromImage(bitmap); 1141using Graphics g = Graphics.FromImage(bitmap); 1149using Graphics g = Graphics.FromImage(bitmap); 1157using Graphics g = Graphics.FromImage(bitmap); 1165using Graphics g = Graphics.FromImage(bitmap); 1173using Graphics g = Graphics.FromImage(bitmap); 1181using Graphics g = Graphics.FromImage(bitmap); 1189using (Graphics g = Graphics.FromImage(bitmap)) 1210using (Graphics g = Graphics.FromImage(bitmap)) 1374using (Graphics g = Graphics.FromImage(bitmap)) 1520using (Graphics g = Graphics.FromImage(bitmap)) 1573using Graphics g = Graphics.FromImage(bitmap); 1594using Graphics g = Graphics.FromImage(bitmap); 1603using Graphics g = Graphics.FromImage(bitmap); 1620using Graphics g = Graphics.FromImage(bitmap); 1653using Graphics g = Graphics.FromImage(bitmap); 1684using Graphics g = Graphics.FromImage(bitmap); 1717using Graphics g = Graphics.FromImage(bitmap); 1748using Graphics g = Graphics.FromImage(bitmap); 1779using Graphics g = Graphics.FromImage(bitmap); 1802using Graphics g = Graphics.FromImage(bitmap); 1846using Graphics g = Graphics.FromImage(bitmap); 1869using Graphics g = Graphics.FromImage(bitmap); 1882using Graphics g = Graphics.FromImage(bitmap); 1895using Graphics g = Graphics.FromImage(bitmap); 1918using Graphics g = Graphics.FromImage(bitmap); 1962using Graphics g = Graphics.FromImage(bitmap); 1998using Graphics g = Graphics.FromImage(bitmap); 2005private static Region[] Measure_Helper(Graphics gfx, RectangleF rect, bool useSpan) 2021using Graphics gfx = Graphics.FromImage(new Bitmap(1, 1)); 2055using Graphics gfx = Graphics.FromImage(new Bitmap(1, 1)); 2083using Graphics g = Graphics.FromImage(bitmap); 2100using Graphics g = Graphics.FromImage(bitmap); 2117using Graphics g = Graphics.FromImage(bitmap); 2133using Graphics g = Graphics.FromImage(b); 2145using Graphics g = Graphics.FromImage(b); 2153using Graphics g = Graphics.FromImage(b); 2163using Graphics g = Graphics.FromImage(b); 2175using Graphics g = Graphics.FromImage(b); 2183using Graphics g = Graphics.FromImage(b); 2200using Graphics g = Graphics.FromImage(bmp); 2233using Graphics g = Graphics.FromImage(bmp); 2278using Graphics g = Graphics.FromImage(bmp); 2297using Graphics g = Graphics.FromImage(bmp); 2316using Graphics g = Graphics.FromImage(bmp); 2335using Graphics g = Graphics.FromImage(bmp); 2343using Graphics g = Graphics.FromImage(bmp); 2359using Graphics g = Graphics.FromImage(bmp); 2367using Graphics g = Graphics.FromImage(bmp); 2376using Graphics g = Graphics.FromImage(bmp); 2384using Graphics g = Graphics.FromImage(bmp); 2400using Graphics g = Graphics.FromImage(bmp); 2408using Graphics g = Graphics.FromImage(bmp); 2419using Graphics g = Graphics.FromImage(bmp); 2427using Graphics g = Graphics.FromImage(bmp); 2435using Graphics g = Graphics.FromImage(bmp); 2443using Graphics g = Graphics.FromImage(bmp); 2451using Graphics g = Graphics.FromImage(bmp); 2459using Graphics g = Graphics.FromImage(bmp); 2470using Graphics g = Graphics.FromImage(bmp); 2478using Graphics g = Graphics.FromImage(bmp); 2493using Graphics g = Graphics.FromImage(bmp); 2501using Graphics g = Graphics.FromImage(bmp); 2509using Graphics g = Graphics.FromImage(bmp); 2517using Graphics g = Graphics.FromImage(bmp); 2525using Graphics g = Graphics.FromImage(bmp); 2533using Graphics g = Graphics.FromImage(bmp); 2541using Graphics g = Graphics.FromImage(bmp); 2549using Graphics g = Graphics.FromImage(bmp); 2557using Graphics g = Graphics.FromImage(bmp); 2565using Graphics g = Graphics.FromImage(bmp); 2573using Graphics g = Graphics.FromImage(bmp); 2581using Graphics g = Graphics.FromImage(bmp); 2589using Graphics g = Graphics.FromImage(bmp); 2596using Graphics g = Graphics.FromImage(bmp); 2626using Graphics g = Graphics.FromImage(bmp); 2634using Graphics g = Graphics.FromImage(bmp); 2684using Graphics g = Graphics.FromImage(bmp); 2692using Graphics g = Graphics.FromImage(bmp); 2743using Graphics g = Graphics.FromImage(bmp); 2754using Graphics g = Graphics.FromImage(bmp); 2763using Graphics g = Graphics.FromImage(bmp); 2771using Graphics g = Graphics.FromImage(bmp); 2779using Graphics g = Graphics.FromImage(bmp); 2787using Graphics g = Graphics.FromImage(bmp); 2795using Graphics g = Graphics.FromImage(bmp); 2803using Graphics g = Graphics.FromImage(bmp); 2811using Graphics g = Graphics.FromImage(bmp); 2819using Graphics g = Graphics.FromImage(bmp); 2827using Graphics g = Graphics.FromImage(bmp); 2835using Graphics g = Graphics.FromImage(bmp); 2854using Graphics g = Graphics.FromImage(bmp); 2863using Graphics g = Graphics.FromImage(bmp); 2871using Graphics g = Graphics.FromImage(bmp); 2896using Graphics g = Graphics.FromImage(bmp); 2905using Graphics g = Graphics.FromImage(bmp); 2913using Graphics g = Graphics.FromImage(bmp); 2938using Graphics g = Graphics.FromImage(bmp); 2964using (Graphics g = Graphics.FromImage(bmp)) 2971using (Graphics g = Graphics.FromImage(bmp)) 2982using 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)
221AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(width, 1, Graphics.FromImage(new Bitmap(1, 1)))); 236AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(1, height, Graphics.FromImage(new Bitmap(1, 1)))); 285using 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); 2240private static void AssertIsOutlineVisibleLine(Graphics graphics) 2268private static void AssertIsOutlineVisibleRectangle(Graphics graphics) 2296private static void AssertIsVisibleRectangle(Graphics graphics) 2317private 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 (407)
23using Graphics graphics = Graphics.FromImage(bitmap); 29using Graphics graphicsCopy = Graphics.FromHdc(hdc); 42using Graphics graphics1 = Graphics.FromImage(bitmap); 43using Graphics graphics2 = Graphics.FromImage(bitmap); 59using Graphics graphics = Graphics.FromImage(bitmap); 75Graphics graphics = Graphics.FromImage(bitmap); 85using Graphics graphics = Graphics.FromHdc(hdc); 94using Graphics graphics = Graphics.FromHdc(hdc, IntPtr.Zero); 103using Graphics graphics = Graphics.FromHdcInternal(hdc); 111AssertExtensions.Throws<ArgumentNullException>("hdc", () => Graphics.FromHdc(IntPtr.Zero)); 117Assert.Throws<ExternalException>(() => Graphics.FromHdcInternal(IntPtr.Zero)); 123Assert.Throws<ExternalException>(() => Graphics.FromHdc(IntPtr.Zero, 10)); 129Assert.Throws<ExternalException>(() => Graphics.FromHwnd(10)); 130Assert.Throws<ExternalException>(() => Graphics.FromHwndInternal(10)); 137using Graphics graphics = Graphics.FromImage(bitmap); 158using Graphics graphics = Graphics.FromImage(bitmap); 173using Graphics graphics1 = Graphics.FromImage(bitmap1); 174using Graphics graphics2 = Graphics.FromImage(bitmap2); 190using Graphics graphics = Graphics.FromImage(bitmap); 200Graphics graphics = Graphics.FromImage(bitmap); 218using Graphics graphics = Graphics.FromHwnd(hwnd); 227using Graphics graphics = Graphics.FromHwnd(hwnd); 235Assert.Throws<ExternalException>(() => Graphics.FromHdc(10)); 236Assert.Throws<ExternalException>(() => Graphics.FromHdcInternal(10)); 252using Graphics graphics = Graphics.FromImage(image); 259AssertExtensions.Throws<ArgumentNullException>("image", () => Graphics.FromImage(null)); 269Exception exception = AssertExtensions.Throws<ArgumentException, Exception>(() => Graphics.FromImage(image)); 280AssertExtensions.Throws<ArgumentException>(null, () => Graphics.FromImage(image)); 287Assert.Throws<ExternalException>(() => Graphics.FromImage(image)); 296Assert.Throws<ExternalException>(() => Graphics.FromImage(image)); 315using Graphics graphics = Graphics.FromImage(image); 317using Graphics targetGraphics = Graphics.FromImage(targetImage); 339using Graphics graphics = Graphics.FromImage(image); 347using Graphics graphics = Graphics.FromImage(image); 364Graphics graphics = Graphics.FromImage(image); 407using Graphics graphics = Graphics.FromImage(image); 423using Graphics graphics = Graphics.FromImage(image); 431using Graphics graphics = Graphics.FromImage(image); 448Graphics graphics = Graphics.FromImage(image); 459var graphics = Graphics.FromImage(bitmap); 471var graphics = Graphics.FromImage(bitmap); 485using Graphics graphics = Graphics.FromImage(image); 501Graphics graphics = Graphics.FromImage(image); 511using Graphics graphics = Graphics.FromImage(image); 527Graphics graphics = Graphics.FromImage(image); 541using Graphics graphics = Graphics.FromImage(image); 556using Graphics graphics = Graphics.FromImage(image); 573Graphics graphics = Graphics.FromImage(image); 592using Graphics graphics = Graphics.FromImage(image); 603using Graphics graphics = Graphics.FromImage(image); 611using Graphics graphics = Graphics.FromImage(image); 619using Graphics graphics = Graphics.FromImage(image); 636Graphics graphics = Graphics.FromImage(image); 650using Graphics graphics = Graphics.FromImage(image); 664using Graphics graphics = Graphics.FromImage(image); 672using Graphics graphics = Graphics.FromImage(image); 689Graphics graphics = Graphics.FromImage(image); 706using Graphics graphics = Graphics.FromImage(image); 717using Graphics graphics = Graphics.FromImage(image); 725using Graphics graphics = Graphics.FromImage(image); 733using Graphics graphics = Graphics.FromImage(image); 750Graphics graphics = Graphics.FromImage(image); 766using Graphics graphics = Graphics.FromImage(image); 777using Graphics graphics = Graphics.FromImage(image); 785using Graphics graphics = Graphics.FromImage(image); 793using Graphics graphics = Graphics.FromImage(image); 810Graphics graphics = Graphics.FromImage(image); 862using Graphics graphics = Graphics.FromImage(image); 875using Graphics graphics = Graphics.FromImage(image); 892Graphics graphics = Graphics.FromImage(image); 908using Graphics graphics = Graphics.FromImage(image); 919using Graphics graphics = Graphics.FromImage(image); 927using Graphics graphics = Graphics.FromImage(image); 935using Graphics graphics = Graphics.FromImage(image); 952Graphics graphics = Graphics.FromImage(image); 966using Graphics graphics = Graphics.FromImage(image); 977using Graphics graphics = Graphics.FromImage(image); 985using Graphics graphics = Graphics.FromImage(image); 1002Graphics graphics = Graphics.FromImage(image); 1019using Graphics graphics = Graphics.FromImage(image); 1030using Graphics graphics = Graphics.FromImage(image); 1038using Graphics graphics = Graphics.FromImage(image); 1055Graphics graphics = Graphics.FromImage(image); 1069using Graphics graphics = Graphics.FromImage(image); 1092using Graphics graphics = Graphics.FromImage(image); 1100using Graphics graphics = Graphics.FromImage(image); 1111using Graphics graphics = Graphics.FromImage(image); 1120using Graphics graphics = Graphics.FromImage(image); 1139Graphics graphics = Graphics.FromImage(image); 1150using Graphics graphics = Graphics.FromImage(image); 1163using Graphics graphics = Graphics.FromImage(image); 1179Graphics graphics = Graphics.FromImage(image); 1189using Graphics graphics = Graphics.FromImage(image); 1206using Graphics graphics = Graphics.FromImage(image); 1221using Graphics graphics = Graphics.FromImage(image); 1245using Graphics graphics = Graphics.FromImage(image); 1257using Graphics graphics = Graphics.FromImage(image); 1266using Graphics graphics = Graphics.FromImage(image); 1285Graphics graphics = Graphics.FromImage(image); 1299using Graphics graphics = Graphics.FromImage(image); 1319using Graphics graphics = Graphics.FromImage(image); 1335using Graphics graphics = Graphics.FromImage(image); 1343using Graphics graphics = Graphics.FromImage(image); 1360Graphics graphics = Graphics.FromImage(image); 1373using Graphics graphics = Graphics.FromImage(image); 1391using Graphics graphics = Graphics.FromImage(image); 1405using Graphics graphics = Graphics.FromImage(image); 1416using Graphics graphics = Graphics.FromImage(image); 1424using Graphics graphics = Graphics.FromImage(image); 1441Graphics graphics = Graphics.FromImage(image); 1456using Graphics graphics = Graphics.FromImage(image); 1476using Graphics graphics = Graphics.FromImage(image); 1492using Graphics graphics = Graphics.FromImage(image); 1500using Graphics graphics = Graphics.FromImage(image); 1517Graphics graphics = Graphics.FromImage(image); 1540using Graphics graphics = Graphics.FromImage(image); 1557using Graphics graphics = Graphics.FromImage(image); 1609using Graphics graphics = Graphics.FromImage(image); 1620using Graphics graphics = Graphics.FromImage(image); 1648using Graphics graphics = Graphics.FromImage(image); 1656using Graphics graphics = Graphics.FromImage(image); 1676Graphics graphics = Graphics.FromImage(image); 1741using Graphics graphics = Graphics.FromImage(image); 1806using Graphics graphics = Graphics.FromImage(image); 1822using Graphics graphics = Graphics.FromImage(image); 1838using Graphics graphics = Graphics.FromImage(image); 1853using Graphics graphics = Graphics.FromImage(image); 1864using Graphics graphics = Graphics.FromImage(image); 1873using Graphics graphics = Graphics.FromImage(image); 1882using Graphics graphics = Graphics.FromImage(image); 1891using Graphics graphics = Graphics.FromImage(image); 1908Graphics graphics = Graphics.FromImage(image); 1926using Graphics graphics = Graphics.FromImage(image); 1934using Graphics graphics = Graphics.FromImage(image); 1950Graphics graphics = Graphics.FromImage(image); 1960using Graphics graphics = Graphics.FromImage(image); 1971using Graphics graphics = Graphics.FromImage(image); 1985using Graphics graphics = Graphics.FromImage(image); 1997using Graphics graphics = Graphics.FromImage(image); 2009using Graphics graphics = Graphics.FromImage(image); 2030Graphics graphics = Graphics.FromImage(image); 2043using Graphics graphics = Graphics.FromImage(image); 2053using Graphics graphics = Graphics.FromImage(image); 2066using Graphics graphics = Graphics.FromImage(image); 2086Graphics graphics = Graphics.FromImage(image); 2098using Graphics graphics = Graphics.FromImage(image); 2107using Graphics graphics = Graphics.FromImage(image); 2119using Graphics graphics = Graphics.FromImage(image); 2129using Graphics graphics = Graphics.FromImage(image); 2139using Graphics graphics = Graphics.FromImage(image); 2158Graphics graphics = Graphics.FromImage(image); 2169using Graphics graphics = Graphics.FromImage(image); 2180using Graphics graphics = Graphics.FromImage(image); 2194using Graphics graphics = Graphics.FromImage(image); 2215Graphics graphics = Graphics.FromImage(image); 2228using Graphics graphics = Graphics.FromImage(image); 2239using Graphics graphics = Graphics.FromImage(image); 2253using Graphics graphics = Graphics.FromImage(image); 2265using Graphics graphics = Graphics.FromImage(image); 2277using Graphics graphics = Graphics.FromImage(image); 2298Graphics graphics = Graphics.FromImage(image); 2311using Graphics graphics = Graphics.FromImage(image); 2320using Graphics graphics = Graphics.FromImage(image); 2332using Graphics graphics = Graphics.FromImage(image); 2344using Graphics graphics = Graphics.FromImage(image); 2354using Graphics graphics = Graphics.FromImage(image); 2373Graphics graphics = Graphics.FromImage(image); 2384using Graphics graphics = Graphics.FromImage(image); 2393using Graphics graphics = Graphics.FromImage(image); 2405using Graphics graphics = Graphics.FromImage(image); 2414using Graphics graphics = Graphics.FromImage(image); 2426using Graphics graphics = Graphics.FromImage(image); 2446Graphics graphics = Graphics.FromImage(image); 2456using Graphics graphics = Graphics.FromImage(image); 2470using Graphics graphics = Graphics.FromImage(image); 2487using Graphics graphics = Graphics.FromImage(image); 2504using Graphics graphics = Graphics.FromImage(image); 2524using Graphics graphics = Graphics.FromImage(image); 2535using Graphics graphics = Graphics.FromImage(image); 2559Graphics graphics = Graphics.FromImage(image); 2575using Graphics graphics = Graphics.FromImage(image); 2586using Graphics graphics = Graphics.FromImage(image); 2600using Graphics graphics = Graphics.FromImage(image); 2615using Graphics graphics = Graphics.FromImage(image); 2627using Graphics graphics = Graphics.FromImage(image); 2648Graphics graphics = Graphics.FromImage(image); 2661using Graphics graphics = Graphics.FromImage(image); 2671using Graphics graphics = Graphics.FromImage(image); 2684using Graphics graphics = Graphics.FromImage(image); 2695using Graphics graphics = Graphics.FromImage(image); 2706using Graphics graphics = Graphics.FromImage(image); 2726Graphics graphics = Graphics.FromImage(image); 2740using Graphics graphics = Graphics.FromImage(image); 2756using Graphics graphics = Graphics.FromImage(image); 2774Graphics graphics = Graphics.FromImage(image); 2784using Graphics graphics = Graphics.FromImage(image); 2793using Graphics graphics = Graphics.FromImage(image); 2800private static void VerifyGraphics(Graphics graphics, RectangleF expectedVisibleClipBounds) 2826using Graphics graphics = Graphics.FromImage(bitmap); 2866using Graphics graphics = Graphics.FromImage(bitmap); 2875using Graphics graphics = Graphics.FromImage(bitmap); 2886using Graphics graphics = Graphics.FromImage(bitmap); 2896using Graphics graphics = Graphics.FromImage(bitmap); 2907using Graphics graphics = Graphics.FromImage(bitmap); 2924using Graphics graphics = Graphics.FromImage(bitmap); 2928using Graphics graphics2 = Graphics.FromImage(bitmap2); 2974using Graphics graphics = Graphics.FromImage(bitmap); 2983using Graphics graphics = Graphics.FromImage(bitmap); 2992using Graphics graphics = Graphics.FromImage(bitmap); 3001using 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)
72using var graphics = Graphics.FromImage(bitmap); 96using var graphics = Graphics.FromImage(bitmap); 130using var graphicsSmallBitmap = Graphics.FromImage(bitmapSmall); 131using var graphicsBigBitmap = Graphics.FromImage(bitmapBig); 149using var graphics = Graphics.FromImage(bitmap); 175using var graphics = Graphics.FromImage(bitmap); 206using var graphics = Graphics.FromImage(bitmap); 275using var graphics = Graphics.FromImage(bitmap); 302using var graphics = Graphics.FromImage(bitmap); 344using var graphics = Graphics.FromImage(bitmap); 367using var graphics = Graphics.FromImage(bitmap); 394using var graphics = Graphics.FromImage(bitmap); 423using var graphics = Graphics.FromImage(bitmap); 484using var graphics = Graphics.FromImage(bitmap); 497using var graphics = Graphics.FromImage(bitmap); 510using var graphics = Graphics.FromImage(bitmap); 539using var graphics = Graphics.FromImage(bitmap); 553using var graphics = Graphics.FromImage(bitmap); 583using var graphics = Graphics.FromImage(bitmap); 596using var graphics = Graphics.FromImage(bitmap); 609using var graphics = Graphics.FromImage(bitmap); 640using var graphics = Graphics.FromImage(bitmap); 671using var graphics = Graphics.FromImage(bitmap); 686using var graphics = Graphics.FromImage(bitmap); 719using var graphics = Graphics.FromImage(bitmap); 736using var graphics = Graphics.FromImage(bitmap); 753using var graphics = Graphics.FromImage(bitmap); 787using var graphics = Graphics.FromImage(bitmap); 802using var graphics = Graphics.FromImage(bitmap); 817using var graphics = Graphics.FromImage(bitmap); 850using var graphics = Graphics.FromImage(bitmap); 865using var graphics = Graphics.FromImage(bitmap); 906using var graphics = Graphics.FromImage(bitmap); 932using var graphics = Graphics.FromImage(bitmap); 962using var graphics = Graphics.FromImage(bitmap); 1011using var graphics = Graphics.FromImage(bitmap); 1026using var graphics = Graphics.FromImage(bitmap); 1058using var graphics = Graphics.FromImage(bitmap); 1124using var graphics = Graphics.FromImage(bitmap); 1140using var graphics = Graphics.FromImage(bitmap); 1173using var graphics = Graphics.FromImage(bitmap); 1186using var graphics = Graphics.FromImage(bitmap); 1199using var graphics = Graphics.FromImage(bitmap); 1250using var graphics = Graphics.FromImage(bitmap); 1264using var graphics = Graphics.FromImage(bitmap);
System\Drawing\Imaging\MetafileTests.cs (88)
126using Graphics g = Graphics.FromImage(bmp); 145using Graphics g = Graphics.FromImage(bmp); 172using Graphics g = Graphics.FromImage(bmp); 188using Graphics g = Graphics.FromImage(bmp); 208using Graphics g = Graphics.FromImage(bmp); 218using Graphics g = Graphics.FromImage(bmp); 229using Graphics g = Graphics.FromImage(bmp); 238using Graphics g = Graphics.FromImage(bmp); 248using Graphics g = Graphics.FromImage(bmp); 258using Graphics g = Graphics.FromImage(bmp); 269using Graphics g = Graphics.FromImage(bmp); 305using Graphics g = Graphics.FromImage(bmp); 323using Graphics g = Graphics.FromImage(bmp); 341using (Graphics g = Graphics.FromImage(bmp)) 357using (Graphics g = Graphics.FromImage(bmp)) 374using (Graphics g = Graphics.FromImage(bmp)) 401using Graphics g = Graphics.FromImage(bmp); 412using Graphics g = Graphics.FromImage(bmp); 425using Graphics g = Graphics.FromImage(bmp); 437using Graphics g = Graphics.FromImage(bmp); 450using (Graphics g = Graphics.FromImage(bmp)) 466using (Graphics g = Graphics.FromImage(bmp)) 482using (Graphics g = Graphics.FromImage(bmp)) 499using (Graphics g = Graphics.FromImage(bmp)) 517using (Graphics g = Graphics.FromImage(bmp)) 534using (Graphics g = Graphics.FromImage(bmp)) 550using (Graphics g = Graphics.FromImage(bmp)) 566using (Graphics g = Graphics.FromImage(bmp)) 583using (Graphics g = Graphics.FromImage(bmp)) 601using (Graphics g = Graphics.FromImage(bmp)) 639using Graphics g = Graphics.FromImage(bmp); 661using Graphics g = Graphics.FromImage(bmp); 679using Graphics g = Graphics.FromImage(bmp); 696using Graphics g = Graphics.FromImage(bmp); 712using Graphics g = Graphics.FromImage(bmp); 728using Graphics g = Graphics.FromImage(bmp); 739using Graphics g = Graphics.FromImage(bmp); 750using Graphics g = Graphics.FromImage(bmp); 762using Graphics g = Graphics.FromImage(bmp); 775using Graphics g = Graphics.FromImage(bmp); 801using Graphics g = Graphics.FromImage(bmp); 816using Graphics g = Graphics.FromImage(bmp); 828using Graphics g = Graphics.FromImage(bmp); 1037using Graphics graphics = Graphics.FromHwnd(0);
System\Drawing\Printing\PrintDocumentTests.cs (2)
252public override Graphics OnStartPage(PrintDocument document, PrintPageEventArgs e) 255return 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)
814using Graphics targetGraphics = Graphics.FromImage(targetImage);
System.Windows.Forms (592)
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)
2333using Graphics g = CreateGraphics(); 4523public Graphics CreateGraphics() 4529internal Graphics CreateGraphicsInternal() 4531return Graphics.FromHwndInternal(Handle); 4993using Graphics g = Graphics.FromImage(image); 5004using Graphics destGraphics = Graphics.FromImage(bitmap); 5890using Graphics graphics = CreateGraphicsInternal(); 8274Graphics g = e.GraphicsInternal;
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (9)
88/// Get <see cref="StringFormat"/> object for rendering text using GDI+ (<see cref="Graphics"/>). 99internal static void DrawDitheredFill(Graphics g, Color color1, Color color2, Rectangle bounds) 340Graphics g = e.GraphicsInternal; 368private void DrawFocus(Graphics g, Rectangle r) 376internal virtual void DrawImageCore(Graphics graphics, Image image, Rectangle imageBounds, Point imageStart, LayoutData layout) 436Graphics? graphics = deviceContext.TryGetGraphics(create: true); 460Graphics g = e.GraphicsInternal; 650internal static ColorOptions PaintFlatRender(Graphics g, Color foreColor, Color backColor, bool enabled) => 656internal 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\DarkMode\ButtonDarkModeAdapter.cs (3)
33var g = e.GraphicsInternal; 71var g = e.GraphicsInternal; 108var g = e.GraphicsInternal;
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\ButtonDarkModeRendererBase.cs (4)
21private static void ClearBackground(Graphics graphics, Color parentBackgroundColor) 32Graphics graphics, 83public abstract Rectangle DrawButtonBackground(Graphics graphics, Rectangle bounds, PushButtonState state, bool isDefault); 85public abstract void DrawFocusIndicator(Graphics graphics, Rectangle contentBounds, bool isDefault);
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\FlatButtonDarkModeRenderer.cs (4)
26Graphics graphics, Rectangle bounds, PushButtonState state, bool isDefault) 39public override void DrawFocusIndicator(Graphics g, Rectangle contentBounds, bool isDefault) 80private static void DrawButtonBorder(Graphics g, Rectangle bounds, PushButtonState state, bool isDefault) 97private static void DrawSingleBorder(Graphics g, Rectangle rect, Color color)
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\IButtonRenderer.cs (4)
19static void DrawButtonBorder(Graphics graphics, GraphicsPath path, Color borderColor, int borderWidth) 43Graphics graphics, 62Rectangle DrawButtonBackground(Graphics graphics, Rectangle bounds, PushButtonState state, bool isDefault); 70void DrawFocusIndicator(Graphics graphics, Rectangle contentBounds, bool isDefault);
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\PopupButtonDarkModeRenderer.cs (3)
33public override Rectangle DrawButtonBackground(Graphics graphics, Rectangle bounds, PushButtonState state, bool isDefault) 69public override void DrawFocusIndicator(Graphics graphics, Rectangle contentBounds, bool isDefault) 126private static void DrawButtonBorder(Graphics graphics, Rectangle bounds, PushButtonState state, bool isDefault)
System\Windows\Forms\Controls\Buttons\ButtonInternal\DarkMode\SystemButtonDarkModeRenderer.cs (3)
33public override Rectangle DrawButtonBackground(Graphics graphics, Rectangle bounds, PushButtonState state, bool isDefault) 54public override void DrawFocusIndicator(Graphics graphics, Rectangle contentBounds, bool isDefault) 118Graphics graphics,
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)
3395using Graphics graphics = CreateGraphicsInternal(); 3609using Graphics graphics = CreateGraphicsInternal(); 3767using Graphics g = Graphics.FromHdcInternal((IntPtr)dc); 3786using Graphics g = Graphics.FromHdcInternal((HDC)m.WParamInternal);
System\Windows\Forms\Controls\ComboBox\ComboBox.FlatComboAdapter.cs (2)
66public virtual void DrawFlatCombo(ComboBox comboBox, Graphics g) 142protected virtual void DrawFlatComboDropDown(ComboBox comboBox, Graphics g, Rectangle dropDownRect)
System\Windows\Forms\Controls\ComboBox\ComboBoxRenderer.cs (7)
34private static void DrawBackground(Graphics g, Rectangle bounds, ComboBoxState state) 56public static void DrawTextBox(Graphics g, Rectangle bounds, ComboBoxState state) 66public static void DrawTextBox(Graphics g, Rectangle bounds, string? comboBoxText, Font? font, ComboBoxState state) 74public static void DrawTextBox(Graphics g, Rectangle bounds, string? comboBoxText, Font? font, Rectangle textBounds, ComboBoxState state) 82public static void DrawTextBox(Graphics g, Rectangle bounds, string? comboBoxText, Font? font, TextFormatFlags flags, ComboBoxState state) 94public static void DrawTextBox(Graphics g, Rectangle bounds, string? comboBoxText, Font? font, Rectangle textBounds, TextFormatFlags flags, ComboBoxState state) 106public static void DrawDropDownButton(Graphics g, Rectangle bounds, ComboBoxState state)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (9)
5435using (Graphics graphics = CreateGraphicsInternal()) 5629private void DrawColHeaderShadow(Graphics g, int mouseX) 16680Graphics g = e.GraphicsInternal; 19204protected virtual void PaintBackground(Graphics graphics, Rectangle clipBounds, Rectangle gridBounds) 19275private void PaintBorder(Graphics g, Rectangle clipRect, Rectangle bounds) 19336private void PaintColumnHeaders(Graphics g, Rectangle clipBounds, bool singleBorderAdded) 19489Graphics g, 19553private void PaintRows(Graphics g, 19675private void PaintTopLeftHeaderCell(Graphics g)
System\Windows\Forms\Controls\DataGridView\DataGridViewButtonCell.cs (6)
149protected override Rectangle GetContentBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 214protected override Rectangle GetErrorIconBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 277Graphics graphics, 408private static Rectangle GetThemeMargins(Graphics g) 597Graphics graphics, 636Graphics 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, 3069Graphics graphics, 3084Graphics graphics, 3121Graphics graphics, 3526Graphics graphics, 3546private static void PaintErrorIcon(Graphics graphics, Rectangle iconBounds) 3559Graphics graphics, 3591Graphics graphics, 3631internal void PaintWork(Graphics graphics, 3958internal 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, 996Graphics graphics, 1040Graphics g, 1360using (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) 820private int GetDropDownButtonHeight(Graphics graphics, DataGridViewCellStyle cellStyle) 831protected override Rectangle GetErrorIconBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 1160Graphics graphics, 1810Graphics graphics, 1853Graphics 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) 487protected override Rectangle GetErrorIconBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 534Graphics graphics, 833Graphics graphics, 872Graphics g,
System\Windows\Forms\Controls\DataGridView\DataGridViewRow.cs (4)
1175Graphics graphics, 1410Graphics graphics, 1485Graphics graphics, 1678Graphics 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, 703using Graphics gFlip = Graphics.FromImage(bmFlipXPThemes); 1022Graphics 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) 323protected override Rectangle GetErrorIconBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) 386Graphics graphics, 596Graphics graphics, 640Graphics 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)
2650using Graphics g = nmcd->nmcd.hdc.CreateGraphics(); 2714using Graphics g = nmcd->nmcd.hdc.CreateGraphics(); 5528using Graphics g = CreateGraphicsInternal(); 6067using Graphics g = nmcd->hdc.CreateGraphics(); 6972using 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)
89internal override void DrawImageCore(Graphics graphics, Image image, Rectangle imageBounds, Point imageStart, LayoutData layout)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (11)
1181protected int GetLabelTextWidth(string? text, Graphics graphics, Font font) 1204public int GetValueTextWidth(string text, Graphics graphics, Font font) 1496/// Paints the label portion of this <see cref="GridEntry"/> into the given <see cref="Graphics"/> object. 1505Graphics g, 1622/// the given <see cref="Graphics"/> object. 1624private void PaintOutlineGlyph(Graphics g, Rectangle r) 1658void PaintOutlineWithExplorerTreeStyle(Graphics g, Rectangle r, HWND hwnd) 1699Graphics graphics, 1723void PaintOutlineWithClassicStyle(Graphics g, Rectangle r) 1775/// Paints the value portion of this <see cref="GridEntry"/> into the given <see cref="Graphics"/> object. 1783Graphics g,
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
299using (Graphics g = CreateGraphics())
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\HelpPane.cs (1)
91using 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(); 3270Graphics g = e.Graphics; 4129private 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)
172using 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)
2889using 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)
2652using Graphics g = Graphics.FromImage(image); 3448Graphics toolstripGraphics = e.GraphicsInternal; 3494Graphics itemGraphics = itemHDC.CreateGraphics(); 3637Graphics g = e.GraphicsInternal; 3782internal 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)
346internal void PaintText(Graphics g)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (3)
709using (Graphics g = Graphics.FromImage(image)) 949Graphics 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)
637Graphics g = e.Graphics; 899Graphics g = e.Graphics; 922using Graphics textGraphics = Graphics.FromImage(textBmp); 1055Graphics g = e.Graphics; 1176using (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\ToolStripSystemDarkModeRenderer.cs (6)
99private static void FillBackground(Graphics g, Rectangle bounds, Color backColor) 127Graphics g = e.Graphics; 181Graphics g = e.Graphics; 212Graphics g = e.Graphics; 362Graphics g = e.Graphics; 525Graphics g = e.Graphics;
System\Windows\Forms\Controls\ToolStrips\ToolStripSystemRenderer.cs (10)
110private static void FillBackground(Graphics g, Rectangle bounds, Color backColor) 234Graphics g = e.Graphics; 332Graphics g = e.Graphics; 436Graphics g = e.Graphics; 467Graphics g = e.Graphics; 576Graphics g = e.Graphics; 707Graphics g = e.Graphics; 750private static void RenderSeparatorInternal(Graphics g, ToolStripItem item, Rectangle bounds, bool vertical) 805private static void RenderSmall3DBorderInternal(Graphics g, Rectangle bounds, ToolBarState state, bool rightToLeft) 852Graphics 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\Controls\Unsupported\DataGrid\DataGridBoolColumn.cs (4)
78protected internal override Size GetPreferredSize(Graphics g, object value) => throw null; 82protected internal override int GetPreferredHeight(Graphics g, object value) => throw null; 96protected internal override void Paint(Graphics g, 103protected internal override void Paint(Graphics g, Rectangle bounds, CurrencyManager source, int rowNum)
System\Windows\Forms\Controls\Unsupported\DataGrid\DataGridColumnStyle.cs (5)
154protected internal abstract Size GetPreferredSize(Graphics g, object value); 158protected internal abstract int GetPreferredHeight(Graphics g, object value); 198Graphics g, 205Graphics g, 214protected internal abstract void Paint(Graphics g, Rectangle bounds, CurrencyManager source, int rowNum);
System\Windows\Forms\Controls\Unsupported\DataGrid\DataGridTextBoxColumn.cs (6)
64Graphics g, 71Graphics g, 79protected internal override Size GetPreferredSize(Graphics g, object value) => throw null; 83protected internal override int GetPreferredHeight(Graphics g, object value) => throw null; 99Graphics g, 106protected internal override void Paint(Graphics g, Rectangle bounds, CurrencyManager source, int rowNum)
System\Windows\Forms\Controls\Unsupported\StatusBar\StatusBarDrawItemEventArgs.cs (2)
24Graphics g, 37Graphics g,
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)
217using Graphics g = _message.CreateGraphicsInternal();
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
376using Graphics g = hdc.CreateGraphics();
System\Windows\Forms\Form.cs (2)
3808using 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)
229using 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)
221using Graphics graphics = dc.CreateGraphics(); 391internal static void PrintBorder(Graphics graphics, Rectangle bounds, BorderStyle style, Border3DStyle b3dStyle) 412Graphics g, 518public static void DrawBorder(Graphics graphics, Rectangle bounds, Color color, ButtonBorderStyle style) 545Graphics graphics, 723else if (deviceContext.TryGetGraphics(create: true) is Graphics graphics) 782else if (deviceContext.TryGetGraphics(create: true) is Graphics graphics) 846else if (deviceContext.TryGetGraphics(create: true) is Graphics graphics) 920else if (deviceContext.TryGetGraphics(create: true) is Graphics graphics) 973public static void DrawBorder3D(Graphics graphics, Rectangle rectangle) 983public static void DrawBorder3D(Graphics graphics, Rectangle rectangle, Border3DStyle style) 994public static void DrawBorder3D(Graphics graphics, Rectangle rectangle, Border3DStyle style, Border3DSide sides) 1000public static void DrawBorder3D(Graphics graphics, int x, int y, int width, int height) 1010public static void DrawBorder3D(Graphics graphics, int x, int y, int width, int height, Border3DStyle style) 1020public static void DrawBorder3D(Graphics graphics, int x, int y, int width, int height, Border3DStyle style, Border3DSide sides) 1052private static void DrawBorderComplex(Graphics graphics, Rectangle bounds, Color color, ButtonBorderStyle style) 1150Graphics? graphics = context.TryGetGraphics(create: true); 1176public static void DrawButton(Graphics graphics, Rectangle rectangle, ButtonState state) 1182public static void DrawButton(Graphics graphics, int x, int y, int width, int height, ButtonState state) 1197Graphics graphics, 1210Graphics graphics, 1224public static void DrawCheckBox(Graphics graphics, Rectangle rectangle, ButtonState state) 1230public static void DrawCheckBox(Graphics graphics, int x, int y, int width, int height, ButtonState state) 1252public static void DrawComboButton(Graphics graphics, Rectangle rectangle, ButtonState state) 1258public static void DrawComboButton(Graphics graphics, int x, int y, int width, int height, ButtonState state) 1270public static void DrawContainerGrabHandle(Graphics graphics, Rectangle bounds) 1314private static void DrawFlatCheckBox(Graphics graphics, Rectangle rectangle, ButtonState state) 1335Graphics graphics, 1368using (Graphics g2 = Graphics.FromImage(bitmap)) 1393public static void DrawFocusRectangle(Graphics graphics, Rectangle rectangle) 1400public static void DrawFocusRectangle(Graphics graphics, Rectangle rectangle, Color foreColor, Color backColor) 1403internal static void DrawHighContrastFocusRectangle(Graphics graphics, Rectangle rectangle, Color color) 1406internal static void DrawBlackWhiteFocusRectangle(Graphics graphics, Rectangle rectangle, Color color) 1409private static void DrawFocusRectangle(Graphics graphics, Rectangle rectangle, Color color, bool highContrast, bool blackAndWhite = false) 1425Graphics graphics, 1438using Graphics g2 = Graphics.FromImage(bitmap); 1479public static void DrawGrabHandle(Graphics graphics, Rectangle rectangle, bool primary, bool enabled) 1506public static void DrawGrid(Graphics graphics, Rectangle area, Size pixelsBetweenDots, Color backColor) 1552Graphics graphics, 1576internal static void DrawImageReplaceColor(Graphics g, Image image, Rectangle dest, Color oldColor, Color newColor) 1589public static void DrawImageDisabled(Graphics graphics, Image image, int x, int y, Color background) 1596internal static void DrawImageDisabled(Graphics graphics, Image image, Rectangle imageBounds, bool unscaledImage) 1633using (Graphics g = Graphics.FromImage(bitmap)) 1662internal static void EnforceHeaderCellDividerContrast(Graphics graphics, Rectangle bounds) 1679public static void DrawLockedFrame(Graphics graphics, Rectangle rectangle, bool primary) 1697public static void DrawMenuGlyph(Graphics graphics, Rectangle rectangle, MenuGlyph glyph) 1705Graphics graphics, 1719public static void DrawMenuGlyph(Graphics graphics, int x, int y, int width, int height, MenuGlyph glyph) 1727Graphics graphics, 1742public static void DrawMixedCheckBox(Graphics graphics, Rectangle rectangle, ButtonState state) 1745public static void DrawMixedCheckBox(Graphics graphics, int x, int y, int width, int height, ButtonState state) 1759public static void DrawRadioButton(Graphics graphics, Rectangle rectangle, ButtonState state) 1765public static void DrawRadioButton(Graphics graphics, int x, int y, int width, int height, ButtonState state) 1841public static void DrawScrollButton(Graphics graphics, Rectangle rectangle, ScrollButton button, ButtonState state) 1848Graphics graphics, 1864Graphics graphics, 1883public static void DrawSizeGrip(Graphics graphics, Color backColor, Rectangle bounds) 1889public static void DrawSizeGrip(Graphics graphics, Color backColor, int x, int y, int width, int height) 1941Graphics graphics, 2017public static void DrawVisualStyleBorder(Graphics graphics, Rectangle bounds) 2317Graphics g, 2351internal 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) 110_graphics = Graphics.FromHdcInternal((IntPtr)_hdc); 122internal Graphics? GetGraphics(bool create) 147internal 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)
2324using 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 (90)
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)
280public override void PaintLine(Graphics g, int lineWidth, int lineHeight) 292using 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)
335using 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)
1452using Graphics adornerGraphics = BehaviorService.AdornerWindowGraphics; 2041using Graphics g = Graphics.FromHdc((HDC)m.WParamInternal); 2078using 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\ToolStripCollectionEditor.ToolStripItemEditorForm.cs (1)
547using (Graphics g = _newItemTypes.CreateGraphics())
System\Windows\Forms\Design\ToolStripItemBehavior.cs (1)
914Graphics g = bSvc.AdornerWindowGraphics;
System\Windows\Forms\Design\ToolStripPanelDesigner.cs (1)
237private void DrawBorder(Graphics graphics)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (6)
1773private void DrawArrow(Graphics g, Rectangle bounds) 1782private void DrawDropDown(Graphics g, Rectangle bounds, int state) 1817Graphics g = e.Graphics; 1831Graphics g = e.Graphics; 1846Graphics g = e.Graphics; 1932Graphics g = e.Graphics;
System.Windows.Forms.Design.Tests (19)
System\ComponentModel\Design\ByteViewerTests.cs (8)
428using Graphics graphics = Graphics.FromImage(image); 469using Graphics graphics = Graphics.FromImage(image); 514using Graphics graphics = Graphics.FromImage(image); 544using Graphics graphics = Graphics.FromImage(image);
System\Drawing\Design\FontNameEditorTests.cs (2)
88using var g = Graphics.FromImage(bitmap);
System\Drawing\Design\ImageEditorTests.cs (4)
164using Graphics graphics = Graphics.FromImage(image); 188using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\Design\DesignerUtilsTests.cs (2)
15private readonly Graphics _graphics; 23_graphics = Graphics.FromImage(_bitmap);
System\Windows\Forms\Design\ImageIndexEditorTests.cs (2)
34using var graphics = Graphics.FromImage(bitmap);
System\Windows\Forms\Design\ToolStripAdornerWindowServiceTests.cs (1)
60Graphics graphics = _service.ToolStripAdornerWindowGraphics;
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 (884)
CheckedListBoxTests.cs (11)
422using Graphics graphics = Graphics.FromImage(image); 444using Graphics graphics = Graphics.FromImage(image); 465using Graphics graphics = Graphics.FromImage(image); 476using Graphics graphics = Graphics.FromImage(image); 489using Graphics graphics = Graphics.FromImage(image); 816MeasureItemEventArgs eventArgs = new(Graphics.FromImage(image), 1);
System\Drawing\Design\PaintValueEventArgsTests.cs (2)
25using Graphics graphics = Graphics.FromImage(image);
System\Drawing\Design\UITypeEditorTests.cs (9)
103Graphics graphics = Graphics.FromImage(bitmap); 113using var graphics = Graphics.FromImage(image); 121Graphics graphics = Graphics.FromImage(bitmap); 128public void UITypeEditor_PaintValue_Invoke_CallsVirtualPaintValue(object value, Graphics canvas, Rectangle rectangle) 135using (var graphics = Graphics.FromImage(image))
System\Windows\Forms\ButtonTests.cs (4)
3426using Graphics graphics = Graphics.FromImage(image); 3499using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\CheckBoxRendererTests.cs (8)
28using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 64using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 101using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 136using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC);
System\Windows\Forms\ComboBoxTests.cs (20)
338control.TriggerMeasureItem(new MeasureItemEventArgs(Graphics.FromHwnd(IntPtr.Zero), 0, 0)); 343control.TriggerMeasureItem(new MeasureItemEventArgs(Graphics.FromHwnd(IntPtr.Zero), 0, 0)); 362comboBox.TestAccessor().Dynamic.OnPaint(new PaintEventArgs(Graphics.FromHwnd(comboBox.Handle), default)); 375comboBox.InvokeOnPaint(new PaintEventArgs(Graphics.FromHwnd(comboBox.Handle), default)); 379comboBox.InvokeOnPaint(new PaintEventArgs(Graphics.FromHwnd(comboBox.Handle), default)); 388Graphics graphics = Graphics.FromImage(bitmap); 726Graphics graphics = Graphics.FromImage(bitmap); 749control.TestRaiseOnDrawItem(new DrawItemEventArgs(Graphics.FromImage(bitmap), control.Font, default, 0, DrawItemState.Default)); 769Graphics graphics = Graphics.FromImage(bitmap); 1970using Graphics graphics = Graphics.FromImage(image); 2007using Graphics graphics = Graphics.FromImage(image); 2067using Graphics graphics = Graphics.FromImage(image); 2111using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ControlPaintTests.cs (136)
564using Graphics graphics = Graphics.FromImage(image); 577using Graphics graphics = Graphics.FromImage(image); 623using Graphics graphics = Graphics.FromImage(image); 665using Graphics graphics = Graphics.FromImage(image); 703using Graphics graphics = Graphics.FromImage(image); 728using Graphics graphics = Graphics.FromImage(image); 756using Graphics graphics = Graphics.FromImage(image); 768using Graphics graphics = Graphics.FromImage(image); 780using Graphics graphics = Graphics.FromImage(image); 792using Graphics graphics = Graphics.FromImage(image); 828using Graphics graphics = Graphics.FromImage(image); 840using Graphics graphics = Graphics.FromImage(image); 866using Graphics graphics = Graphics.FromImage(image); 877using Graphics graphics = Graphics.FromImage(image); 888using Graphics graphics = Graphics.FromImage(image); 912using Graphics graphics = Graphics.FromImage(image); 924using Graphics graphics = Graphics.FromImage(image); 949using Graphics graphics = Graphics.FromImage(image); 960using Graphics graphics = Graphics.FromImage(image); 971using Graphics graphics = Graphics.FromImage(image); 992using Graphics graphics = Graphics.FromImage(image); 1004using Graphics graphics = Graphics.FromImage(image); 1030using Graphics graphics = Graphics.FromImage(image); 1041using Graphics graphics = Graphics.FromImage(image); 1052using Graphics graphics = Graphics.FromImage(image); 1073using Graphics graphics = Graphics.FromImage(image); 1085using Graphics graphics = Graphics.FromImage(image); 1110using Graphics graphics = Graphics.FromImage(image); 1121using Graphics graphics = Graphics.FromImage(image); 1132using Graphics graphics = Graphics.FromImage(image); 1152using Graphics graphics = Graphics.FromImage(image); 1180using Graphics graphics = Graphics.FromImage(image); 1211using Graphics graphics = Graphics.FromImage(image); 1246using Graphics graphics = Graphics.FromImage(image); 1283using Graphics graphics = Graphics.FromImage(image); 1304using Graphics graphics = Graphics.FromImage(image); 1332using Graphics graphics = Graphics.FromImage(sourceImage); 1350using Graphics graphics = Graphics.FromImage(image); 1372using Graphics graphics = Graphics.FromImage(image); 1403using Graphics graphics = Graphics.FromImage(image); 1435using Graphics graphics = Graphics.FromImage(image); 1447using Graphics graphics = Graphics.FromImage(image); 1459using Graphics graphics = Graphics.FromImage(image); 1489using Graphics graphics = Graphics.FromImage(image); 1501using Graphics graphics = Graphics.FromImage(image); 1513using Graphics graphics = Graphics.FromImage(image); 1534using Graphics graphics = Graphics.FromImage(image); 1546using Graphics graphics = Graphics.FromImage(image); 1571using Graphics graphics = Graphics.FromImage(image); 1582using Graphics graphics = Graphics.FromImage(image); 1593using Graphics graphics = Graphics.FromImage(image); 1614using Graphics graphics = Graphics.FromImage(image); 1626using Graphics graphics = Graphics.FromImage(image); 1651using Graphics graphics = Graphics.FromImage(image); 1662using Graphics graphics = Graphics.FromImage(image); 1673using Graphics graphics = Graphics.FromImage(image); 1752using Graphics graphics = Graphics.FromImage(image); 1764using Graphics graphics = Graphics.FromImage(image); 1789using Graphics graphics = Graphics.FromImage(image); 1800using Graphics graphics = Graphics.FromImage(image); 1811using Graphics graphics = Graphics.FromImage(image); 1837using Graphics graphics = Graphics.FromImage(image); 1872using Graphics graphics = Graphics.FromImage(image); 1884using Graphics graphics = Graphics.FromImage(image); 1920using Graphics graphics = Graphics.FromImage(image); 1932using Graphics graphics = Graphics.FromImage(image); 1968using Graphics graphics = Graphics.FromImage(image); 1997using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ControlPaintTests.Rendering.cs (14)
21using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 40using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 100using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 175using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 249using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 323using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 351using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC);
System\Windows\Forms\ControlTests.Handlers.cs (18)
3857using Graphics graphics = Graphics.FromImage(image); 3979using Graphics graphics = Graphics.FromImage(image); 4029using Graphics graphics = Graphics.FromImage(image); 4106using Graphics graphics = Graphics.FromImage(image); 4639using Graphics graphics = Graphics.FromImage(image); 4658using Graphics graphics = Graphics.FromImage(image); 4697using Graphics graphics = Graphics.FromImage(image); 4726using Graphics graphics = Graphics.FromImage(image); 4762using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ControlTests.Methods.cs (14)
4265using Graphics graphics = Graphics.FromImage(image); 4274using Graphics graphics = Graphics.FromImage(image); 4321using Graphics graphics = Graphics.FromImage(image); 12863using Graphics graphics = Graphics.FromImage(image); 12958using Graphics graphics = Graphics.FromImage(image); 13205using Graphics graphics = Graphics.FromImage(image); 13322using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\CursorTests.cs (12)
382using Graphics graphics = Graphics.FromImage(image); 392using Graphics graphics = Graphics.FromImage(image); 408Graphics graphics = Graphics.FromImage(image); 419using Graphics graphics = Graphics.FromImage(image); 429using Graphics graphics = Graphics.FromImage(image); 445Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\DataGridViewCellPaintingEventArgsTests.cs (32)
24using Graphics graphics = Graphics.FromImage(image); 47using Graphics graphics = Graphics.FromImage(image); 62using Graphics graphics = Graphics.FromImage(image); 72using Graphics graphics = Graphics.FromImage(image); 83using Graphics graphics = Graphics.FromImage(image); 94using Graphics graphics = Graphics.FromImage(image); 107using Graphics graphics = Graphics.FromImage(image); 120using Graphics graphics = Graphics.FromImage(image); 133using Graphics graphics = Graphics.FromImage(image); 144using Graphics graphics = Graphics.FromImage(image); 157using Graphics graphics = Graphics.FromImage(image); 170using Graphics graphics = Graphics.FromImage(image); 183using Graphics graphics = Graphics.FromImage(image); 194using Graphics graphics = Graphics.FromImage(image); 207using Graphics graphics = Graphics.FromImage(image); 220using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\DataGridViewCellTests.cs (58)
3680using Graphics graphics = Graphics.FromImage(image); 3832using Graphics graphics = Graphics.FromImage(image); 5255using Graphics graphics = Graphics.FromImage(image); 5270using Graphics graphics = Graphics.FromImage(image); 5292using Graphics graphics = Graphics.FromImage(image); 5305using Graphics graphics = Graphics.FromImage(image); 5317using Graphics graphics = Graphics.FromImage(image); 5329using Graphics graphics = Graphics.FromImage(image); 5343using Graphics graphics = Graphics.FromImage(image); 5357using Graphics graphics = Graphics.FromImage(image); 5367using Graphics graphics = Graphics.FromImage(image); 5376using Graphics graphics = Graphics.FromImage(image); 5385using Graphics graphics = Graphics.FromImage(image); 5399using Graphics graphics = Graphics.FromImage(image); 5413using Graphics graphics = Graphics.FromImage(image); 5422using Graphics graphics = Graphics.FromImage(image); 5431using Graphics graphics = Graphics.FromImage(image); 5445using Graphics graphics = Graphics.FromImage(image); 5459using Graphics graphics = Graphics.FromImage(image); 5469using Graphics graphics = Graphics.FromImage(image); 5478using Graphics graphics = Graphics.FromImage(image); 6021using Graphics graphics = Graphics.FromImage(image); 6029using Graphics graphics = Graphics.FromImage(image); 6045using Graphics graphics = Graphics.FromImage(image); 6055using Graphics graphics = Graphics.FromImage(image); 6065using Graphics graphics = Graphics.FromImage(image); 6602public new Rectangle GetContentBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) => base.GetContentBounds(graphics, cellStyle, rowIndex); 6604public new Rectangle GetErrorIconBounds(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex) => base.GetErrorIconBounds(graphics, cellStyle, rowIndex); 6613public new Size GetPreferredSize(Graphics graphics, DataGridViewCellStyle cellStyle, int rowIndex, Size constraintSize) => base.GetPreferredSize(graphics, cellStyle, rowIndex, constraintSize); 6677public 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) 6682public new void PaintBorder(Graphics graphics, Rectangle clipBounds, Rectangle bounds, DataGridViewCellStyle cellStyle, DataGridViewAdvancedBorderStyle advancedBorderStyle) 6687public new void PaintErrorIcon(Graphics graphics, Rectangle clipBounds, Rectangle cellValueBounds, string errorText) => base.PaintErrorIcon(graphics, clipBounds, cellValueBounds, errorText);
System\Windows\Forms\DataGridViewHeaderCellTests.cs (3)
4621using Graphics graphics = Graphics.FromImage(image); 4711public new void Paint(Graphics graphics,
System\Windows\Forms\DataGridViewLinkCellTests.cs (2)
656using Graphics graphics = Graphics.FromImage(bitmap);
System\Windows\Forms\DataGridViewRowPostPaintEventArgsTests.cs (30)
24using Graphics graphics = Graphics.FromImage(image); 43using Graphics graphics = Graphics.FromImage(image); 58using Graphics graphics = Graphics.FromImage(image); 75using Graphics graphics = Graphics.FromImage(image); 88using Graphics graphics = Graphics.FromImage(image); 101using Graphics graphics = Graphics.FromImage(image); 112using Graphics graphics = Graphics.FromImage(image); 125using Graphics graphics = Graphics.FromImage(image); 136using Graphics graphics = Graphics.FromImage(image); 149using Graphics graphics = Graphics.FromImage(image); 160using Graphics graphics = Graphics.FromImage(image); 173using Graphics graphics = Graphics.FromImage(image); 184using Graphics graphics = Graphics.FromImage(image); 197using Graphics graphics = Graphics.FromImage(image); 210using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\DataGridViewRowPrePaintEventArgsTests.cs (35)
15Graphics graphics = Graphics.FromImage(image); 24public 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) 44using Graphics graphics = Graphics.FromImage(image); 59using Graphics graphics = Graphics.FromImage(image); 76using Graphics graphics = Graphics.FromImage(image); 91using Graphics graphics = Graphics.FromImage(image); 105using Graphics graphics = Graphics.FromImage(image); 115using Graphics graphics = Graphics.FromImage(image); 128using Graphics graphics = Graphics.FromImage(image); 139using Graphics graphics = Graphics.FromImage(image); 152using Graphics graphics = Graphics.FromImage(image); 163using Graphics graphics = Graphics.FromImage(image); 176using Graphics graphics = Graphics.FromImage(image); 187using Graphics graphics = Graphics.FromImage(image); 200using Graphics graphics = Graphics.FromImage(image); 211using Graphics graphics = Graphics.FromImage(image); 224using Graphics graphics = Graphics.FromImage(image); 237using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\DataGridViewRowTests.cs (80)
4199using Graphics graphics = Graphics.FromImage(image); 4215using Graphics graphics = Graphics.FromImage(image); 4238using Graphics graphics = Graphics.FromImage(image); 4595using Graphics graphics = Graphics.FromImage(image); 4619using Graphics graphics = Graphics.FromImage(image); 4645using Graphics graphics = Graphics.FromImage(image); 4669using Graphics graphics = Graphics.FromImage(image); 4693using Graphics graphics = Graphics.FromImage(image); 4717using Graphics graphics = Graphics.FromImage(image); 4741using Graphics graphics = Graphics.FromImage(image); 4766using Graphics graphics = Graphics.FromImage(image); 4791using Graphics graphics = Graphics.FromImage(image); 4799using Graphics graphics = Graphics.FromImage(image); 4876using Graphics graphics = Graphics.FromImage(image); 5002using Graphics graphics = Graphics.FromImage(image); 5041using Graphics graphics = Graphics.FromImage(image); 5065using Graphics graphics = Graphics.FromImage(image); 5091using Graphics graphics = Graphics.FromImage(image); 5115using Graphics graphics = Graphics.FromImage(image); 5139using Graphics graphics = Graphics.FromImage(image); 5163using Graphics graphics = Graphics.FromImage(image); 5187using Graphics graphics = Graphics.FromImage(image); 5212using Graphics graphics = Graphics.FromImage(image); 5237using Graphics graphics = Graphics.FromImage(image); 5311using Graphics graphics = Graphics.FromImage(image); 5330using Graphics graphics = Graphics.FromImage(image); 5361using Graphics graphics = Graphics.FromImage(image); 5385using Graphics graphics = Graphics.FromImage(image); 5411using Graphics graphics = Graphics.FromImage(image); 5435using Graphics graphics = Graphics.FromImage(image); 5459using Graphics graphics = Graphics.FromImage(image); 5483using Graphics graphics = Graphics.FromImage(image); 5507using Graphics graphics = Graphics.FromImage(image); 5532using Graphics graphics = Graphics.FromImage(image); 5557using Graphics graphics = Graphics.FromImage(image); 5634using Graphics graphics = Graphics.FromImage(image); 5650using Graphics graphics = Graphics.FromImage(image); 5668using Graphics graphics = Graphics.FromImage(image); 5772public new void DrawFocus(Graphics graphics, Rectangle clipBounds, Rectangle bounds, int rowIndex, DataGridViewElementStates rowState, DataGridViewCellStyle cellStyle, bool cellsPaintSelectionBackground) 5777public new void Paint(Graphics graphics, Rectangle clipBounds, Rectangle rowBounds, int rowIndex, DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow) 5782public new void PaintCells(Graphics graphics, Rectangle clipBounds, Rectangle rowBounds, int rowIndex, DataGridViewElementStates rowState, bool isFirstDisplayedRow, bool isLastVisibleRow, DataGridViewPaintParts paintParts) 5787public 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)
548control.OnPaint(new(Graphics.FromImage(bmp), default)); 556control.OnPaint(new(Graphics.FromImage(bmp), default));
System\Windows\Forms\DrawItemEventArgsTests.cs (8)
27using Graphics graphics = Graphics.FromImage(image); 52using Graphics graphics = Graphics.FromImage(image); 92using Graphics graphics = Graphics.FromImage(image); 102using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\DrawListViewColumnHeaderEventArgsTests.cs (12)
26using Graphics graphics = Graphics.FromImage(image); 50using Graphics graphics = Graphics.FromImage(image); 78using Graphics graphics = Graphics.FromImage(image); 90using Graphics graphics = Graphics.FromImage(image); 100using Graphics graphics = Graphics.FromImage(image); 116using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\DrawListViewItemEventArgsTests.cs (14)
26using Graphics graphics = Graphics.FromImage(image); 47using Graphics graphics = Graphics.FromImage(image); 56using Graphics graphics = Graphics.FromImage(image); 115using Graphics graphics = Graphics.FromImage(image); 125using Graphics graphics = Graphics.FromImage(image); 135using Graphics graphics = Graphics.FromImage(image); 145using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\DrawListViewSubItemEventArgsTests.cs (12)
27using Graphics graphics = Graphics.FromImage(image); 50using Graphics graphics = Graphics.FromImage(image); 60using Graphics graphics = Graphics.FromImage(image); 69using Graphics graphics = Graphics.FromImage(image); 119using Graphics graphics = Graphics.FromImage(image); 129using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\DrawToolTipEventArgsTests.cs (10)
25using Graphics graphics = Graphics.FromImage(image); 50using Graphics graphics = Graphics.FromImage(image); 60using Graphics graphics = Graphics.FromImage(image); 70using Graphics graphics = Graphics.FromImage(image); 80using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\DrawTreeNodeEventArgsTests.cs (4)
25using Graphics graphics = Graphics.FromImage(image); 39using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\GroupBoxTests.cs (12)
1852using Graphics graphics = Graphics.FromImage(image); 1890using Graphics graphics = Graphics.FromImage(image); 2090using Graphics graphics = Graphics.FromImage(image); 2128using Graphics graphics = Graphics.FromImage(image); 2191using Graphics graphics = Graphics.FromImage(image); 2236using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ImageListTests.cs (16)
933using Graphics graphics = Graphics.FromImage(sourceImage); 948using Graphics graphics = Graphics.FromImage(sourceImage); 962using Graphics graphics = Graphics.FromImage(sourceImage); 977using Graphics graphics = Graphics.FromImage(sourceImage); 1000using Graphics graphics = Graphics.FromImage(sourceImage); 1015using Graphics graphics = Graphics.FromImage(sourceImage); 1040using Graphics graphics = Graphics.FromImage(sourceImage); 1056using Graphics graphics = Graphics.FromImage(sourceImage);
System\Windows\Forms\ListBoxTests.cs (4)
5521Graphics graphics = Graphics.FromImage(bitmap); 5642using Graphics graphics = Graphics.FromImage(bitmap);
System\Windows\Forms\MeasureItemEventArgsTests.cs (10)
16Graphics graphics = Graphics.FromImage(image); 25public void Ctor_Graphics_Int_Int(Graphics graphics, int index, int itemHeight) 37Graphics graphics = Graphics.FromImage(image); 46public void Ctor_Graphics_Int(Graphics graphics, int index) 62using Graphics graphics = Graphics.FromImage(image); 77using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\PaintEventArgsTests.cs (10)
25using Graphics graphics = Graphics.FromImage(image); 35Assert.Throws<ArgumentNullException>("graphics", () => new PaintEventArgs((Graphics)null, new Rectangle(1, 2, 3, 4))); 42using Graphics graphics = Graphics.FromImage(image); 54using Graphics graphics = Graphics.FromImage(image); 66Graphics g1 = args.Graphics; 67Graphics g2 = args.Graphics; 73public SubPaintEventArgs(Graphics graphics, Rectangle clipRect) : base(graphics, clipRect)
System\Windows\Forms\ProgressBarRendererTest.cs (3)
66private void TestProgressBarRenderer(Action<Graphics, Rectangle> drawAction) 70using Graphics graphics1 = Graphics.FromImage(bitmap1);
System\Windows\Forms\RadioButtonRendererTests.cs (18)
26using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 57using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 94using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 122using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 206using Graphics g = Graphics.FromImage(bmp); 223using Graphics g = Graphics.FromImage(bmp); 251using Graphics g = Graphics.FromImage(bmp); 281using Graphics g = Graphics.FromImage(bmp); 300using Graphics g = Graphics.FromImage(bmp);
System\Windows\Forms\ScrollableControlTests.cs (8)
1533using Graphics graphics = Graphics.FromImage(image); 1680using Graphics graphics = Graphics.FromImage(image); 1732using Graphics graphics = Graphics.FromImage(image); 1820using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\StatusStripTests.cs (2)
1213using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\TabControlTests.cs (2)
4223Graphics graphics = Graphics.FromImage(bitmap);
System\Windows\Forms\TableLayoutCellPaintEventArgsTests.cs (3)
26using Graphics graphics = Graphics.FromImage(image); 40(Graphics)null, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), 1, 2));
System\Windows\Forms\TableLayoutPanelTests.cs (6)
1211Graphics graphics = Graphics.FromImage(image); 1432using Graphics graphics = Graphics.FromImage(image); 1472using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\TabPageTests.cs (8)
3979using Graphics graphics = Graphics.FromImage(image); 4049using Graphics graphics = Graphics.FromImage(image); 4105using Graphics graphics = Graphics.FromImage(image); 4188using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\TabRendererTests.cs (4)
12private readonly Graphics _graphics; 18_graphics = Graphics.FromImage(_bitmap); 131using Graphics g = Graphics.FromImage(bmp);
System\Windows\Forms\TextBoxRendererTests.cs (6)
36using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 65using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC); 100using Graphics graphics = Graphics.FromHdc((IntPtr)emf.HDC);
System\Windows\Forms\TextRendererTests.cs (34)
38using Graphics graphics = Graphics.FromImage(image); 72using Graphics graphics = Graphics.FromImage(image); 109using Graphics graphics = Graphics.FromImage(image); 150using Graphics graphics = Graphics.FromImage(image); 182using Graphics graphics = Graphics.FromImage(image); 218using Graphics graphics = Graphics.FromImage(image); 258using Graphics graphics = Graphics.FromImage(image); 302using Graphics graphics = Graphics.FromImage(image); 314using Graphics graphics = Graphics.FromImage(image); 475using Graphics graphics = Graphics.FromImage(image); 490using Graphics graphics = Graphics.FromImage(image); 505using Graphics graphics = Graphics.FromImage(image); 520using Graphics graphics = Graphics.FromImage(image); 539using Graphics graphics = Graphics.FromImage(image); 728using Graphics graphics = Graphics.FromImage(image); 756using (Graphics graphics = Graphics.FromImage(metafileRecorder)) 805using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ToolStripArrowRenderEventArgsTests.cs (9)
22Graphics graphics = Graphics.FromImage(image); 30public void Ctor_Graphics_ToolStripItem_Rectangle_Color_ArrowDirection(Graphics g, ToolStripItem toolStripItem, Rectangle arrowRectangle, Color arrowColor, ArrowDirection arrowDirection) 52using Graphics graphics = Graphics.FromImage(image); 72using Graphics graphics = Graphics.FromImage(image); 87using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ToolStripButtonTests.cs (6)
1267using Graphics graphics = Graphics.FromImage(image); 1358using Graphics graphics = Graphics.FromImage(image); 1451Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapterTests.cs (2)
76using Graphics graphics = Graphics.FromImage(bitmap);
System\Windows\Forms\ToolStripContentPanelRenderEventArgsTests.cs (7)
15Graphics graphics = Graphics.FromImage(image); 24public void ToolStripContentPanelRenderEventArgs_Null_Graphics_ToolStripContentPanel_ThrowsArgumentNullException(Graphics g, ToolStripContentPanel toolStripContentPanel) 33using Graphics graphics = Graphics.FromImage(image); 47using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ToolStripContentPanelTests.cs (2)
1856using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ToolStripControlHostTests.cs (2)
4111var graphics = Graphics.FromImage(image);
System\Windows\Forms\ToolStripGripRenderEventArgsTests.cs (6)
15Graphics graphics = Graphics.FromImage(image); 24public void ToolStripGripRenderEventArgs_Null_Graphics_ToolStrip_ThrowsArgumentNullException(Graphics g, ToolStrip toolStrip) 32Graphics graphics = Graphics.FromImage(image); 47public void Ctor_Graphics_ToolStrip(Graphics g, ToolStrip toolStrip)
System\Windows\Forms\ToolStripItemImageRenderEventArgsTests.cs (10)
15Graphics graphics = Graphics.FromImage(image); 24public void ToolStripItemImageRenderEventArgs_Null_Graphics_ToolStripItem_ThrowsArgumentNullException(Graphics g, ToolStripItem toolStripItem) 32Graphics graphics = Graphics.FromImage(image); 64public void ToolStripItemImageRenderEventArgs_Ctor_Graphics_ToolStripItem_Rectangle(Graphics g, ToolStripItem item, Rectangle imageRectangle, Image expectedImage) 77using Graphics g = Graphics.FromImage(image); 102using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ToolStripItemRenderEventArgsTests.cs (6)
15Graphics graphics = Graphics.FromImage(image); 24public void ToolStripItemRenderEventArgs_Null_Graphics_ToolStripItem_ThrowsArgumentNullException(Graphics g, ToolStripItem toolStripItem) 32Graphics graphics = Graphics.FromImage(image); 45public void Ctor_Graphics_ToolStripItem(Graphics g, ToolStripItem item, ToolStrip expectedToolStrip)
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (8)
24using Graphics g = Graphics.FromImage(image); 50using Graphics g = Graphics.FromImage(image); 67using Graphics graphics = Graphics.FromImage(image); 83using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ToolStripPanelRenderEventArgsTests.cs (7)
15Graphics graphics = Graphics.FromImage(image); 24public void ToolStripPanelRenderEventArgs_Null_Graphics_ToolStripPanel_ThrowsArgumentNullException(Graphics g, ToolStripPanel toolStripPanel) 33using Graphics graphics = Graphics.FromImage(image); 47using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ToolStripRendererTests.cs (30)
47using Graphics graphics = Graphics.FromImage(image); 82Graphics graphics = Graphics.FromImage(image); 139Graphics graphics = Graphics.FromImage(image); 194Graphics graphics = Graphics.FromImage(image); 206public void ToolStripRenderer_DrawItemCheck_Invoke_CallsRenderItemCheck(Graphics graphics, ToolStripItem item, Image image, Rectangle imageRectangle) 239public void ToolStripRenderer_DrawItemImage_Invoke_CallsRenderItemImage(Graphics graphics, ToolStripItem item, Image image, Rectangle imageRectangle) 315using Graphics graphics = Graphics.FromImage(image); 422Graphics graphics = Graphics.FromImage(image); 488using Graphics graphics = Graphics.FromImage(image); 523Graphics graphics = Graphics.FromImage(image); 605Graphics graphics = Graphics.FromImage(image); 662Graphics graphics = Graphics.FromImage(image); 727using Graphics graphics = Graphics.FromImage(image); 801public void ToolStripRenderer_OnRenderItemCheck_Invoke_Nop(Graphics graphics, ToolStripItem item, Image image, Rectangle imageRectangle) 821public void ToolStripRenderer_OnRenderItemImage_Invoke_Nop(Graphics graphics, ToolStripItem item, Image image, Rectangle imageRectangle) 844using Graphics graphics = Graphics.FromImage(image); 921using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (9)
15Graphics graphics = Graphics.FromImage(image); 24public void ToolStripRenderEventArgs_Null_Graphics_ToolStrip_ThrowsArgumentNullException(Graphics g, ToolStrip toolStrip) 42using Graphics graphics = Graphics.FromImage(image); 66using Graphics graphics = Graphics.FromImage(image); 95using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ToolStripSeparatorRenderEventArgsTests.cs (6)
15Graphics graphics = Graphics.FromImage(image); 24public void ToolStripSeparatorRenderEventArgs_Null_Graphics_ToolStripSeparator_ThrowsArgumentNullException(Graphics g, ToolStripSeparator toolStripSeparator) 32Graphics graphics = Graphics.FromImage(image); 39public void Ctor_Graphics_ToolStripItem_Bool(Graphics g, ToolStripSeparator separator, bool vertical)
System\Windows\Forms\ToolStripSeparatorTests.cs (6)
1120Graphics graphics = Graphics.FromImage(image); 1214using Graphics graphics = Graphics.FromImage(image); 1285using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\ToolStripTests.cs (12)
5874using Graphics graphics = Graphics.FromImage(image); 6021using Graphics graphics = Graphics.FromImage(image); 6072using Graphics graphics = Graphics.FromImage(image); 6159using Graphics graphics = Graphics.FromImage(image); 6234using Graphics graphics = Graphics.FromImage(image); 6263using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\TrackBarRendererTests.cs (10)
12private readonly Graphics _graphics; 17_graphics = Graphics.FromImage(_bitmap); 36void TestDrawTrack(Action<Graphics, Rectangle> drawTrack, Rectangle bounds) 49void TestDrawTrackWithInvalidBounds(Action<Graphics, Rectangle> drawTrack, Rectangle[] invalidBounds) 73void TestDrawThumb(Action<Graphics, Rectangle, TrackBarThumbState> drawThumb, Rectangle bounds, TrackBarThumbState state) 89void TestGetThumbSize(Func<Graphics, TrackBarThumbState, Size> getThumbSize) 104void TestDrawTicks(Action<Graphics, Rectangle, int, EdgeStyle> drawTicks, Rectangle bounds, int tickCount, EdgeStyle edgeStyle) 122void TestDrawTicksWithInvalidParameters(Action<Graphics, Rectangle, int, EdgeStyle> drawTicks, Rectangle bounds, int[] invalidTickCounts, Rectangle[] invalidBounds) 153var drawThumbActions = new Action<Graphics, Rectangle, TrackBarThumbState>[] 161foreach (Action<Graphics, Rectangle, TrackBarThumbState> drawThumb in drawThumbActions)
System\Windows\Forms\TreeViewTests.cs (2)
5669Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\UnsupportedTypesTests.cs (5)
82using Graphics graphics = control.CreateGraphics(); 220protected internal override int GetPreferredHeight(Graphics g, object value) => throw new NotImplementedException(); 221protected internal override Size GetPreferredSize(Graphics g, object value) => throw new NotImplementedException(); 222protected internal override void Paint(Graphics g, Rectangle bounds, CurrencyManager source, int rowNum, bool alignToRight) => throw new NotImplementedException(); 223protected internal override void Paint(Graphics g, Rectangle bounds, CurrencyManager source, int rowNum) => throw new NotImplementedException();
System\Windows\Forms\UpDownBaseTests.cs (4)
2248using Graphics graphics = Graphics.FromImage(image); 2284using Graphics graphics = Graphics.FromImage(image);
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (37)
139using Graphics graphics = Graphics.FromImage(bitmap); 173using Graphics graphics = Graphics.FromImage(bitmap); 208using Graphics graphics = Graphics.FromImage(bitmap); 226using Graphics graphics = Graphics.FromImage(bitmap); 236using Graphics graphics = Graphics.FromImage(bitmap); 246using Graphics graphics = Graphics.FromImage(bitmap); 270using Graphics graphics = Graphics.FromImage(bitmap); 283using Graphics graphics = Graphics.FromImage(bitmap); 307using Graphics graphics = Graphics.FromImage(bitmap); 317using Graphics graphics = Graphics.FromImage(bitmap); 328using Graphics graphics = Graphics.FromImage(bitmap); 355using Graphics graphics = Graphics.FromImage(bitmap); 382using Graphics graphics = Graphics.FromImage(bitmap); 421using Graphics graphics = Graphics.FromImage(bitmap); 452using Graphics graphics = Graphics.FromImage(bitmap); 483using Graphics graphics = Graphics.FromImage(bitmap); 506using Graphics graphics = form.CreateGraphics(); 574using Graphics graphics = Graphics.FromImage(image); 586using Graphics graphics = Graphics.FromImage(image);
TrackBarTests.cs (2)
3246using 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)
179using (SD.Graphics g = SD.Graphics.FromImage(bitmap)) 197using (SD.Graphics g = SD.Graphics.FromImage(returnBitmap)) 293using (SD.Graphics graphicsTemplate = control.CreateGraphics()) 299using (SD.Graphics graphics = SD.Graphics.FromImage(chunk))
WinFormsControlsTest (1)
CustomComCtl32Button.cs (1)
75static void DrawRoundBorder(Control sender, Graphics g)