209 references to Size
PresentationFramework-SystemDrawing (4)
SystemDrawingExtension.cs (4)
82width = bitmapData.Size.Width; 83height = bitmapData.Size.Height; 100int bitmapheight = metafile.Size.Height; 101int bitmapwidth = metafile.Size.Width;
System.Drawing.Common.Tests (68)
DrawingTest.cs (1)
14BitmapData data = bitmap.LockBits(new Rectangle(default, bitmap.Size), ImageLockMode.ReadWrite, bitmap.PixelFormat);
mono\System.Drawing.Imaging\BmpCodecTests.cs (10)
57Assert.Equal(173, bmp.Size.Width); 58Assert.Equal(183, bmp.Size.Height); 123Assert.Equal(173, bmp.Size.Width); 124Assert.Equal(183, bmp.Size.Height); 189Assert.Equal(173, bmp.Size.Width); 190Assert.Equal(183, bmp.Size.Height); 375Assert.Equal(173, bmp.Size.Width); 376Assert.Equal(183, bmp.Size.Height); 506Assert.Equal(90, bmp.Size.Width); 507Assert.Equal(60, bmp.Size.Height);
mono\System.Drawing.Imaging\GifCodecTests.cs (2)
54Assert.Equal(110, bmp.Size.Width); 55Assert.Equal(100, bmp.Size.Height);
mono\System.Drawing.Imaging\IconCodecTests.cs (12)
91Assert.Equal(16, bmp.Size.Width); 92Assert.Equal(16, bmp.Size.Height); 239Assert.Equal(32, bmp.Size.Width); 240Assert.Equal(32, bmp.Size.Height); 444Assert.Equal(48, bmp.Size.Width); 445Assert.Equal(48, bmp.Size.Height); 666Assert.Equal(64, bmp.Size.Width); 667Assert.Equal(64, bmp.Size.Height); 924Assert.Equal(96, bmp.Size.Width); 925Assert.Equal(96, bmp.Size.Height); 1858Assert.Equal(16, bmp.Size.Width); 1859Assert.Equal(16, bmp.Size.Height);
mono\System.Drawing.Imaging\JpegCodecTests.cs (4)
56Assert.Equal(110, bmp.Size.Width); 57Assert.Equal(100, bmp.Size.Height); 183Assert.Equal(110, bmp.Size.Width); 184Assert.Equal(100, bmp.Size.Height);
mono\System.Drawing.Imaging\PngCodecTests.cs (6)
62Assert.Equal(288, bmp.Size.Width); 63Assert.Equal(384, bmp.Size.Height); 264Assert.Equal(100, bmp.Size.Width); 265Assert.Equal(100, bmp.Size.Height); 386Assert.Equal(288, bmp.Size.Width); 387Assert.Equal(384, bmp.Size.Height);
mono\System.Drawing.Imaging\TiffCodecTests.cs (2)
56Assert.Equal(173, bmp.Size.Width); 57Assert.Equal(183, bmp.Size.Height);
System\Drawing\BitmapTests.cs (4)
752Assert.Equal(expectedPngBitmap.Size, outputPngBitmap.Size); 1272AssertExtensions.Throws<ArgumentException>(null, () => bitmap.Size); 1459AssertExtensions.Throws<ArgumentException>(null, () => bitmap.Size);
System\Drawing\GraphicsTests.cs (1)
252VerifyGraphics(graphics, new Rectangle(Point.Empty, image.Size));
System\Drawing\IconTests.cs (2)
345Assert.Equal(new Size(size, size), bitmap.Size); 754Assert.Equal(new Size(32, 32), bitmap.Size);
System\Drawing\ImageConverterTests.cs (1)
43Assert.Equal(new Size(32, 32), IconBitmap.Size);
System\Drawing\ImageTests.cs (1)
687image.Size.Should().Be(new Size(90, 90));
System\Drawing\Imaging\Effects\EffectsTests.cs (1)
13graphics.FillRectangle(Brushes.White, new(default, bitmap.Size));
System\Drawing\Imaging\MetafileTests.cs (1)
1034metafile.Size.Should().Be(new Size(90, 90));
System\Drawing\TextureBrushTests.cs (9)
28Assert.Equal(expectedSize, brushImage.Size); 69Assert.Equal(expectedSize, brushImage.Size); 96Assert.Equal(rectangle.Size, brushImage.Size); 117Assert.Equal(rectangle.Size, brushImage.Size); 150Assert.Equal(rectangle.Size, brushImage.Size); 171Assert.Equal(rectangle.Size, brushImage.Size); 205Assert.Equal(rectangle.Size, brushImage.Size); 227Assert.Equal(rectangle.Size, brushImage.Size); 307Assert.Equal(new Size(10, 10), brush.Image.Size);
System\Drawing\ToolboxBitmapAttributeTests.cs (11)
20Assert.Equal(s_defaultSize, image.Size); 44Assert.Equal(size, image.Size); 63Assert.Equal(new Size(width, height), image.Size); 90Assert.Equal(new Size(width, height), image.Size); 102Assert.Equal(new Size(32, 32), image.Size); 107Assert.Equal(new Size(width, height), image.Size); 125Assert.Equal(new Size(173, 183), smallImage.Size); 128Assert.Equal(new Size(32, 32), largeImage.Size); 138Assert.Equal(new Size(32, 32), image.Size); 143Assert.Equal(new Size(173, 183), image.Size); 159Assert.Equal(new Size(width, height), image.Size);
System.Windows.Forms (18)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
602ImageSize = (Control.Image is null) ? Size.Empty : Control.Image.Size,
System\Windows\Forms\Controls\ImageList\ImageList.cs (1)
319Size size = bitmap.Size;
System\Windows\Forms\Controls\Labels\Label.cs (1)
875Size pointImageSize = image.Size;
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (4)
351result.Size = _image.Size; 362result.Size = _image.Size; 366Size imageSize = _image.Size; 1040return _image.Size + bordersAndPadding;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownMenu.cs (2)
310imageSize = (menuItem.ImageScaling == ToolStripItemImageScaling.SizeToFit) ? ImageScalingSize : menuItem.Image.Size; 318Size checkedImageSize = menuItem.CheckedImage.Size;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
1570: (image is null) ? Size.Empty : image.Size;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
711ControlPaint.DrawCaptionButton(g, new Rectangle(Point.Empty, image.Size), (CaptionButton)buttonToUse, ButtonState.Flat);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.ToolStripMenuItemInternalLayout.cs (1)
127imageRect.Size = image?.Size ?? menu.ImageScalingSize;
System\Windows\Forms\Controls\ToolStrips\ToolStripRenderer.cs (1)
1034Size size = normalImage.Size;
System\Windows\Forms\Rendering\ControlPaint.cs (5)
150Size size = bitmap.Size; 245Size size = bitmap.Size; 304Size size = bitmap.Size; 442Rectangle imageRectangle = CalculateBackgroundImageRectangle(bounds, backgroundImage.Size, backgroundImageLayout); 1601Size imageSize = image.Size;
System.Windows.Forms.Design (5)
System\Windows\Forms\Design\ComponentTray.cs (1)
2456Size sz = _toolboxBitmap.Size;
System\Windows\Forms\Design\DesignerUtils.cs (1)
333DrawDragBorder(g, image.Size, borderSize, backColor);
System\Windows\Forms\Design\ImageListImage.cs (2)
46public Size Size => Image.Size; 48public SizeF PhysicalDimension => Image.Size;
System\Windows\Forms\Design\InheritanceUI.cs (1)
36Size size = InheritanceGlyph.Size;
System.Windows.Forms.Design.Tests (12)
System\Drawing\Design\BitmapEditorTests.cs (2)
79Assert.Equal(new Size(10, 10), result.Size); 92Assert.Equal(new Size(490, 654), result.Size);
System\Drawing\Design\ImageEditorTests.cs (1)
136Assert.Equal(new Size(10, 10), result.Size);
System\Drawing\Design\MetafileEditorTests.cs (1)
71Assert.Equal(new Size(3096, 4127), result.Size);
System\Drawing\Design\ToolboxItemTests.cs (3)
1362Assert.Equal(new Size(16, 16), item.Bitmap.Size); 1371Assert.Equal(expectedOriginalBitmapSize, item.OriginalBitmap.Size); 1379Assert.Equal(expectedOriginalBitmapSize, item.OriginalBitmap.Size);
System\Resources\Tools\StronglyTypedResourceBuilderTests.cs (2)
679Assert.Equal(expected.Size, resourceBitmap.Size);
System\Windows\Forms\Design\ImageListImageEditorTests.cs (1)
27Assert.Equal(new Size(10, 10), resultImage.Size);
System\Windows\Forms\Design\ImageListImageTests.cs (1)
68result.Image.Size.Should().Be(bitmap.Size);
System\Windows\Forms\Design\InheritanceUITests.cs (1)
98glyphRect.Size.Should().Be(glyph.Size);
System.Windows.Forms.Primitives (4)
System\Windows\Forms\Internals\ScaleHelper.cs (4)
142Size originalSize = bitmap.Size; 184RectangleF sourceBounds = new(0, 0, bitmap.Size.Width, bitmap.Size.Height); 211: ScaleToSize(logicalBitmap, ScaleToDpi(logicalBitmap.Size, dpi), disposeBitmap);
System.Windows.Forms.Primitives.Tests (8)
Interop\Ole32\IPictureTests.cs (8)
44Assert.Equal(bitmap.Size.Height, GdiHelper.HimetricToPixelY(height)); 46Assert.Equal(bitmap.Size.Width, GdiHelper.HimetricToPixelX(width)); 63Assert.Equal(bitmap.Size.Height, GdiHelper.HimetricToPixelY((int)variant.data.uintVal)); 66Assert.Equal(bitmap.Size.Width, GdiHelper.HimetricToPixelX((int)variant.data.uintVal)); 78Assert.Equal(bitmap.Size, image.Size); 89Assert.Equal(bitmap.Size, image.Size);
System.Windows.Forms.Tests (87)
System\Resources\ResxDataNodeTests.cs (4)
35Assert.Equal(bitmap.Size, result.Size); 50Assert.Equal(bitmap.Size, result.Size);
System\Resources\ResXFileRef.ConverterTests.cs (2)
121Assert.Equal(iconResult.Size, bitmapResult.Size); 133Assert.False(result.Size.IsEmpty);
System\Windows\Forms\AxHostTests.cs (6)
1626Assert.Equal(original.Size, result.Size); 1650Assert.Equal(new Size(759, 1073), result.Size); 1691Assert.Equal(original.Size, result.Size); 1718Assert.Equal(new Size(759, 1073), result.Size);
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (10)
133deserialized.Size.Should().Be(bitmap.Size); 149deserialized.Size.Should().Be(bitmap.Size); 169deserialized.Size.Should().Be(bitmap.Size); 193newImage.Size.Should().Be(sourceList.Images[0].Size); 216newImage.Size.Should().Be(sourceList.Images[0].Size);
System\Windows\Forms\ClipboardTests.cs (2)
450result.Size.Should().Be(bitmap.Size);
System\Windows\Forms\ControlPaintTests.cs (14)
45Assert.Equal(bitmap.Size, result.Size); 70Assert.Equal(bitmap.Size, result.Size); 116Assert.Equal(bitmap.Size, result.Size); 148Assert.Equal(bitmap.Size, result.Size); 181Assert.Equal(bitmap.Size, result.Size); 224Assert.Equal(bitmap.Size, result.Size); 249Assert.Equal(bitmap.Size, result.Size);
System\Windows\Forms\Design\PropertyTabTests.cs (5)
30Assert.Equal(new Size(11, 22), tab.Bitmap.Size); 58Assert.Throws<ArgumentException>(() => bitmap.Size); 63Assert.Throws<ArgumentException>(() => bitmap.Size); 102Assert.Throws<ArgumentException>(() => bitmap.Size); 114Assert.Throws<ArgumentException>(() => bitmap.Size);
System\Windows\Forms\DragDropHelperTests.cs (2)
128(dragImage is null ? new Size(0, 0) : dragImage.Size).Should().Be(dragImageSize); 155(e.DragImage is null ? new Size(0, 0) : e.DragImage.Size).Should().Be(dragImageSize);
System\Windows\Forms\ImageList.ImageCollectionTests.cs (22)
67Assert.Equal(new Size(16, 16), bitmap1.Size); 72Assert.Equal(new Size(16, 16), bitmap2.Size); 77Assert.Equal(new Size(16, 16), bitmap3.Size); 82Assert.Equal(new Size(16, 16), bitmap4.Size); 87Assert.Equal(new Size(16, 16), bitmap5.Size); 115Assert.Equal(new Size(16, 16), bitmap1.Size); 120Assert.Equal(new Size(16, 16), bitmap2.Size); 125Assert.Equal(new Size(16, 16), bitmap3.Size); 130Assert.Equal(new Size(16, 16), bitmap4.Size); 135Assert.Equal(new Size(16, 16), bitmap5.Size); 211Assert.Equal(image.Size, resultImage.Size); 274Assert.Equal(new Size(16, 16), bitmap.Size); 295Assert.Equal(new Size(16, 16), bitmap.Size); 361Assert.Equal(new Size(16, 16), result1.Size); 368Assert.Equal(new Size(16, 16), result1.Size); 1173Assert.Equal(new Size(16, 16), result1.Size); 1179Assert.Equal(new Size(16, 16), result2.Size); 1211Assert.Equal(new Size(16, 16), result1.Size); 1217Assert.Equal(new Size(16, 16), result2.Size); 1647Assert.Equal(new Size(16, 16), bitmap.Size); 1668Assert.Equal(new Size(16, 16), bitmap.Size);
System\Windows\Forms\ImageListTests.cs (2)
475Assert.Equal(new Size(32, 32), ((Image)Assert.Single(list.Images)).Size); 484Assert.Equal(new Size(32, 32), ((Image)Assert.Single(list.Images)).Size);
System\Windows\Forms\Ole\BinaryFormatUtilitiesTests.cs (2)
66result.Should().BeOfType<Bitmap>().Which.Size.Should().Be(value.Size);
System\Windows\Forms\PictureBoxTests.cs (13)
727Assert.Equal(expectedImageSize, pictureBox.Image.Size); 732Assert.Equal(expectedImageSize, pictureBox.Image.Size); 752Assert.Equal(expectedImageSize, pictureBox.Image.Size); 757Assert.Equal(expectedImageSize, pictureBox.Image.Size); 1754Assert.Equal(new Size(110, 100), pictureBox.Image.Size); 1979Assert.Equal(new Size(110, 100), pictureBox.Image.Size); 1993Assert.Equal(new Size(110, 100), pictureBox.Image.Size); 1998Assert.Equal(new Size(110, 100), pictureBox.Image.Size); 2018Assert.Equal(expectedImageSize, pictureBox.Image.Size); 2023Assert.Equal(expectedImageSize, pictureBox.Image.Size); 2106Assert.Equal(new Size(110, 100), pictureBox.Image.Size); 2111Assert.Equal(new Size(110, 100), pictureBox.Image.Size); 2524Assert.Equal(new Size(110, 100), pictureBox.Image.Size);
System\Windows\Forms\ToolStripItemImageRenderEventArgsTests.cs (2)
89Assert.Equal(image.Size, e.Image.Size);
System\Windows\Forms\ToolStripRendererTests.cs (1)
19Assert.Equal(new Size(10, 11), result.Size);
System.Windows.Forms.UI.IntegrationTests (3)
Infra\ScreenRecordService.cs (2)
197if (offset != Size.Empty || image.Size != frames[0].image.Size)
Infra\ScreenshotService.cs (1)
70blockRegionSize: bitmap.Size,