43 references to PixelHeight
PresentationCore (21)
System\Windows\Media\Imaging\BitmapEncoder.cs (1)
584frame.PixelHeight
System\Windows\Media\Imaging\BitmapImage.cs (7)
378sourceRect.Height == source.PixelHeight) 405finalHeight = source.PixelHeight; 409finalWidth = (source.PixelWidth * finalHeight) / source.PixelHeight; 413finalHeight = (source.PixelHeight * finalWidth) / source.PixelWidth; 416if (finalWidth != source.PixelWidth || finalHeight != source.PixelHeight || 425if (finalWidth != source.PixelWidth || finalHeight != source.PixelHeight) 428int oldHeight = source.PixelHeight;
System\Windows\Media\Imaging\BitmapSource.cs (6)
451return ImageSource.PixelsToDIPs(this.DpiY, this.PixelHeight); 692sourceRect.Height = PixelHeight; 695ArgumentOutOfRangeException.ThrowIfGreaterThan(sourceRect.Height, PixelHeight, "sourceRect.Height"); 1453_pixelHeight = sourceBitmap.PixelHeight; 1705puiHeight = bitmapSource.PixelHeight; 1787rc = new Int32Rect(0, 0, bitmapSource.PixelWidth, bitmapSource.PixelHeight);
System\Windows\Media\Imaging\BitmapVisualManager.cs (1)
73int sizeY = _bitmapTarget.PixelHeight;
System\Windows\Media\Imaging\CroppedBitmap.cs (1)
89rect.Height = source.PixelHeight;
System\Windows\Media\Imaging\TransformedBitmap.cs (1)
176uint height = Math.Max(1, (uint)(scaleY * _source.PixelHeight + 0.5));
System\Windows\Media\Imaging\WriteableBitmap.cs (4)
711if (source.PixelHeight < 0) 732(uint)source.PixelHeight, // safe cast 741GetEstimatedSize(source.PixelWidth, source.PixelHeight, source.Format)); 748uint bufferSize = checked((uint)_backBufferStride * (uint)source.PixelHeight);
PresentationCore.Tests (3)
System\Windows\Media\Imaging\BitmapImage.Tests.cs (2)
55Assert.Equal(1, image.PixelHeight); 111Assert.Equal(1, image.PixelHeight);
System\Windows\Media\Imaging\WriteableBitmap.Tests.cs (1)
30Assert.Equal(height, writeableBitmap.PixelHeight);
PresentationFramework (11)
MS\Internal\AppModel\IconHelper.cs (3)
103|| bf.PixelWidth == size.Width && bf.PixelHeight == size.Height; 176int h = bitmapSource.PixelHeight; 404MyAbs(frame.PixelHeight, (int)size.Height, true);
System\Windows\Documents\TextRange.cs (4)
1040if (bitmapSource.PixelHeight < MaxImageHeight) 1042image.Height = bitmapSource.PixelHeight; 1054if (bitmapSource.PixelHeight < MaxImageHeight) 1060image.Width = (MaxImageHeight / bitmapSource.PixelHeight) * bitmapSource.PixelWidth;
System\Windows\Documents\WpfPayload.cs (3)
637imageSource1.PixelHeight != imageSource2.PixelHeight || 646int bufferSize = (stride * (imageSource1.PixelHeight - 1)) + stride;
System\Windows\Standard\Utilities.cs (1)
113_WeightedAbs(frame.PixelHeight, height, true);
ReachFramework (6)
AlphaFlattener\BrushProxy.cs (1)
2322int imageHeight = bs.PixelHeight;
AlphaFlattener\Flattener.cs (1)
1400source = BitmapSource.Create(source.PixelWidth, source.PixelHeight,
AlphaFlattener\ImageProxy.cs (2)
58_pixelHeight = image.PixelHeight; 108_pixelHeight = _image.PixelHeight;
AlphaFlattener\Utility.cs (1)
1428int height = bitmapSource.PixelHeight;
Serialization\ImageSourceTypeConverter.cs (1)
386int height = bitmapSource.PixelHeight;
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonWindowSmallIconConverter.cs (2)
69|| bf.PixelWidth == size.Width && bf.PixelHeight == size.Height; 199WeightedAbs(frame.PixelHeight, (int)size.Height, true);