41 references to PixelWidth
PresentationCore (20)
System\Windows\Media\Imaging\BitmapEncoder.cs (1)
583frame.PixelWidth,
System\Windows\Media\Imaging\BitmapImage.cs (7)
377sourceRect.Width == source.PixelWidth && 404finalWidth = source.PixelWidth; 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) 427int oldWidth = source.PixelWidth;
System\Windows\Media\Imaging\BitmapSource.cs (6)
443return ImageSource.PixelsToDIPs(this.DpiX, this.PixelWidth); 689sourceRect.Width = PixelWidth; 694ArgumentOutOfRangeException.ThrowIfGreaterThan(sourceRect.Width, PixelWidth, "sourceRect.Width"); 1452_pixelWidth = sourceBitmap.PixelWidth; 1704puiWidth = bitmapSource.PixelWidth; 1787rc = new Int32Rect(0, 0, bitmapSource.PixelWidth, bitmapSource.PixelHeight);
System\Windows\Media\Imaging\BitmapVisualManager.cs (1)
72int sizeX = _bitmapTarget.PixelWidth;
System\Windows\Media\Imaging\CroppedBitmap.cs (1)
88rect.Width = source.PixelWidth;
System\Windows\Media\Imaging\TransformedBitmap.cs (1)
175uint width = Math.Max(1, (uint)(scaleX * _source.PixelWidth + 0.5));
System\Windows\Media\Imaging\WriteableBitmap.cs (3)
705if (source.PixelWidth < 0) 731(uint)source.PixelWidth, // safe cast 741GetEstimatedSize(source.PixelWidth, source.PixelHeight, source.Format));
PresentationCore.Tests (3)
System\Windows\Media\Imaging\BitmapImage.Tests.cs (2)
54Assert.Equal(1, image.PixelWidth); 110Assert.Equal(1, image.PixelWidth);
System\Windows\Media\Imaging\WriteableBitmap.Tests.cs (1)
29Assert.Equal(width, writeableBitmap.PixelWidth);
PresentationFramework (9)
MS\Internal\AppModel\IconHelper.cs (3)
103|| bf.PixelWidth == size.Width && bf.PixelHeight == size.Height; 175int w = bitmapSource.PixelWidth; 403MyAbs(frame.PixelWidth, (int)size.Width, true) +
System\Windows\Documents\TextRange.cs (2)
1056image.Width = bitmapSource.PixelWidth; 1060image.Width = (MaxImageHeight / bitmapSource.PixelHeight) * bitmapSource.PixelWidth;
System\Windows\Documents\WpfPayload.cs (3)
636imageSource1.PixelWidth != imageSource2.PixelWidth || 645int stride = ((imageSource1.PixelWidth * imageSource1.Format.BitsPerPixel) + 7) / 8;
System\Windows\Standard\Utilities.cs (1)
112_WeightedAbs(frame.PixelWidth, width, true) +
ReachFramework (7)
AlphaFlattener\BrushProxy.cs (1)
2321int imageWidth = bs.PixelWidth;
AlphaFlattener\Flattener.cs (2)
1397source = BitmapSource.Create(source.PixelWidth, source.PixelHeight, 139896, 96, PixelFormats.Pbgra32, null, buffer, source.PixelWidth * 4);
AlphaFlattener\ImageProxy.cs (2)
57_pixelWidth = image.PixelWidth; 107_pixelWidth = _image.PixelWidth;
AlphaFlattener\Utility.cs (1)
1427int width = bitmapSource.PixelWidth;
Serialization\ImageSourceTypeConverter.cs (1)
385int width = bitmapSource.PixelWidth;
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonWindowSmallIconConverter.cs (2)
69|| bf.PixelWidth == size.Width && bf.PixelHeight == size.Height; 198WeightedAbs(frame.PixelWidth, (int)size.Width, true) +