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