38 references to PixelWidth
PresentationCore (20)
System\Windows\Media\Imaging\BitmapEncoder.cs (1)
602frame.PixelWidth,
System\Windows\Media\Imaging\BitmapImage.cs (7)
396sourceRect.Width == source.PixelWidth && 423finalWidth = source.PixelWidth; 428finalWidth = (source.PixelWidth * finalHeight) / source.PixelHeight; 432finalHeight = (source.PixelHeight * finalWidth) / source.PixelWidth; 435if (finalWidth != source.PixelWidth || finalHeight != source.PixelHeight || 444if (finalWidth != source.PixelWidth || finalHeight != source.PixelHeight) 446int oldWidth = source.PixelWidth;
System\Windows\Media\Imaging\BitmapSource.cs (6)
458return ImageSource.PixelsToDIPs(this.DpiX, this.PixelWidth); 734sourceRect.Width = PixelWidth; 739ArgumentOutOfRangeException.ThrowIfGreaterThan(sourceRect.Width, PixelWidth, "sourceRect.Width"); 1498_pixelWidth = sourceBitmap.PixelWidth; 1750puiWidth = bitmapSource.PixelWidth; 1833rc = new Int32Rect(0, 0, bitmapSource.PixelWidth, bitmapSource.PixelHeight);
System\Windows\Media\Imaging\BitmapVisualManager.cs (1)
86int sizeX = _bitmapTarget.PixelWidth;
System\Windows\Media\Imaging\CroppedBitmap.cs (1)
108rect.Width = source.PixelWidth;
System\Windows\Media\Imaging\TransformedBitmap.cs (1)
195uint width = Math.Max(1, (uint)(scaleX * _source.PixelWidth + 0.5));
System\Windows\Media\Imaging\WriteableBitmap.cs (3)
740if (source.PixelWidth < 0) 766(uint)source.PixelWidth, // safe cast 776GetEstimatedSize(source.PixelWidth, source.PixelHeight, source.Format));
PresentationFramework (9)
MS\Internal\AppModel\IconHelper.cs (3)
112|| bf.PixelWidth == size.Width && bf.PixelHeight == size.Height; 184int w = bitmapSource.PixelWidth; 408MyAbs(frame.PixelWidth, (int)size.Width, true) +
System\Windows\Documents\TextRange.cs (2)
1068image.Width = bitmapSource.PixelWidth; 1072image.Width = (MaxImageHeight / bitmapSource.PixelHeight) * bitmapSource.PixelWidth;
System\Windows\Documents\WpfPayload.cs (3)
641imageSource1.PixelWidth != imageSource2.PixelWidth || 650int stride = ((imageSource1.PixelWidth * imageSource1.Format.BitsPerPixel) + 7) / 8;
System\Windows\Standard\Utilities.cs (1)
122_WeightedAbs(frame.PixelWidth, width, true) +
ReachFramework (7)
AlphaFlattener\BrushProxy.cs (1)
2327int imageWidth = bs.PixelWidth;
AlphaFlattener\Flattener.cs (2)
1403source = BitmapSource.Create(source.PixelWidth, source.PixelHeight, 140496, 96, PixelFormats.Pbgra32, null, buffer, source.PixelWidth * 4);
AlphaFlattener\ImageProxy.cs (2)
65_pixelWidth = image.PixelWidth; 115_pixelWidth = _image.PixelWidth;
AlphaFlattener\Utility.cs (1)
1439int width = bitmapSource.PixelWidth;
Serialization\ImageSourceTypeConverter.cs (1)
394int width = bitmapSource.PixelWidth;
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonWindowSmallIconConverter.cs (2)
72|| bf.PixelWidth == size.Width && bf.PixelHeight == size.Height; 201WeightedAbs(frame.PixelWidth, (int)size.Width, true) +