56 references to Height
System.Drawing.Common (10)
System\Drawing\Bitmap.cs (5)
112public Bitmap(Image original) : this(original, original.Width, original.Height) 167if (Width >= short.MaxValue || Height >= short.MaxValue) 214if (Height > 0 && Width > 0) 304if (y < 0 || y >= Height) 327if (y < 0 || y >= Height)
System\Drawing\Graphics.cs (1)
2037int height = Math.Min(rect.Height, image.Height);
System\Drawing\Icon.cs (1)
686bmpData = tmpBitmap.LockBits(new Rectangle(0, 0, tmpBitmap.Width, tmpBitmap.Height), ImageLockMode.ReadOnly, tmpBitmap.PixelFormat);
System\Drawing\Image.cs (1)
421public Size Size => new(Width, Height);
System\Drawing\ToolboxBitmapAttribute.cs (2)
300Color bottomLeft = img.GetPixel(0, img.Height - 1); 304img.SetPixel(0, img.Height - 1, newBottomLeft);
System.Windows.Forms (34)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
413graphics.DrawImage(image, imageBounds.X, imageBounds.Y, image.Width, image.Height);
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (1)
299&& cacheCheckImage.Height == fullSize.Height)
System\Windows\Forms\Controls\DataGridView\DataGridViewCheckBoxCell.cs (1)
1348if (s_checkImage is null || s_checkImage.Width != fullSize.Width || s_checkImage.Height != fullSize.Height)
System\Windows\Forms\Controls\DataGridView\DataGridViewColumnHeaderCell.cs (2)
832bmFlipXPThemes.Height < backgroundBounds.Height || bmFlipXPThemes.Height > 2 * backgroundBounds.Height)
System\Windows\Forms\Controls\DataGridView\DataGridViewImageCell.cs (7)
435preferredSize = new Size(0, Math.Min(img.Height, decimal.ToInt32((decimal)img.Height * imgWidthAllowed / img.Width))); 464if (imgHeightAllowed <= 0 || img.Height == 0) 470preferredSize = new Size(Math.Min(img.Width, decimal.ToInt32((decimal)img.Width * imgHeightAllowed / img.Height)), 0); 495preferredSize = new Size(img.Width, img.Height); 832g.DrawImage(image, imageBounds, 0, 0, image.Width, image.Height, GraphicsUnit.Pixel, attr); 845image is null ? icon!.Height : image.Height,
System\Windows\Forms\Controls\ImageList\ImageList.ImageCollection.cs (1)
399if (value.Height != _owner.ImageSize.Height)
System\Windows\Forms\Controls\Labels\Label.cs (1)
993g.DrawImage(image, loc.X, loc.Y, image.Width, image.Height);
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
359result.Y += (result.Height - _image.Height) / 2;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (2)
95graphics.DrawImage(invertedImage, imageBounds, 0, 0, image.Width, image.Height, GraphicsUnit.Pixel, new ImageAttributes()); 99graphics.DrawImage(image, imageBounds, 0, 0, image.Width, image.Height, GraphicsUnit.Pixel, new ImageAttributes());
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1715graphics.DrawImage(bitmap, rectangle, 0, 0, bitmap.Width, bitmap.Height, GraphicsUnit.Pixel);
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (1)
516g.DrawImage(image, imageRect, 0, 0, image.Width, image.Height, GraphicsUnit.Pixel, attrs);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
712g.DrawRectangle(SystemPens.Control, 0, 0, image.Width - 1, image.Height - 1);
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.ToolStripMenuItemInternalLayout.cs (1)
94int imageHeight = _ownerItem.CheckedImage.Height;
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.cs (1)
131preferredSize.Height = (Label.Image is not null) ? Label.Image.Height + 4 : 0;
System\Windows\Forms\OLE\WinFormsOleServices.cs (1)
51pmedium->u.hBitmap = bitmap.GetHBITMAP().CreateCompatibleBitmap(bitmap.Width, bitmap.Height);
System\Windows\Forms\Rendering\ControlPaint.cs (11)
197biHeight = bitmap.Height, 275int height = bitmap.Height; 546backgroundImage.Height, 1392if (t_checkImage is null || t_checkImage.Width != rectangle.Width || t_checkImage.Height != rectangle.Height) 15930, 0, image.Width, image.Height, 1612g.DrawImage(image, dest, 0, 0, image.Width, image.Height, GraphicsUnit.Pixel, attributes, null, 0); 1619=> DrawImageDisabled(graphics, image, new Rectangle(x, y, image.Width, image.Height), unscaledImage: false); 1661using Bitmap bitmap = new(image.Width, image.Height); 2466for (int y = 0; y < bitmap.Height; ++y) 2485Bitmap result = new(bitmap.Width, bitmap.Height, bitmap.PixelFormat); 2486for (int y = 0; y < bitmap.Height; ++y)
System.Windows.Forms.Design (12)
System\ComponentModel\Design\DesignerActionPanel.EditorPropertyLine.EditorButton.cs (1)
134int imageHeight = arrowBitmap.Height;
System\Drawing\Design\ToolboxItem.cs (1)
605if ((itemBitmap.Width != s_iconWidth || itemBitmap.Height != s_iconHeight))
System\Windows\Forms\Design\Behavior\DesignerActionGlyph.cs (2)
160topRight.Y -= (GlyphImageOpened.Height - CONTROLOVERLAP_Y); 161_bounds = (new Rectangle(topRight.X, topRight.Y, GlyphImageOpened.Width, GlyphImageOpened.Height));
System\Windows\Forms\Design\Behavior\DropSourceBehavior.cs (3)
740_dragComponents[_primaryComponentIndex].dragImage.Height); 1029_dragComponents[i].dragImage.Width, _dragComponents[i].dragImage.Height); 1034new Rectangle(0, 0, _dragComponents[i].dragImage.Width, _dragComponents[i].dragImage.Height),
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
984listBoxItem.ToolboxBitmap.Height);
System\Windows\Forms\Design\DesignerUtils.cs (4)
409image.Height, 439image.SetPixel(image.Width / 2, image.Height / 2, testColor); 452return !image.GetPixel(image.Width / 2, image.Height / 2).Equals(testColor); 671BitmapData data = b.LockBits(new Rectangle(0, 0, b.Width, b.Height), ImageLockMode.ReadWrite, PixelFormat.Format32bppArgb);