10 references to Bitmap
System.Drawing.Common (4)
System\Drawing\Bitmap.cs (2)
112public Bitmap(Image original) : this(original, original.Width, original.Height) 116public Bitmap(Image original, Size newSize) : this(original, newSize.Width, newSize.Height)
System\Drawing\ToolboxBitmapAttribute.cs (2)
77image = new Bitmap((Bitmap)_smallImage, s_largeSize.Width, s_largeSize.Height); 198image = new Bitmap(bitmap, s_largeSize.Width, s_largeSize.Height);
System.Drawing.Common.Tests (5)
System\Drawing\BitmapTests.cs (5)
222AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(new Bitmap(1, 1), width, 1)); 237AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(new Bitmap(1, 1), 1, height)); 320using Bitmap bitmap = new(image, width, height); 342AssertExtensions.Throws<ArgumentNullException>("original", "image", () => new Bitmap(null, 1, 2)); 352AssertExtensions.Throws<ArgumentException>(null, () => new Bitmap(image, 1, 1));
System.Windows.Forms (1)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
2093_largeButtonImages.Images.Add(new Bitmap(bitmap, s_largeButtonSize.Width, s_largeButtonSize.Height));