2 writes to graphics
System.Drawing (2)
commonui\System\Drawing\Printing\PreviewPrintController.cs (2)
127graphics = Graphics.FromImage(metafile); 173graphics = null;
12 references to graphics
System.Drawing (12)
commonui\System\Drawing\Printing\PreviewPrintController.cs (12)
59Debug.Assert(dc == null && graphics == null, "PrintController methods called in the wrong order?"); 93Debug.Assert(dc != null && graphics == null, "PrintController methods called in the wrong order?"); 129if (graphics != null && document.OriginAtMargins) { 141graphics.TranslateTransform(-hardMarginX, -hardMarginY); 142graphics.TranslateTransform(document.DefaultPageSettings.Margins.Left, document.DefaultPageSettings.Margins.Top); 146graphics.PrintingHelper = printGraphics; 150graphics.TextRenderingHint = TextRenderingHint.AntiAlias; 151graphics.SmoothingMode = SmoothingMode.AntiAlias; 157return graphics; 167Debug.Assert(dc != null && graphics != null, "PrintController methods called in the wrong order?"); 172graphics.Dispose(); 185Debug.Assert(dc != null && graphics == null, "PrintController methods called in the wrong order?");