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