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