18 references to FromHbitmap
System.Drawing.Common.Tests (7)
mono\System.Drawing\BitmapTests.cs (3)
1275
using Image image = Image.
FromHbitmap
(hbitmap);
1301
using (Image image = Image.
FromHbitmap
(hbitmap))
1311
using Image image2 = Image.
FromHbitmap
(hbitmap);
System\Drawing\BitmapTests.cs (4)
603
using Bitmap result = Image.
FromHbitmap
(handle);
615
using (Bitmap result = Image.
FromHbitmap
(handle))
624
using (Bitmap result = Image.
FromHbitmap
(handle))
655
Assert.Throws<ExternalException>(() => Image.
FromHbitmap
(IntPtr.Zero));
System.Windows.Forms (4)
System\Windows\Forms\ComponentModel\COM2Interop\COM2PictureConverter.cs (1)
70
_lastManaged = Image.
FromHbitmap
(extendedHandle);
System\Windows\Forms\Controls\ImageList\ImageList.cs (1)
623
tmpBitmap = Image.
FromHbitmap
((IntPtr)imageInfo.hbmImage);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
674
return Image.
FromHbitmap
(info.hbmpItem);
System\Windows\Forms\OLE\DataObject.Composition.NativeToWinFormsAdapter.cs (1)
382
&& Image.
FromHbitmap
(medium.hGlobal) is Image clipboardImage)
System.Windows.Forms.Tests (7)
System\Windows\Forms\ControlPaintTests.cs (7)
40
using Bitmap result = Bitmap.
FromHbitmap
((IntPtr)hBitmap);
65
using Bitmap result = Bitmap.
FromHbitmap
((IntPtr)hBitmap);
111
using Bitmap result = Bitmap.
FromHbitmap
((IntPtr)hBitmap);
143
using Bitmap result = Bitmap.
FromHbitmap
((IntPtr)hBitmap);
176
using Bitmap result = Bitmap.
FromHbitmap
((IntPtr)hBitmap);
219
using Bitmap result = Bitmap.
FromHbitmap
((IntPtr)hBitmap);
244
using Bitmap result = Bitmap.
FromHbitmap
((IntPtr)hBitmap);