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