18 references to FromHbitmap
System.Drawing.Common.Tests (7)
mono\System.Drawing\BitmapTests.cs (3)
1275using Image image = Image.FromHbitmap(hbitmap); 1301using (Image image = Image.FromHbitmap(hbitmap)) 1311using Image image2 = Image.FromHbitmap(hbitmap);
System\Drawing\BitmapTests.cs (4)
603using Bitmap result = Image.FromHbitmap(handle); 615using (Bitmap result = Image.FromHbitmap(handle)) 624using (Bitmap result = Image.FromHbitmap(handle)) 655Assert.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)
623tmpBitmap = Image.FromHbitmap((IntPtr)imageInfo.hbmImage);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
674return 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)
40using Bitmap result = Bitmap.FromHbitmap((IntPtr)hBitmap); 65using Bitmap result = Bitmap.FromHbitmap((IntPtr)hBitmap); 111using Bitmap result = Bitmap.FromHbitmap((IntPtr)hBitmap); 143using Bitmap result = Bitmap.FromHbitmap((IntPtr)hBitmap); 176using Bitmap result = Bitmap.FromHbitmap((IntPtr)hBitmap); 219using Bitmap result = Bitmap.FromHbitmap((IntPtr)hBitmap); 244using Bitmap result = Bitmap.FromHbitmap((IntPtr)hBitmap);