964 references to FromImage
PresentationFramework-SystemDrawing (1)
SystemDrawingExtension.cs (1)
108
Graphics graphics = Graphics.
FromImage
(bmp);
System.Drawing.Common.Tests (534)
mono\System.Drawing.Imaging\BmpCodecTests.cs (1)
430
Graphics gr = Graphics.
FromImage
(bmp);
mono\System.Drawing.Imaging\GifCodecTests.cs (1)
184
Graphics gr = Graphics.
FromImage
(bmp);
mono\System.Drawing.Imaging\IconCodecTests.cs (1)
1868
Graphics gr = Graphics.
FromImage
(bmp);
mono\System.Drawing.Imaging\JpegCodecTests.cs (1)
349
Graphics gr = Graphics.
FromImage
(bmp);
mono\System.Drawing.Imaging\PngCodecTests.cs (1)
570
Graphics gr = Graphics.
FromImage
(bmp);
mono\System.Drawing.Imaging\TiffCodecTests.cs (1)
241
Graphics gr = Graphics.
FromImage
(bmp);
mono\System.Drawing\BitmapTests.cs (1)
457
using (Graphics gr = Graphics.
FromImage
(bmp))
mono\System.Drawing\GraphicsTests.cs (134)
104
using Graphics g = Graphics.
FromImage
(bmp);
122
using Graphics g = Graphics.
FromImage
(bmp);
151
using Graphics g = Graphics.
FromImage
(bmp);
166
using Graphics g = Graphics.
FromImage
(bmp);
177
using Graphics g = Graphics.
FromImage
(bmp);
204
using Graphics g = Graphics.
FromImage
(bmp);
221
using Graphics g = Graphics.
FromImage
(bmp);
240
using (Graphics g = Graphics.
FromImage
(bmp))
253
using (Graphics g = Graphics.
FromImage
(bmp))
265
using (Graphics g = Graphics.
FromImage
(bmp))
281
using Graphics g = Graphics.
FromImage
(bmp);
348
Exception exception = AssertExtensions.Throws<ArgumentException, Exception>(() => Graphics.
FromImage
(img));
360
Graphics = Graphics.
FromImage
(_bitmap);
714
using Graphics g = Graphics.
FromImage
(bitmap);
728
using Graphics g = Graphics.
FromImage
(bitmap);
738
using Graphics g = Graphics.
FromImage
(bitmap);
748
using Graphics g = Graphics.
FromImage
(bitmap);
760
using Graphics g = Graphics.
FromImage
(bitmap);
772
using Graphics g = Graphics.
FromImage
(bitmap);
780
using Graphics g = Graphics.
FromImage
(bitmap);
788
using Graphics g = Graphics.
FromImage
(bitmap);
799
using Graphics g = Graphics.
FromImage
(bitmap);
810
using Graphics g = Graphics.
FromImage
(bitmap);
821
using Graphics g = Graphics.
FromImage
(bitmap);
833
using Graphics g = Graphics.
FromImage
(bitmap);
848
using Graphics g = Graphics.
FromImage
(bitmap);
870
using Graphics g = Graphics.
FromImage
(bitmap);
885
using Graphics g = Graphics.
FromImage
(bitmap);
951
using Graphics g = Graphics.
FromImage
(bitmap);
984
using Graphics g = Graphics.
FromImage
(bitmap);
1018
using Graphics g = Graphics.
FromImage
(bitmap);
1050
using Graphics g = Graphics.
FromImage
(bitmap);
1086
using Graphics g = Graphics.
FromImage
(bitmap);
1094
using Graphics g = Graphics.
FromImage
(bitmap);
1134
using Graphics g = Graphics.
FromImage
(bitmap);
1142
using Graphics g = Graphics.
FromImage
(bitmap);
1150
using Graphics g = Graphics.
FromImage
(bitmap);
1158
using Graphics g = Graphics.
FromImage
(bitmap);
1166
using Graphics g = Graphics.
FromImage
(bitmap);
1174
using Graphics g = Graphics.
FromImage
(bitmap);
1182
using Graphics g = Graphics.
FromImage
(bitmap);
1190
using (Graphics g = Graphics.
FromImage
(bitmap))
1211
using (Graphics g = Graphics.
FromImage
(bitmap))
1375
using (Graphics g = Graphics.
FromImage
(bitmap))
1521
using (Graphics g = Graphics.
FromImage
(bitmap))
1574
using Graphics g = Graphics.
FromImage
(bitmap);
1595
using Graphics g = Graphics.
FromImage
(bitmap);
1604
using Graphics g = Graphics.
FromImage
(bitmap);
1621
using Graphics g = Graphics.
FromImage
(bitmap);
1654
using Graphics g = Graphics.
FromImage
(bitmap);
1685
using Graphics g = Graphics.
FromImage
(bitmap);
1718
using Graphics g = Graphics.
FromImage
(bitmap);
1749
using Graphics g = Graphics.
FromImage
(bitmap);
1780
using Graphics g = Graphics.
FromImage
(bitmap);
1803
using Graphics g = Graphics.
FromImage
(bitmap);
1847
using Graphics g = Graphics.
FromImage
(bitmap);
1870
using Graphics g = Graphics.
FromImage
(bitmap);
1883
using Graphics g = Graphics.
FromImage
(bitmap);
1896
using Graphics g = Graphics.
FromImage
(bitmap);
1919
using Graphics g = Graphics.
FromImage
(bitmap);
1963
using Graphics g = Graphics.
FromImage
(bitmap);
1999
using Graphics g = Graphics.
FromImage
(bitmap);
2022
using Graphics gfx = Graphics.
FromImage
(new Bitmap(1, 1));
2056
using Graphics gfx = Graphics.
FromImage
(new Bitmap(1, 1));
2084
using Graphics g = Graphics.
FromImage
(bitmap);
2101
using Graphics g = Graphics.
FromImage
(bitmap);
2118
using Graphics g = Graphics.
FromImage
(bitmap);
2134
using Graphics g = Graphics.
FromImage
(b);
2146
using Graphics g = Graphics.
FromImage
(b);
2154
using Graphics g = Graphics.
FromImage
(b);
2164
using Graphics g = Graphics.
FromImage
(b);
2176
using Graphics g = Graphics.
FromImage
(b);
2184
using Graphics g = Graphics.
FromImage
(b);
2201
using Graphics g = Graphics.
FromImage
(bmp);
2234
using Graphics g = Graphics.
FromImage
(bmp);
2279
using Graphics g = Graphics.
FromImage
(bmp);
2298
using Graphics g = Graphics.
FromImage
(bmp);
2317
using Graphics g = Graphics.
FromImage
(bmp);
2336
using Graphics g = Graphics.
FromImage
(bmp);
2344
using Graphics g = Graphics.
FromImage
(bmp);
2360
using Graphics g = Graphics.
FromImage
(bmp);
2368
using Graphics g = Graphics.
FromImage
(bmp);
2377
using Graphics g = Graphics.
FromImage
(bmp);
2385
using Graphics g = Graphics.
FromImage
(bmp);
2401
using Graphics g = Graphics.
FromImage
(bmp);
2409
using Graphics g = Graphics.
FromImage
(bmp);
2420
using Graphics g = Graphics.
FromImage
(bmp);
2428
using Graphics g = Graphics.
FromImage
(bmp);
2436
using Graphics g = Graphics.
FromImage
(bmp);
2444
using Graphics g = Graphics.
FromImage
(bmp);
2452
using Graphics g = Graphics.
FromImage
(bmp);
2460
using Graphics g = Graphics.
FromImage
(bmp);
2471
using Graphics g = Graphics.
FromImage
(bmp);
2479
using Graphics g = Graphics.
FromImage
(bmp);
2494
using Graphics g = Graphics.
FromImage
(bmp);
2502
using Graphics g = Graphics.
FromImage
(bmp);
2510
using Graphics g = Graphics.
FromImage
(bmp);
2518
using Graphics g = Graphics.
FromImage
(bmp);
2526
using Graphics g = Graphics.
FromImage
(bmp);
2534
using Graphics g = Graphics.
FromImage
(bmp);
2542
using Graphics g = Graphics.
FromImage
(bmp);
2550
using Graphics g = Graphics.
FromImage
(bmp);
2558
using Graphics g = Graphics.
FromImage
(bmp);
2566
using Graphics g = Graphics.
FromImage
(bmp);
2574
using Graphics g = Graphics.
FromImage
(bmp);
2582
using Graphics g = Graphics.
FromImage
(bmp);
2590
using Graphics g = Graphics.
FromImage
(bmp);
2597
using Graphics g = Graphics.
FromImage
(bmp);
2627
using Graphics g = Graphics.
FromImage
(bmp);
2635
using Graphics g = Graphics.
FromImage
(bmp);
2685
using Graphics g = Graphics.
FromImage
(bmp);
2693
using Graphics g = Graphics.
FromImage
(bmp);
2744
using Graphics g = Graphics.
FromImage
(bmp);
2755
using Graphics g = Graphics.
FromImage
(bmp);
2764
using Graphics g = Graphics.
FromImage
(bmp);
2772
using Graphics g = Graphics.
FromImage
(bmp);
2780
using Graphics g = Graphics.
FromImage
(bmp);
2788
using Graphics g = Graphics.
FromImage
(bmp);
2796
using Graphics g = Graphics.
FromImage
(bmp);
2804
using Graphics g = Graphics.
FromImage
(bmp);
2812
using Graphics g = Graphics.
FromImage
(bmp);
2820
using Graphics g = Graphics.
FromImage
(bmp);
2828
using Graphics g = Graphics.
FromImage
(bmp);
2836
using Graphics g = Graphics.
FromImage
(bmp);
2855
using Graphics g = Graphics.
FromImage
(bmp);
2864
using Graphics g = Graphics.
FromImage
(bmp);
2872
using Graphics g = Graphics.
FromImage
(bmp);
2897
using Graphics g = Graphics.
FromImage
(bmp);
2906
using Graphics g = Graphics.
FromImage
(bmp);
2914
using Graphics g = Graphics.
FromImage
(bmp);
2939
using Graphics g = Graphics.
FromImage
(bmp);
2965
using (Graphics g = Graphics.
FromImage
(bmp))
2972
using (Graphics g = Graphics.
FromImage
(bmp))
2983
using Graphics g = Graphics.
FromImage
(b);
mono\System.Imaging\MetafileTest.cs (7)
217
using Graphics g = Graphics.
FromImage
(bmp);
234
using Graphics g = Graphics.
FromImage
(bmp);
250
using Graphics g = Graphics.
FromImage
(bmp);
290
using (Graphics g = Graphics.
FromImage
(bmp))
303
using (Graphics g = Graphics.
FromImage
(mf))
332
using (Graphics g = Graphics.
FromImage
(bmp))
345
using (Graphics g = Graphics.
FromImage
(mf))
System\Drawing\BitmapTests.cs (3)
222
AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(width, 1, Graphics.
FromImage
(new Bitmap(1, 1))));
237
AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(1, height, Graphics.
FromImage
(new Bitmap(1, 1))));
286
using Graphics graphics = Graphics.
FromImage
(image);
System\Drawing\BufferedGraphicsContextTests.cs (10)
22
using Graphics graphics = Graphics.
FromImage
(image);
34
using Graphics graphics = Graphics.
FromImage
(image);
46
using Graphics graphics = Graphics.
FromImage
(image);
58
using Graphics graphics = Graphics.
FromImage
(image);
80
using Graphics graphics = Graphics.
FromImage
(image);
102
using Graphics graphics = Graphics.
FromImage
(image);
147
Graphics graphics = Graphics.
FromImage
(image);
160
using Graphics graphics = Graphics.
FromImage
(image);
230
using Graphics graphics = Graphics.
FromImage
(image);
242
using Graphics graphics = Graphics.
FromImage
(image);
System\Drawing\BufferedGraphicsTests.cs (7)
13
using Graphics targetGraphics = Graphics.
FromImage
(image);
28
using Graphics targetGraphics = Graphics.
FromImage
(image);
45
using Graphics graphics = Graphics.
FromImage
(image);
65
using Graphics graphics = Graphics.
FromImage
(image);
89
using Graphics originalGraphics = Graphics.
FromImage
(originalImage);
90
using Graphics targetGraphics = Graphics.
FromImage
(targetImage);
110
using Graphics graphics = Graphics.
FromImage
(image);
System\Drawing\Drawing2D\GraphicsPathTests.cs (7)
1755
using Graphics graphics = Graphics.
FromImage
(bitmap);
1763
using Graphics graphics = Graphics.
FromImage
(bitmap);
1771
using Graphics graphics = Graphics.
FromImage
(bitmap);
1781
using Graphics graphics = Graphics.
FromImage
(bitmap);
1790
using Graphics graphics = Graphics.
FromImage
(bitmap);
1811
using Graphics graphics = Graphics.
FromImage
(bitmap);
1825
using Graphics graphics = Graphics.
FromImage
(bitmap);
System\Drawing\FontFamilyTests.cs (1)
98
using var graphics = Graphics.
FromImage
(image);
System\Drawing\FontTests.cs (11)
468
using Graphics graphics = Graphics.
FromImage
(image);
503
using Graphics graphics = Graphics.
FromImage
(image);
535
Graphics graphics = Graphics.
FromImage
(image);
546
using Graphics graphics = Graphics.
FromImage
(image);
592
using Graphics graphics = Graphics.
FromImage
(image);
617
using Graphics graphics = Graphics.
FromImage
(image);
636
using Graphics graphics = Graphics.
FromImage
(image);
737
using Graphics graphics = Graphics.
FromImage
(image);
765
using Graphics graphics = Graphics.
FromImage
(image);
784
Graphics graphics = Graphics.
FromImage
(image);
841
using Graphics graphics = Graphics.
FromImage
(image);
System\Drawing\Graphics_DrawBezierTests.cs (13)
13
using Graphics graphics = Graphics.
FromImage
(bitmap);
27
using Graphics graphics = Graphics.
FromImage
(bitmap);
46
using Graphics graphics = Graphics.
FromImage
(bitmap);
64
using Graphics graphics = Graphics.
FromImage
(image);
74
using Graphics graphics = Graphics.
FromImage
(image);
87
using Graphics graphics = Graphics.
FromImage
(image);
107
Graphics graphics = Graphics.
FromImage
(image);
120
using Graphics graphics = Graphics.
FromImage
(image);
129
using Graphics graphics = Graphics.
FromImage
(image);
141
using Graphics graphics = Graphics.
FromImage
(image);
151
using Graphics graphics = Graphics.
FromImage
(image);
161
using Graphics graphics = Graphics.
FromImage
(image);
180
Graphics graphics = Graphics.
FromImage
(image);
System\Drawing\Graphics_DrawLineTests.cs (12)
13
using Graphics graphics = Graphics.
FromImage
(bitmap);
28
using Graphics graphics = Graphics.
FromImage
(bitmap);
42
using Graphics graphics = Graphics.
FromImage
(image);
53
using Graphics graphics = Graphics.
FromImage
(image);
67
using Graphics graphics = Graphics.
FromImage
(image);
88
Graphics graphics = Graphics.
FromImage
(image);
101
using Graphics graphics = Graphics.
FromImage
(image);
110
using Graphics graphics = Graphics.
FromImage
(image);
122
using Graphics graphics = Graphics.
FromImage
(image);
134
using Graphics graphics = Graphics.
FromImage
(image);
144
using Graphics graphics = Graphics.
FromImage
(image);
163
Graphics graphics = Graphics.
FromImage
(image);
System\Drawing\Graphics_GetContextTests.Core.cs (7)
15
using Graphics graphics = Graphics.
FromImage
(image);
28
using Graphics graphics = Graphics.
FromImage
(image);
46
using Graphics graphics = Graphics.
FromImage
(image);
61
using Graphics graphics = Graphics.
FromImage
(image);
80
using Graphics graphics = Graphics.
FromImage
(image);
99
using Graphics graphics = Graphics.
FromImage
(image);
120
using Graphics graphics = Graphics.
FromImage
(image);
System\Drawing\Graphics_GetContextTests.cs (7)
15
using Graphics graphics = Graphics.
FromImage
(image);
32
using Graphics graphics = Graphics.
FromImage
(image);
47
using Graphics graphics = Graphics.
FromImage
(image);
63
using Graphics graphics = Graphics.
FromImage
(image);
81
using Graphics graphics = Graphics.
FromImage
(image);
99
using Graphics graphics = Graphics.
FromImage
(image);
120
using Graphics graphics = Graphics.
FromImage
(image);
System\Drawing\GraphicsTests.Core.cs (14)
17
using Graphics graphics = Graphics.
FromImage
(image);
26
using Graphics graphics = Graphics.
FromImage
(image);
43
Graphics graphics = Graphics.
FromImage
(image);
54
using Graphics graphics = Graphics.
FromImage
(image);
74
using Graphics graphics = Graphics.
FromImage
(image);
84
using Graphics graphics = Graphics.
FromImage
(image);
97
using Graphics graphics = Graphics.
FromImage
(image);
116
Graphics graphics = Graphics.
FromImage
(image);
128
using Graphics graphics = Graphics.
FromImage
(image);
138
using Graphics graphics = Graphics.
FromImage
(image);
151
using Graphics graphics = Graphics.
FromImage
(image);
162
using Graphics graphics = Graphics.
FromImage
(image);
173
using Graphics graphics = Graphics.
FromImage
(image);
192
Graphics graphics = Graphics.
FromImage
(image);
System\Drawing\GraphicsTests.cs (195)
22
using Graphics graphics = Graphics.
FromImage
(bitmap);
41
using Graphics graphics1 = Graphics.
FromImage
(bitmap);
42
using Graphics graphics2 = Graphics.
FromImage
(bitmap);
58
using Graphics graphics = Graphics.
FromImage
(bitmap);
74
Graphics graphics = Graphics.
FromImage
(bitmap);
136
using Graphics graphics = Graphics.
FromImage
(bitmap);
157
using Graphics graphics = Graphics.
FromImage
(bitmap);
172
using Graphics graphics1 = Graphics.
FromImage
(bitmap1);
173
using Graphics graphics2 = Graphics.
FromImage
(bitmap2);
189
using Graphics graphics = Graphics.
FromImage
(bitmap);
199
Graphics graphics = Graphics.
FromImage
(bitmap);
251
using Graphics graphics = Graphics.
FromImage
(image);
258
AssertExtensions.Throws<ArgumentNullException>("image", () => Graphics.
FromImage
(null));
268
Exception exception = AssertExtensions.Throws<ArgumentException, Exception>(() => Graphics.
FromImage
(image));
279
AssertExtensions.Throws<ArgumentException>(null, () => Graphics.
FromImage
(image));
286
Assert.Throws<OutOfMemoryException>(() => Graphics.
FromImage
(image));
295
Assert.Throws<OutOfMemoryException>(() => Graphics.
FromImage
(image));
314
using Graphics graphics = Graphics.
FromImage
(image);
316
using Graphics targetGraphics = Graphics.
FromImage
(targetImage);
338
using Graphics graphics = Graphics.
FromImage
(image);
346
using Graphics graphics = Graphics.
FromImage
(image);
363
Graphics graphics = Graphics.
FromImage
(image);
406
using Graphics graphics = Graphics.
FromImage
(image);
422
using Graphics graphics = Graphics.
FromImage
(image);
430
using Graphics graphics = Graphics.
FromImage
(image);
447
Graphics graphics = Graphics.
FromImage
(image);
458
var graphics = Graphics.
FromImage
(bitmap);
470
var graphics = Graphics.
FromImage
(bitmap);
484
using Graphics graphics = Graphics.
FromImage
(image);
500
Graphics graphics = Graphics.
FromImage
(image);
510
using Graphics graphics = Graphics.
FromImage
(image);
526
Graphics graphics = Graphics.
FromImage
(image);
540
using Graphics graphics = Graphics.
FromImage
(image);
555
using Graphics graphics = Graphics.
FromImage
(image);
572
Graphics graphics = Graphics.
FromImage
(image);
591
using Graphics graphics = Graphics.
FromImage
(image);
602
using Graphics graphics = Graphics.
FromImage
(image);
610
using Graphics graphics = Graphics.
FromImage
(image);
618
using Graphics graphics = Graphics.
FromImage
(image);
635
Graphics graphics = Graphics.
FromImage
(image);
649
using Graphics graphics = Graphics.
FromImage
(image);
663
using Graphics graphics = Graphics.
FromImage
(image);
671
using Graphics graphics = Graphics.
FromImage
(image);
688
Graphics graphics = Graphics.
FromImage
(image);
705
using Graphics graphics = Graphics.
FromImage
(image);
716
using Graphics graphics = Graphics.
FromImage
(image);
724
using Graphics graphics = Graphics.
FromImage
(image);
732
using Graphics graphics = Graphics.
FromImage
(image);
749
Graphics graphics = Graphics.
FromImage
(image);
765
using Graphics graphics = Graphics.
FromImage
(image);
776
using Graphics graphics = Graphics.
FromImage
(image);
784
using Graphics graphics = Graphics.
FromImage
(image);
792
using Graphics graphics = Graphics.
FromImage
(image);
809
Graphics graphics = Graphics.
FromImage
(image);
861
using Graphics graphics = Graphics.
FromImage
(image);
874
using Graphics graphics = Graphics.
FromImage
(image);
891
Graphics graphics = Graphics.
FromImage
(image);
907
using Graphics graphics = Graphics.
FromImage
(image);
918
using Graphics graphics = Graphics.
FromImage
(image);
926
using Graphics graphics = Graphics.
FromImage
(image);
934
using Graphics graphics = Graphics.
FromImage
(image);
951
Graphics graphics = Graphics.
FromImage
(image);
965
using Graphics graphics = Graphics.
FromImage
(image);
976
using Graphics graphics = Graphics.
FromImage
(image);
984
using Graphics graphics = Graphics.
FromImage
(image);
1001
Graphics graphics = Graphics.
FromImage
(image);
1018
using Graphics graphics = Graphics.
FromImage
(image);
1029
using Graphics graphics = Graphics.
FromImage
(image);
1037
using Graphics graphics = Graphics.
FromImage
(image);
1054
Graphics graphics = Graphics.
FromImage
(image);
1068
using Graphics graphics = Graphics.
FromImage
(image);
1091
using Graphics graphics = Graphics.
FromImage
(image);
1099
using Graphics graphics = Graphics.
FromImage
(image);
1110
using Graphics graphics = Graphics.
FromImage
(image);
1119
using Graphics graphics = Graphics.
FromImage
(image);
1138
Graphics graphics = Graphics.
FromImage
(image);
1149
using Graphics graphics = Graphics.
FromImage
(image);
1162
using Graphics graphics = Graphics.
FromImage
(image);
1178
Graphics graphics = Graphics.
FromImage
(image);
1188
using Graphics graphics = Graphics.
FromImage
(image);
1205
using Graphics graphics = Graphics.
FromImage
(image);
1220
using Graphics graphics = Graphics.
FromImage
(image);
1244
using Graphics graphics = Graphics.
FromImage
(image);
1256
using Graphics graphics = Graphics.
FromImage
(image);
1265
using Graphics graphics = Graphics.
FromImage
(image);
1284
Graphics graphics = Graphics.
FromImage
(image);
1298
using Graphics graphics = Graphics.
FromImage
(image);
1318
using Graphics graphics = Graphics.
FromImage
(image);
1334
using Graphics graphics = Graphics.
FromImage
(image);
1342
using Graphics graphics = Graphics.
FromImage
(image);
1359
Graphics graphics = Graphics.
FromImage
(image);
1372
using Graphics graphics = Graphics.
FromImage
(image);
1390
using Graphics graphics = Graphics.
FromImage
(image);
1404
using Graphics graphics = Graphics.
FromImage
(image);
1415
using Graphics graphics = Graphics.
FromImage
(image);
1423
using Graphics graphics = Graphics.
FromImage
(image);
1440
Graphics graphics = Graphics.
FromImage
(image);
1455
using Graphics graphics = Graphics.
FromImage
(image);
1475
using Graphics graphics = Graphics.
FromImage
(image);
1491
using Graphics graphics = Graphics.
FromImage
(image);
1499
using Graphics graphics = Graphics.
FromImage
(image);
1516
Graphics graphics = Graphics.
FromImage
(image);
1539
using Graphics graphics = Graphics.
FromImage
(image);
1556
using Graphics graphics = Graphics.
FromImage
(image);
1608
using Graphics graphics = Graphics.
FromImage
(image);
1619
using Graphics graphics = Graphics.
FromImage
(image);
1647
using Graphics graphics = Graphics.
FromImage
(image);
1655
using Graphics graphics = Graphics.
FromImage
(image);
1675
Graphics graphics = Graphics.
FromImage
(image);
1740
using Graphics graphics = Graphics.
FromImage
(image);
1805
using Graphics graphics = Graphics.
FromImage
(image);
1821
using Graphics graphics = Graphics.
FromImage
(image);
1837
using Graphics graphics = Graphics.
FromImage
(image);
1852
using Graphics graphics = Graphics.
FromImage
(image);
1863
using Graphics graphics = Graphics.
FromImage
(image);
1872
using Graphics graphics = Graphics.
FromImage
(image);
1881
using Graphics graphics = Graphics.
FromImage
(image);
1890
using Graphics graphics = Graphics.
FromImage
(image);
1907
Graphics graphics = Graphics.
FromImage
(image);
1925
using Graphics graphics = Graphics.
FromImage
(image);
1933
using Graphics graphics = Graphics.
FromImage
(image);
1949
Graphics graphics = Graphics.
FromImage
(image);
1959
using Graphics graphics = Graphics.
FromImage
(image);
1970
using Graphics graphics = Graphics.
FromImage
(image);
1984
using Graphics graphics = Graphics.
FromImage
(image);
1996
using Graphics graphics = Graphics.
FromImage
(image);
2008
using Graphics graphics = Graphics.
FromImage
(image);
2029
Graphics graphics = Graphics.
FromImage
(image);
2042
using Graphics graphics = Graphics.
FromImage
(image);
2052
using Graphics graphics = Graphics.
FromImage
(image);
2065
using Graphics graphics = Graphics.
FromImage
(image);
2085
Graphics graphics = Graphics.
FromImage
(image);
2097
using Graphics graphics = Graphics.
FromImage
(image);
2106
using Graphics graphics = Graphics.
FromImage
(image);
2118
using Graphics graphics = Graphics.
FromImage
(image);
2128
using Graphics graphics = Graphics.
FromImage
(image);
2138
using Graphics graphics = Graphics.
FromImage
(image);
2157
Graphics graphics = Graphics.
FromImage
(image);
2168
using Graphics graphics = Graphics.
FromImage
(image);
2179
using Graphics graphics = Graphics.
FromImage
(image);
2193
using Graphics graphics = Graphics.
FromImage
(image);
2214
Graphics graphics = Graphics.
FromImage
(image);
2227
using Graphics graphics = Graphics.
FromImage
(image);
2238
using Graphics graphics = Graphics.
FromImage
(image);
2252
using Graphics graphics = Graphics.
FromImage
(image);
2264
using Graphics graphics = Graphics.
FromImage
(image);
2276
using Graphics graphics = Graphics.
FromImage
(image);
2297
Graphics graphics = Graphics.
FromImage
(image);
2310
using Graphics graphics = Graphics.
FromImage
(image);
2319
using Graphics graphics = Graphics.
FromImage
(image);
2331
using Graphics graphics = Graphics.
FromImage
(image);
2343
using Graphics graphics = Graphics.
FromImage
(image);
2353
using Graphics graphics = Graphics.
FromImage
(image);
2372
Graphics graphics = Graphics.
FromImage
(image);
2383
using Graphics graphics = Graphics.
FromImage
(image);
2392
using Graphics graphics = Graphics.
FromImage
(image);
2404
using Graphics graphics = Graphics.
FromImage
(image);
2413
using Graphics graphics = Graphics.
FromImage
(image);
2425
using Graphics graphics = Graphics.
FromImage
(image);
2445
Graphics graphics = Graphics.
FromImage
(image);
2455
using Graphics graphics = Graphics.
FromImage
(image);
2469
using Graphics graphics = Graphics.
FromImage
(image);
2486
using Graphics graphics = Graphics.
FromImage
(image);
2503
using Graphics graphics = Graphics.
FromImage
(image);
2523
using Graphics graphics = Graphics.
FromImage
(image);
2534
using Graphics graphics = Graphics.
FromImage
(image);
2558
Graphics graphics = Graphics.
FromImage
(image);
2574
using Graphics graphics = Graphics.
FromImage
(image);
2585
using Graphics graphics = Graphics.
FromImage
(image);
2599
using Graphics graphics = Graphics.
FromImage
(image);
2614
using Graphics graphics = Graphics.
FromImage
(image);
2626
using Graphics graphics = Graphics.
FromImage
(image);
2647
Graphics graphics = Graphics.
FromImage
(image);
2660
using Graphics graphics = Graphics.
FromImage
(image);
2670
using Graphics graphics = Graphics.
FromImage
(image);
2683
using Graphics graphics = Graphics.
FromImage
(image);
2694
using Graphics graphics = Graphics.
FromImage
(image);
2705
using Graphics graphics = Graphics.
FromImage
(image);
2725
Graphics graphics = Graphics.
FromImage
(image);
2739
using Graphics graphics = Graphics.
FromImage
(image);
2755
using Graphics graphics = Graphics.
FromImage
(image);
2773
Graphics graphics = Graphics.
FromImage
(image);
2783
using Graphics graphics = Graphics.
FromImage
(image);
2792
using Graphics graphics = Graphics.
FromImage
(image);
2826
using Graphics graphics = Graphics.
FromImage
(bitmap);
2835
using Graphics graphics = Graphics.
FromImage
(bitmap);
2846
using Graphics graphics = Graphics.
FromImage
(bitmap);
2856
using Graphics graphics = Graphics.
FromImage
(bitmap);
2867
using Graphics graphics = Graphics.
FromImage
(bitmap);
2884
using Graphics graphics = Graphics.
FromImage
(bitmap);
2888
using Graphics graphics2 = Graphics.
FromImage
(bitmap2);
2934
using Graphics graphics = Graphics.
FromImage
(bitmap);
2943
using Graphics graphics = Graphics.
FromImage
(bitmap);
2952
using Graphics graphics = Graphics.
FromImage
(bitmap);
2961
using Graphics graphics = Graphics.
FromImage
(bitmap);
System\Drawing\Imaging\CachedBitmapTests.cs (1)
13
using var graphics = Graphics.
FromImage
(bitmap);
System\Drawing\Imaging\Effects\EffectsTests.cs (1)
12
using var graphics = Graphics.
FromImage
(bitmap);
System\Drawing\Imaging\ImageAttributesTests.cs (45)
71
using var graphics = Graphics.
FromImage
(bitmap);
95
using var graphics = Graphics.
FromImage
(bitmap);
129
using var graphicsSmallBitmap = Graphics.
FromImage
(bitmapSmall);
130
using var graphicsBigBitmap = Graphics.
FromImage
(bitmapBig);
148
using var graphics = Graphics.
FromImage
(bitmap);
174
using var graphics = Graphics.
FromImage
(bitmap);
205
using var graphics = Graphics.
FromImage
(bitmap);
274
using var graphics = Graphics.
FromImage
(bitmap);
301
using var graphics = Graphics.
FromImage
(bitmap);
343
using var graphics = Graphics.
FromImage
(bitmap);
366
using var graphics = Graphics.
FromImage
(bitmap);
393
using var graphics = Graphics.
FromImage
(bitmap);
422
using var graphics = Graphics.
FromImage
(bitmap);
483
using var graphics = Graphics.
FromImage
(bitmap);
496
using var graphics = Graphics.
FromImage
(bitmap);
509
using var graphics = Graphics.
FromImage
(bitmap);
538
using var graphics = Graphics.
FromImage
(bitmap);
552
using var graphics = Graphics.
FromImage
(bitmap);
582
using var graphics = Graphics.
FromImage
(bitmap);
595
using var graphics = Graphics.
FromImage
(bitmap);
608
using var graphics = Graphics.
FromImage
(bitmap);
639
using var graphics = Graphics.
FromImage
(bitmap);
670
using var graphics = Graphics.
FromImage
(bitmap);
685
using var graphics = Graphics.
FromImage
(bitmap);
718
using var graphics = Graphics.
FromImage
(bitmap);
735
using var graphics = Graphics.
FromImage
(bitmap);
752
using var graphics = Graphics.
FromImage
(bitmap);
786
using var graphics = Graphics.
FromImage
(bitmap);
801
using var graphics = Graphics.
FromImage
(bitmap);
816
using var graphics = Graphics.
FromImage
(bitmap);
849
using var graphics = Graphics.
FromImage
(bitmap);
864
using var graphics = Graphics.
FromImage
(bitmap);
905
using var graphics = Graphics.
FromImage
(bitmap);
931
using var graphics = Graphics.
FromImage
(bitmap);
961
using var graphics = Graphics.
FromImage
(bitmap);
1010
using var graphics = Graphics.
FromImage
(bitmap);
1025
using var graphics = Graphics.
FromImage
(bitmap);
1057
using var graphics = Graphics.
FromImage
(bitmap);
1123
using var graphics = Graphics.
FromImage
(bitmap);
1139
using var graphics = Graphics.
FromImage
(bitmap);
1172
using var graphics = Graphics.
FromImage
(bitmap);
1185
using var graphics = Graphics.
FromImage
(bitmap);
1198
using var graphics = Graphics.
FromImage
(bitmap);
1249
using var graphics = Graphics.
FromImage
(bitmap);
1263
using var graphics = Graphics.
FromImage
(bitmap);
System\Drawing\Imaging\MetafileTests.cs (43)
123
using Graphics g = Graphics.
FromImage
(bmp);
142
using Graphics g = Graphics.
FromImage
(bmp);
169
using Graphics g = Graphics.
FromImage
(bmp);
185
using Graphics g = Graphics.
FromImage
(bmp);
205
using Graphics g = Graphics.
FromImage
(bmp);
215
using Graphics g = Graphics.
FromImage
(bmp);
226
using Graphics g = Graphics.
FromImage
(bmp);
235
using Graphics g = Graphics.
FromImage
(bmp);
245
using Graphics g = Graphics.
FromImage
(bmp);
255
using Graphics g = Graphics.
FromImage
(bmp);
266
using Graphics g = Graphics.
FromImage
(bmp);
302
using Graphics g = Graphics.
FromImage
(bmp);
320
using Graphics g = Graphics.
FromImage
(bmp);
338
using (Graphics g = Graphics.
FromImage
(bmp))
354
using (Graphics g = Graphics.
FromImage
(bmp))
371
using (Graphics g = Graphics.
FromImage
(bmp))
398
using Graphics g = Graphics.
FromImage
(bmp);
409
using Graphics g = Graphics.
FromImage
(bmp);
422
using Graphics g = Graphics.
FromImage
(bmp);
434
using Graphics g = Graphics.
FromImage
(bmp);
447
using (Graphics g = Graphics.
FromImage
(bmp))
463
using (Graphics g = Graphics.
FromImage
(bmp))
479
using (Graphics g = Graphics.
FromImage
(bmp))
496
using (Graphics g = Graphics.
FromImage
(bmp))
514
using (Graphics g = Graphics.
FromImage
(bmp))
531
using (Graphics g = Graphics.
FromImage
(bmp))
547
using (Graphics g = Graphics.
FromImage
(bmp))
563
using (Graphics g = Graphics.
FromImage
(bmp))
580
using (Graphics g = Graphics.
FromImage
(bmp))
598
using (Graphics g = Graphics.
FromImage
(bmp))
636
using Graphics g = Graphics.
FromImage
(bmp);
658
using Graphics g = Graphics.
FromImage
(bmp);
676
using Graphics g = Graphics.
FromImage
(bmp);
693
using Graphics g = Graphics.
FromImage
(bmp);
709
using Graphics g = Graphics.
FromImage
(bmp);
725
using Graphics g = Graphics.
FromImage
(bmp);
736
using Graphics g = Graphics.
FromImage
(bmp);
747
using Graphics g = Graphics.
FromImage
(bmp);
759
using Graphics g = Graphics.
FromImage
(bmp);
772
using Graphics g = Graphics.
FromImage
(bmp);
798
using Graphics g = Graphics.
FromImage
(bmp);
813
using Graphics g = Graphics.
FromImage
(bmp);
825
using Graphics g = Graphics.
FromImage
(bmp);
System\Drawing\Printing\PrintDocumentTests.cs (1)
282
return Graphics.
FromImage
(bitmap);
System\Drawing\RegionTests.cs (7)
32
private static readonly Graphics s_graphic = Graphics.
FromImage
(new Bitmap(1, 1));
478
using Graphics graphics = Graphics.
FromImage
(new Bitmap(600, 800));
608
var graphics = Graphics.
FromImage
(image);
989
var graphics = Graphics.
FromImage
(image);
1290
var graphics = Graphics.
FromImage
(image);
1330
var disposedGraphics = Graphics.
FromImage
(image);
1384
var disposedGraphics = Graphics.
FromImage
(image);
System\Drawing\TextureBrushTests.cs (1)
813
using Graphics targetGraphics = Graphics.
FromImage
(targetImage);
System.Windows.Forms (15)
System\Windows\Forms\Control.cs (2)
4879
using Graphics g = Graphics.
FromImage
(image);
4890
using Graphics destGraphics = Graphics.
FromImage
(bitmap);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (1)
310
using (Graphics offscreen = Graphics.
FromImage
(bitmap))
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
1351
using (Graphics offscreen = Graphics.
FromImage
(bitmap))
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (1)
837
Graphics gFlip = Graphics.
FromImage
(bmFlipXPThemes);
System\Windows\Forms\Controls\DataGridView\DataGridViewRowHeaderCell.cs (1)
699
using Graphics gFlip = Graphics.
FromImage
(bmFlipXPThemes);
System\Windows\Forms\Controls\ImageList\ImageList.cs (1)
661
Graphics graphics = Graphics.
FromImage
(result);
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.DropDownHolder.cs (1)
222
using (Graphics glyphGraphics = Graphics.
FromImage
(_sizeGripGlyph))
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
2655
using Graphics g = Graphics.
FromImage
(image);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
709
using (Graphics g = Graphics.
FromImage
(image))
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (2)
879
using Graphics textGraphics = Graphics.
FromImage
(textBmp);
1037
using (Graphics graphics = Graphics.
FromImage
(disabledBitmap))
System\Windows\Forms\Rendering\ControlPaint.cs (3)
1371
using (Graphics g2 = Graphics.
FromImage
(bitmap))
1442
using Graphics g2 = Graphics.
FromImage
(bitmap);
1637
using (Graphics g = Graphics.
FromImage
(bitmap))
System.Windows.Forms.Design (8)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.cs (1)
295
using Graphics swatchGraphics = Graphics.
FromImage
(_swatch);
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (2)
1020
using (Graphics g = Graphics.
FromImage
(_dragImage))
1028
using (Graphics g = Graphics.
FromImage
(_dragImage))
System\Windows\Forms\Design\DesignerUtils.cs (5)
121
using Graphics g = Graphics.
FromImage
(s_boxImage);
332
using Graphics g = Graphics.
FromImage
(image);
394
using Graphics gDest = Graphics.
FromImage
(image);
430
using Graphics g = Graphics.
FromImage
(image);
440
using (Graphics g = Graphics.
FromImage
(image))
System.Windows.Forms.Design.Tests (8)
System\ComponentModel\Design\ByteViewerTests.cs (4)
426
using Graphics graphics = Graphics.
FromImage
(image);
467
using Graphics graphics = Graphics.
FromImage
(image);
512
using Graphics graphics = Graphics.
FromImage
(image);
542
using Graphics graphics = Graphics.
FromImage
(image);
System\Drawing\Design\FontNameEditorTests.cs (1)
86
using var g = Graphics.
FromImage
(bitmap);
System\Drawing\Design\ImageEditorTests.cs (2)
162
using Graphics graphics = Graphics.
FromImage
(image);
186
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\Design\ImageIndexEditorTests.cs (1)
36
using var graphics = Graphics.
FromImage
(bitmap);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Internals\ScaleHelper.cs (1)
180
using (Graphics graphics = Graphics.
FromImage
(scaledBitmap))
System.Windows.Forms.Primitives.Tests (2)
System\Windows\Forms\DeviceContextHdcScopeTests.cs (2)
16
using Graphics g = Graphics.
FromImage
(b);
249
using Graphics g = Graphics.
FromImage
(b);
System.Windows.Forms.Tests (390)
CheckedListBoxTests.cs (6)
420
using Graphics graphics = Graphics.
FromImage
(image);
442
using Graphics graphics = Graphics.
FromImage
(image);
463
using Graphics graphics = Graphics.
FromImage
(image);
474
using Graphics graphics = Graphics.
FromImage
(image);
487
using Graphics graphics = Graphics.
FromImage
(image);
814
MeasureItemEventArgs eventArgs = new(Graphics.
FromImage
(image), 1);
System\Drawing\Design\PaintValueEventArgsTests.cs (1)
23
using Graphics graphics = Graphics.
FromImage
(image);
System\Drawing\Design\UITypeEditorTests.cs (4)
101
Graphics graphics = Graphics.
FromImage
(bitmap);
111
using var graphics = Graphics.
FromImage
(image);
119
Graphics graphics = Graphics.
FromImage
(bitmap);
133
using (var graphics = Graphics.
FromImage
(image))
System\Windows\Forms\ButtonTests.cs (2)
3424
using Graphics graphics = Graphics.
FromImage
(image);
3497
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\ComboBoxTests.cs (8)
386
Graphics graphics = Graphics.
FromImage
(bitmap);
724
Graphics graphics = Graphics.
FromImage
(bitmap);
747
control.TestRaiseOnDrawItem(new DrawItemEventArgs(Graphics.
FromImage
(bitmap), control.Font, default, 0, DrawItemState.Default));
767
Graphics graphics = Graphics.
FromImage
(bitmap);
1968
using Graphics graphics = Graphics.
FromImage
(image);
2005
using Graphics graphics = Graphics.
FromImage
(image);
2065
using Graphics graphics = Graphics.
FromImage
(image);
2109
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\ControlPaintTests.cs (68)
562
using Graphics graphics = Graphics.
FromImage
(image);
575
using Graphics graphics = Graphics.
FromImage
(image);
621
using Graphics graphics = Graphics.
FromImage
(image);
663
using Graphics graphics = Graphics.
FromImage
(image);
701
using Graphics graphics = Graphics.
FromImage
(image);
726
using Graphics graphics = Graphics.
FromImage
(image);
754
using Graphics graphics = Graphics.
FromImage
(image);
766
using Graphics graphics = Graphics.
FromImage
(image);
778
using Graphics graphics = Graphics.
FromImage
(image);
790
using Graphics graphics = Graphics.
FromImage
(image);
826
using Graphics graphics = Graphics.
FromImage
(image);
838
using Graphics graphics = Graphics.
FromImage
(image);
864
using Graphics graphics = Graphics.
FromImage
(image);
875
using Graphics graphics = Graphics.
FromImage
(image);
886
using Graphics graphics = Graphics.
FromImage
(image);
910
using Graphics graphics = Graphics.
FromImage
(image);
922
using Graphics graphics = Graphics.
FromImage
(image);
947
using Graphics graphics = Graphics.
FromImage
(image);
958
using Graphics graphics = Graphics.
FromImage
(image);
969
using Graphics graphics = Graphics.
FromImage
(image);
990
using Graphics graphics = Graphics.
FromImage
(image);
1002
using Graphics graphics = Graphics.
FromImage
(image);
1028
using Graphics graphics = Graphics.
FromImage
(image);
1039
using Graphics graphics = Graphics.
FromImage
(image);
1050
using Graphics graphics = Graphics.
FromImage
(image);
1071
using Graphics graphics = Graphics.
FromImage
(image);
1083
using Graphics graphics = Graphics.
FromImage
(image);
1108
using Graphics graphics = Graphics.
FromImage
(image);
1119
using Graphics graphics = Graphics.
FromImage
(image);
1130
using Graphics graphics = Graphics.
FromImage
(image);
1150
using Graphics graphics = Graphics.
FromImage
(image);
1178
using Graphics graphics = Graphics.
FromImage
(image);
1209
using Graphics graphics = Graphics.
FromImage
(image);
1244
using Graphics graphics = Graphics.
FromImage
(image);
1281
using Graphics graphics = Graphics.
FromImage
(image);
1302
using Graphics graphics = Graphics.
FromImage
(image);
1330
using Graphics graphics = Graphics.
FromImage
(sourceImage);
1348
using Graphics graphics = Graphics.
FromImage
(image);
1370
using Graphics graphics = Graphics.
FromImage
(image);
1401
using Graphics graphics = Graphics.
FromImage
(image);
1433
using Graphics graphics = Graphics.
FromImage
(image);
1445
using Graphics graphics = Graphics.
FromImage
(image);
1457
using Graphics graphics = Graphics.
FromImage
(image);
1487
using Graphics graphics = Graphics.
FromImage
(image);
1499
using Graphics graphics = Graphics.
FromImage
(image);
1511
using Graphics graphics = Graphics.
FromImage
(image);
1532
using Graphics graphics = Graphics.
FromImage
(image);
1544
using Graphics graphics = Graphics.
FromImage
(image);
1569
using Graphics graphics = Graphics.
FromImage
(image);
1580
using Graphics graphics = Graphics.
FromImage
(image);
1591
using Graphics graphics = Graphics.
FromImage
(image);
1612
using Graphics graphics = Graphics.
FromImage
(image);
1624
using Graphics graphics = Graphics.
FromImage
(image);
1649
using Graphics graphics = Graphics.
FromImage
(image);
1660
using Graphics graphics = Graphics.
FromImage
(image);
1671
using Graphics graphics = Graphics.
FromImage
(image);
1750
using Graphics graphics = Graphics.
FromImage
(image);
1762
using Graphics graphics = Graphics.
FromImage
(image);
1787
using Graphics graphics = Graphics.
FromImage
(image);
1798
using Graphics graphics = Graphics.
FromImage
(image);
1809
using Graphics graphics = Graphics.
FromImage
(image);
1835
using Graphics graphics = Graphics.
FromImage
(image);
1870
using Graphics graphics = Graphics.
FromImage
(image);
1882
using Graphics graphics = Graphics.
FromImage
(image);
1918
using Graphics graphics = Graphics.
FromImage
(image);
1930
using Graphics graphics = Graphics.
FromImage
(image);
1966
using Graphics graphics = Graphics.
FromImage
(image);
1995
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\ControlTests.Handlers.cs (9)
3855
using Graphics graphics = Graphics.
FromImage
(image);
3977
using Graphics graphics = Graphics.
FromImage
(image);
4027
using Graphics graphics = Graphics.
FromImage
(image);
4104
using Graphics graphics = Graphics.
FromImage
(image);
4637
using Graphics graphics = Graphics.
FromImage
(image);
4656
using Graphics graphics = Graphics.
FromImage
(image);
4695
using Graphics graphics = Graphics.
FromImage
(image);
4724
using Graphics graphics = Graphics.
FromImage
(image);
4760
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\ControlTests.Methods.cs (7)
4296
using Graphics graphics = Graphics.
FromImage
(image);
4305
using Graphics graphics = Graphics.
FromImage
(image);
4352
using Graphics graphics = Graphics.
FromImage
(image);
12894
using Graphics graphics = Graphics.
FromImage
(image);
12989
using Graphics graphics = Graphics.
FromImage
(image);
13236
using Graphics graphics = Graphics.
FromImage
(image);
13353
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\CursorTests.cs (6)
380
using Graphics graphics = Graphics.
FromImage
(image);
390
using Graphics graphics = Graphics.
FromImage
(image);
406
Graphics graphics = Graphics.
FromImage
(image);
417
using Graphics graphics = Graphics.
FromImage
(image);
427
using Graphics graphics = Graphics.
FromImage
(image);
443
Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\DataGridViewCellPaintingEventArgsTests.cs (16)
22
using Graphics graphics = Graphics.
FromImage
(image);
45
using Graphics graphics = Graphics.
FromImage
(image);
60
using Graphics graphics = Graphics.
FromImage
(image);
70
using Graphics graphics = Graphics.
FromImage
(image);
81
using Graphics graphics = Graphics.
FromImage
(image);
92
using Graphics graphics = Graphics.
FromImage
(image);
105
using Graphics graphics = Graphics.
FromImage
(image);
118
using Graphics graphics = Graphics.
FromImage
(image);
131
using Graphics graphics = Graphics.
FromImage
(image);
142
using Graphics graphics = Graphics.
FromImage
(image);
155
using Graphics graphics = Graphics.
FromImage
(image);
168
using Graphics graphics = Graphics.
FromImage
(image);
181
using Graphics graphics = Graphics.
FromImage
(image);
192
using Graphics graphics = Graphics.
FromImage
(image);
205
using Graphics graphics = Graphics.
FromImage
(image);
218
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\DataGridViewCellTests.cs (26)
3678
using Graphics graphics = Graphics.
FromImage
(image);
3830
using Graphics graphics = Graphics.
FromImage
(image);
5253
using Graphics graphics = Graphics.
FromImage
(image);
5268
using Graphics graphics = Graphics.
FromImage
(image);
5290
using Graphics graphics = Graphics.
FromImage
(image);
5303
using Graphics graphics = Graphics.
FromImage
(image);
5315
using Graphics graphics = Graphics.
FromImage
(image);
5327
using Graphics graphics = Graphics.
FromImage
(image);
5341
using Graphics graphics = Graphics.
FromImage
(image);
5355
using Graphics graphics = Graphics.
FromImage
(image);
5365
using Graphics graphics = Graphics.
FromImage
(image);
5374
using Graphics graphics = Graphics.
FromImage
(image);
5383
using Graphics graphics = Graphics.
FromImage
(image);
5397
using Graphics graphics = Graphics.
FromImage
(image);
5411
using Graphics graphics = Graphics.
FromImage
(image);
5420
using Graphics graphics = Graphics.
FromImage
(image);
5429
using Graphics graphics = Graphics.
FromImage
(image);
5443
using Graphics graphics = Graphics.
FromImage
(image);
5457
using Graphics graphics = Graphics.
FromImage
(image);
5467
using Graphics graphics = Graphics.
FromImage
(image);
5476
using Graphics graphics = Graphics.
FromImage
(image);
6019
using Graphics graphics = Graphics.
FromImage
(image);
6027
using Graphics graphics = Graphics.
FromImage
(image);
6043
using Graphics graphics = Graphics.
FromImage
(image);
6053
using Graphics graphics = Graphics.
FromImage
(image);
6063
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\DataGridViewHeaderCellTests.cs (1)
4622
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\DataGridViewRowPostPaintEventArgsTests.cs (15)
22
using Graphics graphics = Graphics.
FromImage
(image);
41
using Graphics graphics = Graphics.
FromImage
(image);
56
using Graphics graphics = Graphics.
FromImage
(image);
73
using Graphics graphics = Graphics.
FromImage
(image);
86
using Graphics graphics = Graphics.
FromImage
(image);
99
using Graphics graphics = Graphics.
FromImage
(image);
110
using Graphics graphics = Graphics.
FromImage
(image);
123
using Graphics graphics = Graphics.
FromImage
(image);
134
using Graphics graphics = Graphics.
FromImage
(image);
147
using Graphics graphics = Graphics.
FromImage
(image);
158
using Graphics graphics = Graphics.
FromImage
(image);
171
using Graphics graphics = Graphics.
FromImage
(image);
182
using Graphics graphics = Graphics.
FromImage
(image);
195
using Graphics graphics = Graphics.
FromImage
(image);
208
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\DataGridViewRowPrePaintEventArgsTests.cs (17)
13
Graphics graphics = Graphics.
FromImage
(image);
42
using Graphics graphics = Graphics.
FromImage
(image);
57
using Graphics graphics = Graphics.
FromImage
(image);
74
using Graphics graphics = Graphics.
FromImage
(image);
89
using Graphics graphics = Graphics.
FromImage
(image);
103
using Graphics graphics = Graphics.
FromImage
(image);
113
using Graphics graphics = Graphics.
FromImage
(image);
126
using Graphics graphics = Graphics.
FromImage
(image);
137
using Graphics graphics = Graphics.
FromImage
(image);
150
using Graphics graphics = Graphics.
FromImage
(image);
161
using Graphics graphics = Graphics.
FromImage
(image);
174
using Graphics graphics = Graphics.
FromImage
(image);
185
using Graphics graphics = Graphics.
FromImage
(image);
198
using Graphics graphics = Graphics.
FromImage
(image);
209
using Graphics graphics = Graphics.
FromImage
(image);
222
using Graphics graphics = Graphics.
FromImage
(image);
235
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\DataGridViewRowTests.cs (38)
4197
using Graphics graphics = Graphics.
FromImage
(image);
4213
using Graphics graphics = Graphics.
FromImage
(image);
4236
using Graphics graphics = Graphics.
FromImage
(image);
4593
using Graphics graphics = Graphics.
FromImage
(image);
4617
using Graphics graphics = Graphics.
FromImage
(image);
4643
using Graphics graphics = Graphics.
FromImage
(image);
4667
using Graphics graphics = Graphics.
FromImage
(image);
4691
using Graphics graphics = Graphics.
FromImage
(image);
4715
using Graphics graphics = Graphics.
FromImage
(image);
4739
using Graphics graphics = Graphics.
FromImage
(image);
4764
using Graphics graphics = Graphics.
FromImage
(image);
4789
using Graphics graphics = Graphics.
FromImage
(image);
4797
using Graphics graphics = Graphics.
FromImage
(image);
4874
using Graphics graphics = Graphics.
FromImage
(image);
5000
using Graphics graphics = Graphics.
FromImage
(image);
5039
using Graphics graphics = Graphics.
FromImage
(image);
5063
using Graphics graphics = Graphics.
FromImage
(image);
5089
using Graphics graphics = Graphics.
FromImage
(image);
5113
using Graphics graphics = Graphics.
FromImage
(image);
5137
using Graphics graphics = Graphics.
FromImage
(image);
5161
using Graphics graphics = Graphics.
FromImage
(image);
5185
using Graphics graphics = Graphics.
FromImage
(image);
5210
using Graphics graphics = Graphics.
FromImage
(image);
5235
using Graphics graphics = Graphics.
FromImage
(image);
5309
using Graphics graphics = Graphics.
FromImage
(image);
5328
using Graphics graphics = Graphics.
FromImage
(image);
5359
using Graphics graphics = Graphics.
FromImage
(image);
5383
using Graphics graphics = Graphics.
FromImage
(image);
5409
using Graphics graphics = Graphics.
FromImage
(image);
5433
using Graphics graphics = Graphics.
FromImage
(image);
5457
using Graphics graphics = Graphics.
FromImage
(image);
5481
using Graphics graphics = Graphics.
FromImage
(image);
5505
using Graphics graphics = Graphics.
FromImage
(image);
5530
using Graphics graphics = Graphics.
FromImage
(image);
5555
using Graphics graphics = Graphics.
FromImage
(image);
5632
using Graphics graphics = Graphics.
FromImage
(image);
5648
using Graphics graphics = Graphics.
FromImage
(image);
5666
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\DateTimePickerTests.cs (2)
546
control.OnPaint(new(Graphics.
FromImage
(bmp), default));
554
control.OnPaint(new(Graphics.
FromImage
(bmp), default));
System\Windows\Forms\DrawItemEventArgsTests.cs (4)
25
using Graphics graphics = Graphics.
FromImage
(image);
50
using Graphics graphics = Graphics.
FromImage
(image);
90
using Graphics graphics = Graphics.
FromImage
(image);
100
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\DrawListViewColumnHeaderEventArgsTests.cs (6)
24
using Graphics graphics = Graphics.
FromImage
(image);
48
using Graphics graphics = Graphics.
FromImage
(image);
76
using Graphics graphics = Graphics.
FromImage
(image);
88
using Graphics graphics = Graphics.
FromImage
(image);
98
using Graphics graphics = Graphics.
FromImage
(image);
114
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\DrawListViewItemEventArgsTests.cs (7)
24
using Graphics graphics = Graphics.
FromImage
(image);
45
using Graphics graphics = Graphics.
FromImage
(image);
54
using Graphics graphics = Graphics.
FromImage
(image);
113
using Graphics graphics = Graphics.
FromImage
(image);
123
using Graphics graphics = Graphics.
FromImage
(image);
133
using Graphics graphics = Graphics.
FromImage
(image);
143
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\DrawListViewSubItemEventArgsTests.cs (6)
25
using Graphics graphics = Graphics.
FromImage
(image);
48
using Graphics graphics = Graphics.
FromImage
(image);
58
using Graphics graphics = Graphics.
FromImage
(image);
67
using Graphics graphics = Graphics.
FromImage
(image);
117
using Graphics graphics = Graphics.
FromImage
(image);
127
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\DrawToolTipEventArgsTests.cs (5)
23
using Graphics graphics = Graphics.
FromImage
(image);
48
using Graphics graphics = Graphics.
FromImage
(image);
58
using Graphics graphics = Graphics.
FromImage
(image);
68
using Graphics graphics = Graphics.
FromImage
(image);
78
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\DrawTreeNodeEventArgsTests.cs (2)
23
using Graphics graphics = Graphics.
FromImage
(image);
37
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\GroupBoxTests.cs (6)
1850
using Graphics graphics = Graphics.
FromImage
(image);
1888
using Graphics graphics = Graphics.
FromImage
(image);
2088
using Graphics graphics = Graphics.
FromImage
(image);
2126
using Graphics graphics = Graphics.
FromImage
(image);
2189
using Graphics graphics = Graphics.
FromImage
(image);
2234
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\ImageListTests.cs (8)
931
using Graphics graphics = Graphics.
FromImage
(sourceImage);
946
using Graphics graphics = Graphics.
FromImage
(sourceImage);
960
using Graphics graphics = Graphics.
FromImage
(sourceImage);
975
using Graphics graphics = Graphics.
FromImage
(sourceImage);
998
using Graphics graphics = Graphics.
FromImage
(sourceImage);
1013
using Graphics graphics = Graphics.
FromImage
(sourceImage);
1038
using Graphics graphics = Graphics.
FromImage
(sourceImage);
1054
using Graphics graphics = Graphics.
FromImage
(sourceImage);
System\Windows\Forms\ListBoxTests.cs (2)
5519
Graphics graphics = Graphics.
FromImage
(bitmap);
5640
using Graphics graphics = Graphics.
FromImage
(bitmap);
System\Windows\Forms\MeasureItemEventArgsTests.cs (4)
14
Graphics graphics = Graphics.
FromImage
(image);
35
Graphics graphics = Graphics.
FromImage
(image);
60
using Graphics graphics = Graphics.
FromImage
(image);
75
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\PaintEventArgsTests.cs (3)
23
using Graphics graphics = Graphics.
FromImage
(image);
40
using Graphics graphics = Graphics.
FromImage
(image);
52
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\ProgressBarRendererTest.cs (1)
68
using Graphics graphics1 = Graphics.
FromImage
(bitmap1);
System\Windows\Forms\ScrollableControlTests.cs (4)
1531
using Graphics graphics = Graphics.
FromImage
(image);
1678
using Graphics graphics = Graphics.
FromImage
(image);
1730
using Graphics graphics = Graphics.
FromImage
(image);
1818
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\StatusStripTests.cs (1)
1211
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\TabControlTests.cs (1)
4221
Graphics graphics = Graphics.
FromImage
(bitmap);
System\Windows\Forms\TableLayoutCellPaintEventArgsTests.cs (1)
24
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\TableLayoutPanelTests.cs (3)
1209
Graphics graphics = Graphics.
FromImage
(image);
1430
using Graphics graphics = Graphics.
FromImage
(image);
1470
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\TabPageTests.cs (4)
3977
using Graphics graphics = Graphics.
FromImage
(image);
4047
using Graphics graphics = Graphics.
FromImage
(image);
4103
using Graphics graphics = Graphics.
FromImage
(image);
4186
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\TextRendererTests.cs (17)
36
using Graphics graphics = Graphics.
FromImage
(image);
70
using Graphics graphics = Graphics.
FromImage
(image);
107
using Graphics graphics = Graphics.
FromImage
(image);
148
using Graphics graphics = Graphics.
FromImage
(image);
180
using Graphics graphics = Graphics.
FromImage
(image);
216
using Graphics graphics = Graphics.
FromImage
(image);
256
using Graphics graphics = Graphics.
FromImage
(image);
300
using Graphics graphics = Graphics.
FromImage
(image);
312
using Graphics graphics = Graphics.
FromImage
(image);
473
using Graphics graphics = Graphics.
FromImage
(image);
488
using Graphics graphics = Graphics.
FromImage
(image);
503
using Graphics graphics = Graphics.
FromImage
(image);
518
using Graphics graphics = Graphics.
FromImage
(image);
537
using Graphics graphics = Graphics.
FromImage
(image);
726
using Graphics graphics = Graphics.
FromImage
(image);
754
using (Graphics graphics = Graphics.
FromImage
(metafileRecorder))
803
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\ToolStripArrowRenderEventArgsTests.cs (4)
20
Graphics graphics = Graphics.
FromImage
(image);
50
using Graphics graphics = Graphics.
FromImage
(image);
70
using Graphics graphics = Graphics.
FromImage
(image);
85
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\ToolStripButtonTests.cs (3)
1265
using Graphics graphics = Graphics.
FromImage
(image);
1356
using Graphics graphics = Graphics.
FromImage
(image);
1449
Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\ToolStripComboBox.ToolStripComboBoxControl.ToolStripComboBoxFlatComboAdapterTests.cs (1)
78
using Graphics graphics = Graphics.
FromImage
(bitmap);
System\Windows\Forms\ToolStripContentPanelRenderEventArgsTests.cs (3)
13
Graphics graphics = Graphics.
FromImage
(image);
31
using Graphics graphics = Graphics.
FromImage
(image);
45
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\ToolStripContentPanelTests.cs (1)
1854
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\ToolStripControlHostTests.cs (1)
4109
var graphics = Graphics.
FromImage
(image);
System\Windows\Forms\ToolStripGripRenderEventArgsTests.cs (2)
13
Graphics graphics = Graphics.
FromImage
(image);
30
Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\ToolStripItemImageRenderEventArgsTests.cs (4)
13
Graphics graphics = Graphics.
FromImage
(image);
30
Graphics graphics = Graphics.
FromImage
(image);
75
using Graphics g = Graphics.
FromImage
(image);
100
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\ToolStripItemRenderEventArgsTests.cs (2)
13
Graphics graphics = Graphics.
FromImage
(image);
30
Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (4)
22
using Graphics g = Graphics.
FromImage
(image);
48
using Graphics g = Graphics.
FromImage
(image);
65
using Graphics graphics = Graphics.
FromImage
(image);
81
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\ToolStripPanelRenderEventArgsTests.cs (3)
13
Graphics graphics = Graphics.
FromImage
(image);
31
using Graphics graphics = Graphics.
FromImage
(image);
45
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\ToolStripRendererTests.cs (13)
45
using Graphics graphics = Graphics.
FromImage
(image);
80
Graphics graphics = Graphics.
FromImage
(image);
137
Graphics graphics = Graphics.
FromImage
(image);
192
Graphics graphics = Graphics.
FromImage
(image);
313
using Graphics graphics = Graphics.
FromImage
(image);
420
Graphics graphics = Graphics.
FromImage
(image);
486
using Graphics graphics = Graphics.
FromImage
(image);
521
Graphics graphics = Graphics.
FromImage
(image);
603
Graphics graphics = Graphics.
FromImage
(image);
660
Graphics graphics = Graphics.
FromImage
(image);
725
using Graphics graphics = Graphics.
FromImage
(image);
842
using Graphics graphics = Graphics.
FromImage
(image);
919
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (4)
13
Graphics graphics = Graphics.
FromImage
(image);
40
using Graphics graphics = Graphics.
FromImage
(image);
64
using Graphics graphics = Graphics.
FromImage
(image);
93
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\ToolStripSeparatorRenderEventArgsTests.cs (2)
13
Graphics graphics = Graphics.
FromImage
(image);
30
Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\ToolStripSeparatorTests.cs (3)
1118
Graphics graphics = Graphics.
FromImage
(image);
1212
using Graphics graphics = Graphics.
FromImage
(image);
1283
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\ToolStripTests.cs (6)
5872
using Graphics graphics = Graphics.
FromImage
(image);
6019
using Graphics graphics = Graphics.
FromImage
(image);
6070
using Graphics graphics = Graphics.
FromImage
(image);
6157
using Graphics graphics = Graphics.
FromImage
(image);
6232
using Graphics graphics = Graphics.
FromImage
(image);
6261
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\TrackBarRendererTests.cs (1)
19
_graphics = Graphics.
FromImage
(_bitmap);
System\Windows\Forms\TreeViewTests.cs (1)
5667
Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\UpDownBaseTests.cs (2)
2246
using Graphics graphics = Graphics.
FromImage
(image);
2282
using Graphics graphics = Graphics.
FromImage
(image);
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (18)
137
using Graphics graphics = Graphics.
FromImage
(bitmap);
171
using Graphics graphics = Graphics.
FromImage
(bitmap);
206
using Graphics graphics = Graphics.
FromImage
(bitmap);
224
using Graphics graphics = Graphics.
FromImage
(bitmap);
234
using Graphics graphics = Graphics.
FromImage
(bitmap);
244
using Graphics graphics = Graphics.
FromImage
(bitmap);
268
using Graphics graphics = Graphics.
FromImage
(bitmap);
281
using Graphics graphics = Graphics.
FromImage
(bitmap);
305
using Graphics graphics = Graphics.
FromImage
(bitmap);
315
using Graphics graphics = Graphics.
FromImage
(bitmap);
326
using Graphics graphics = Graphics.
FromImage
(bitmap);
353
using Graphics graphics = Graphics.
FromImage
(bitmap);
380
using Graphics graphics = Graphics.
FromImage
(bitmap);
419
using Graphics graphics = Graphics.
FromImage
(bitmap);
450
using Graphics graphics = Graphics.
FromImage
(bitmap);
481
using Graphics graphics = Graphics.
FromImage
(bitmap);
572
using Graphics graphics = Graphics.
FromImage
(image);
584
using Graphics graphics = Graphics.
FromImage
(image);
TrackBarTests.cs (1)
3244
using Graphics graphics = Graphics.
FromImage
(bitmap);
System.Windows.Forms.TestUtilities (1)
CommonTestHelperEx.cs (1)
112
Graphics graphics = Graphics.
FromImage
(image);
System.Windows.Forms.UI.IntegrationTests (1)
Infra\ScreenshotService.cs (1)
64
using var graphics = Graphics.
FromImage
(bitmap);
WindowsFormsIntegration (3)
System\Windows\Integration\HostUtils.cs (3)
184
using (SD.Graphics g = SD.Graphics.
FromImage
(bitmap))
202
using (SD.Graphics g = SD.Graphics.
FromImage
(returnBitmap))
304
using (SD.Graphics graphics = SD.Graphics.
FromImage
(chunk))