18 references to GetHicon
System.Drawing.Common.Tests (12)
mono\System.Drawing\BitmapTests.cs (4)
1196hicon = bitmap.GetHicon(); 1214hicon = bitmap.GetHicon(); 1232hicon = bitmap.GetHicon(); 1250hicon = bitmap.GetHicon();
System\Drawing\BitmapTests.cs (6)
676handle = bitmap.GetHicon(); 689yield return new object[] { new Bitmap(1, 1, PixelFormat.Format32bppRgb).GetHicon(), 1, 1 }; 690yield return new object[] { new Bitmap(32, 32, PixelFormat.Format32bppRgb).GetHicon(), 32, 32 }; 691yield return new object[] { new Bitmap(512, 512, PixelFormat.Format16bppRgb555).GetHicon(), 512, 512 }; 713AssertExtensions.Throws<ArgumentException>(null, () => bitmap.GetHicon()); 722AssertExtensions.Throws<ArgumentException>(null, () => bitmap.GetHicon());
System\Drawing\IconTests.cs (2)
666handle = icon1.ToBitmap().GetHicon(); 681handle = icon1.ToBitmap().GetHicon();
System.Windows.Forms (1)
System\Windows\Forms\Dialogs\TaskDialog\TaskDialogIcon.cs (1)
193handle = (HICON)bitmap.GetHicon();
System.Windows.Forms.Tests (5)
System\Windows\Forms\Design\ComponentEditorPageTests.cs (1)
288using var value = Icon.FromHandle(new Bitmap(10, 10).GetHicon());
System\Windows\Forms\ErrorProviderTests.cs (3)
535yield return new object[] { Icon.FromHandle(new Bitmap(10, 10).GetHicon()) }; 561provider.Icon = Icon.FromHandle(new Bitmap(10, 10).GetHicon()); 573provider.Icon = Icon.FromHandle(new Bitmap(10, 10).GetHicon());
System\Windows\Forms\MdiControlStripTests.cs (1)
329HICON hicon = (HICON)new Bitmap(256, 256).GetHicon();