162 references to Height
System.Drawing.Common.Tests (109)
Helpers.cs (2)
57for (int y = 0; y < bitmap.Height; y++) 117for (int y = 0; y < bmp.Height; y++)
mono\System.Drawing.Imaging\BmpCodecTests.cs (7)
50Assert.Equal(183, bmp.Height); 116Assert.Equal(183, bmp.Height); 182Assert.Equal(183, bmp.Height); 242BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 245Assert.Equal(bmp.Height, data.Height); 368Assert.Equal(183, bmp.Height); 499Assert.Equal(60, bmp.Height);
mono\System.Drawing.Imaging\GifCodecTests.cs (3)
47Assert.Equal(100, bmp.Height); 109BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 112Assert.Equal(bmp.Height, data.Height);
mono\System.Drawing.Imaging\IconCodecTests.cs (16)
84Assert.Equal(16, bmp.Height); 132BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 135Assert.Equal(bmp.Height, data.Height); 232Assert.Equal(32, bmp.Height); 328BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 331Assert.Equal(bmp.Height, data.Height); 437Assert.Equal(48, bmp.Height); 546BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 549Assert.Equal(bmp.Height, data.Height); 659Assert.Equal(64, bmp.Height); 750BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 753Assert.Equal(bmp.Height, data.Height); 917Assert.Equal(96, bmp.Height); 1525BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 1528Assert.Equal(bmp.Height, data.Height); 1851Assert.Equal(16, bmp.Height);
mono\System.Drawing.Imaging\JpegCodecTests.cs (6)
49Assert.Equal(100, bmp.Height); 112BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 115Assert.Equal(bmp.Height, data.Height); 176Assert.Equal(100, bmp.Height); 227BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 230Assert.Equal(bmp.Height, data.Height);
mono\System.Drawing.Imaging\PngCodecTests.cs (9)
55Assert.Equal(384, bmp.Height); 145BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 148Assert.Equal(bmp.Height, data.Height); 257Assert.Equal(100, bmp.Height); 297BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 300Assert.Equal(bmp.Height, data.Height); 379Assert.Equal(384, bmp.Height); 470BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 473Assert.Equal(bmp.Height, data.Height);
mono\System.Drawing.Imaging\TiffCodecTests.cs (3)
49Assert.Equal(183, bmp.Height); 119BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb); 122Assert.Equal(bmp.Height, data.Height);
mono\System.Drawing\BitmapTests.cs (19)
63Rectangle rect = new(0, 0, bmp.Width, bmp.Height); 73Rectangle rect = new(0, 0, bmp.Width, bmp.Height); 338Assert.Equal(bmp.Height, bmpNew.Height); 411data = test.LockBits(new Rectangle(0, 0, test.Width, test.Height), ImageLockMode.ReadOnly, test.PixelFormat); 482int len = bmp.Width * bmp.Height * 4; 486for (int y = 0; y < bmp.Height; y++) 502int len = bmp.Width * bmp.Height * 4; 562byte[] actual = HashLock(bmp, bmp.Width, bmp.Height, PixelFormat.Format32bppArgb, ImageLockMode.ReadWrite); 575byte[] actual = HashLock(bmp, bmp.Width, bmp.Height, PixelFormat.Format32bppPArgb, ImageLockMode.ReadWrite); 588byte[] actual = HashLock(bmp, bmp.Width, bmp.Height, PixelFormat.Format32bppRgb, ImageLockMode.ReadWrite); 601byte[] actual = HashLock(bmp, bmp.Width, bmp.Height, PixelFormat.Format24bppRgb, ImageLockMode.ReadWrite); 798BitmapData data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadWrite, PixelFormat.Format1bppIndexed); 1180Assert.Equal(size, b.Height); 1267Assert.Equal(183, bitmap.Height); 1278Assert.Equal(183, image.Height); 1293Assert.Equal(183, bitmap.Height); 1305Assert.Equal(183, image.Height); 1314Assert.Equal(183, image2.Height);
mono\System.Drawing\GraphicsTests.cs (1)
64for (y = 0; y < bitmap.Height; y++)
System\Drawing\BitmapTests.cs (28)
47Assert.Equal(height, bitmap.Height); 60Assert.Equal(height, bitmap.Height); 89Assert.Equal(183, bitmap.Height); 123Assert.Equal(height, bitmap.Height); 137Assert.Equal(height, bitmap.Height); 166Assert.Equal(height, bitmap.Height); 190Assert.Equal(height, bitmap.Height); 209Assert.Equal(height, bitmap.Height); 289Assert.Equal(height, bitmap.Height); 306Assert.Equal(16, bitmap.Height); 323Assert.Equal(height, bitmap.Height); 334Assert.Equal(height, bitmap.Height); 375Assert.Equal(rectangle.Height, clone.Height); 411Assert.Equal(rectangle.Height, clone.Height); 475Assert.Equal(1, clone.Height); 605Assert.Equal(height, result.Height); 618Assert.Equal(height, result.Height); 627Assert.Equal(height, result.Height); 702Assert.Equal(height, result.Height); 791for (int y = 0; y < bitmap.Height; y++) 807for (int y = 0; y < bitmap.Height; y++) 827for (int y = 0; y < bitmap.Height; y++) 843for (int y = 0; y < bitmap.Height; y++) 863for (int y = 0; y < bitmap.Height; y++) 872for (int y = 0; y < bitmap.Height; y++) 1271AssertExtensions.Throws<ArgumentException>(null, () => bitmap.Height); 1575Assert.Equal(100, bitmap.Height); 1598Assert.Equal(100, bitmap.Height);
System\Drawing\GraphicsTests.cs (3)
463Assert.Equal(10, bitmap.Height); 477Assert.Equal(10, bitmap.Height); 1563for (int y = 0; y < image.Height; y++)
System\Drawing\IconTests.cs (7)
344Assert.Equal(size, bitmap.Height); 528Assert.Equal(icon.Height, bitmap.Height); 566Assert.Equal(icon.Height, bitmap.Height); 616stream.Write([0, 0, 1, 0, 1, 0, (byte)bitmap.Width, (byte)bitmap.Height, 0, 0, 0, 0, 32, 0, 0, 0, 0, 0, 22, 0, 0, 0], 0, 22); 726Assert.Equal(expected.Height, actual.Height); 729for (int y = 0; y < expected.Height; y++)
System\Drawing\ImageConverterTests.cs (5)
42Assert.Equal(32, IconBitmap.Height); 127Assert.Equal(_image.Height, newImage.Height); 132Assert.Equal(_image.Height, newImage.Height);
System.Windows.Forms (33)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.cs (1)
411graphics.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)
1339if (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)
995g.DrawImage(image, loc.X, loc.Y, image.Width, image.Height);
System\Windows\Forms\Controls\PictureBox\PictureBox.cs (1)
362result.Y += (result.Height - _image.Height) / 2;
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\DropDownButton.DropDownButtonAdapter.cs (2)
94graphics.DrawImage(invertedImage, imageBounds, 0, 0, image.Width, image.Height, GraphicsUnit.Pixel, new ImageAttributes()); 98graphics.DrawImage(image, imageBounds, 0, 0, image.Width, image.Height, GraphicsUnit.Pixel, new ImageAttributes());
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\GridEntry.cs (1)
1724graphics.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)
126preferredSize.Height = (Label.Image is not null) ? Label.Image.Height + 4 : 0;
System\Windows\Forms\Rendering\ControlPaint.cs (11)
172biHeight = bitmap.Height, 250int height = bitmap.Height; 514backgroundImage.Height, 1360if (t_checkImage is null || t_checkImage.Width != rectangle.Width || t_checkImage.Height != rectangle.Height) 15680, 0, image.Width, image.Height, 1587g.DrawImage(image, dest, 0, 0, image.Width, image.Height, GraphicsUnit.Pixel, attributes, null, 0); 1594=> DrawImageDisabled(graphics, image, new Rectangle(x, y, image.Width, image.Height), unscaledImage: false); 1636using Bitmap bitmap = new(image.Width, image.Height); 2412for (int y = 0; y < bitmap.Height; ++y) 2431Bitmap result = new(bitmap.Width, bitmap.Height, bitmap.PixelFormat); 2432for (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)
600if ((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)
746_dragComponents[_primaryComponentIndex].dragImage.Height); 1035_dragComponents[i].dragImage.Width, _dragComponents[i].dragImage.Height); 1040new Rectangle(0, 0, _dragComponents[i].dragImage.Width, _dragComponents[i].dragImage.Height),
System\Windows\Forms\Design\DataGridViewColumnCollectionDialog.cs (1)
989listBoxItem.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);
System.Windows.Forms.Tests (4)
System\Windows\Forms\ComponentModel\Com2Interop\COM2PictureConverterTests.cs (2)
102Assert.Equal(bitmap.Height, errorIcon.Height); 169Assert.Equal(bitmap.Height, GdiHelper.HimetricToPixelY(height));
System\Windows\Forms\RichTextBoxTests.cs (1)
10666bitmap1.Height.Should().Be(10);
System\Windows\Forms\ToolStripTests.cs (1)
7270Assert.Equal(expectedSize, bitmap.Height);
System.Windows.Forms.UI.IntegrationTests (4)
Infra\ScreenRecordService.cs (4)
172WriteFctl(fileStream, buffer, crc, sequenceNumber: 0, size: new Size(firstFrame.image.Width, firstFrame.image.Height), offset: firstFrame.offset, delay: TimeSpan.Zero, ApngDisposeOp.None, ApngBlendOp.Source); 237int height = frames[0].image.Height; 259Assert.True(frames[i].image.Height == height); 369WriteFctl(stream, buffer, crc, sequenceNumber++, size: new Size(frame.Width, frame.Height), offset: offset, delay, ApngDisposeOp.None, ApngBlendOp.Source);