37 references to Size
PresentationFramework-SystemDrawing (4)
SystemDrawingExtension.cs (4)
52width = bitmapData.Size.Width; 53height = bitmapData.Size.Height; 64int bitmapheight = metafile.Size.Height; 65int bitmapwidth = metafile.Size.Width;
System.Drawing.Common (5)
misc\DpiHelper.cs (3)
111RectangleF sourceRect = new(0, 0, logicalImage.Size.Width, logicalImage.Size.Height); 131Size deviceImageSize = LogicalToDeviceUnits(logicalImage.Size);
System\Drawing\Bitmap.cs (2)
216transparent = GetPixel(0, Size.Height - 1); 236Size size = Size;
System.Windows.Forms (19)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
619ImageSize = (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)
873Size pointImageSize = image.Size;
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (4)
349result.Size = _image.Size; 360result.Size = _image.Size; 364Size imageSize = _image.Size; 1035return _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)
1575: (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)
1169Size size = normalImage.Size;
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (1)
372if (_cachedBitmap is null || _cachedBitmap.Size != new Size(width, height))
System\Windows\Forms\Rendering\ControlPaint.cs (5)
178Size size = bitmap.Size; 273Size size = bitmap.Size; 332Size size = bitmap.Size; 477Rectangle imageRectangle = CalculateBackgroundImageRectangle(bounds, backgroundImage.Size, backgroundImageLayout); 1630Size imageSize = image.Size;
System.Windows.Forms.Design (5)
System\Windows\Forms\Design\ComponentTray.cs (1)
2438Size 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.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);