48 references to ToBitmap
DesignSurface (1)
MainForm.cs (1)
174pb1.Image = new Icon("painter.ico").ToBitmap();
PresentationUI (1)
MS\Internal\Documents\Application\DocumentPropertiesDialog.cs (1)
131DocumentProperties.Current.Image = this.Icon.ToBitmap();
System.Drawing.Common.Tests (12)
System\Drawing\IconTests.cs (12)
342using Bitmap bitmap = icon.ToBitmap(); 523using Bitmap bitmap = icon.ToBitmap(); 524Assert.NotSame(icon.ToBitmap(), bitmap); 557using Bitmap bitmap = icon.ToBitmap(); 558using (Bitmap secondBitmap = icon.ToBitmap()) 560Assert.NotSame(icon.ToBitmap(), bitmap); 592AssertExtensions.Throws<ArgumentOutOfRangeException>(null, icon.ToBitmap); 666handle = icon1.ToBitmap().GetHicon(); 681handle = icon1.ToBitmap().GetHicon(); 724using Bitmap expected = icon.ToBitmap(); 725using Bitmap actual = loaded.ToBitmap(); 753using Bitmap bitmap = icon.ToBitmap();
System.Windows.Forms (7)
System\Resources\ResxFileRef.Converter.cs (1)
142return ico.ToBitmap();
System\Windows\Forms\Controls\ImageList\ImageList.cs (1)
295bitmap = originalIcon.ToBitmap();
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridErrorDialog.cs (1)
58_pictureBox.Image = SystemIcons.Warning.ToBitmap();
System\Windows\Forms\Design\ComponentEditorForm.cs (1)
210_selectorImageList.Images.Add(page.Icon.ToBitmap());
System\Windows\Forms\Dialogs\ThreadExceptionDialog.cs (1)
253_pictureBox.Image = icon.ToBitmap();
System\Windows\Forms\ErrorProvider\ErrorProvider.IconRegion.cs (1)
43Bitmap bitmap = _icon.ToBitmap();
System\Windows\Forms\MDI\MDIControlStrip.cs (1)
83return smallIcon.ToBitmap();
System.Windows.Forms.Design (20)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (1)
126using Bitmap arrowBitmap = icon.ToBitmap();
System\Windows\Forms\Design\Behavior\ContainerSelectorGlyph.cs (1)
48_glyph ??= new Icon(typeof(ContainerSelectorGlyph), "MoverGlyph").ToBitmap();
System\Windows\Forms\Design\ImageListImage.cs (1)
54return new ImageListImage((new Icon(stream)).ToBitmap());
System\Windows\Forms\Design\StandardCommandToolStripMenuItem.cs (1)
87_image = new Icon(typeof(ToolStripMenuItem), _name).ToBitmap();
System\Windows\Forms\Design\StandardMenuStripVerb.cs (9)
410image = new Icon(typeof(ToolStripMenuItem), "new").ToBitmap(); 414image = new Icon(typeof(ToolStripMenuItem), "open").ToBitmap(); 418image = new Icon(typeof(ToolStripMenuItem), "save").ToBitmap(); 422image = new Icon(typeof(ToolStripMenuItem), "printPreview").ToBitmap(); 426image = new Icon(typeof(ToolStripMenuItem), "print").ToBitmap(); 430image = new Icon(typeof(ToolStripMenuItem), "cut").ToBitmap(); 434image = new Icon(typeof(ToolStripMenuItem), "copy").ToBitmap(); 438image = new Icon(typeof(ToolStripMenuItem), "paste").ToBitmap(); 442image = new Icon(typeof(ToolStripMenuItem), "help").ToBitmap();
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (1)
88image = new Icon(typeof(ToolStripButton), "blank").ToBitmap();
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
610image = new Icon(typeof(ToolStripButton), "blank").ToBitmap();
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (4)
75item.Image = new Icon(typeof(ToolStripMenuItem), imageName).ToBitmap(); 123Image = new Icon(typeof(ToolStripMenuItem), "image").ToBitmap(), 218_editItemsToolStripMenuItem.Image = new Icon(typeof(ToolStripMenuItem), "editdropdownlist").ToBitmap(); 533image = new Icon(typeof(ToolStripButton), "blank").ToBitmap();
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
818image = new Icon(typeof(ToolStripButton), "blank").ToBitmap();
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Internals\ScaleHelper.cs (1)
351return icon.ToBitmap();
System.Windows.Forms.Primitives.Tests (3)
Interop\Ole32\IPictureTests.cs (3)
36using Bitmap bitmap = icon.ToBitmap(); 52using Bitmap bitmap = icon.ToBitmap(); 72using Bitmap bitmap = icon.ToBitmap();
System.Windows.Forms.Tests (1)
System\Windows\Forms\ComponentModel\Com2Interop\COM2PictureConverterTests.cs (1)
94using Bitmap errorBitmap = errorIcon.ToBitmap();
WinFormsControlsTest (2)
Buttons.cs (2)
108Image = SystemIcons.GetStockIcon(StockIconId.DesktopPC).ToBitmap() 117Image = Icon.ExtractIcon("regedit.exe", 0, 256).ToBitmap()