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