38 references to PixelWidth
PresentationCore (20)
System\Windows\Media\Imaging\BitmapEncoder.cs (1)
584frame.PixelWidth,
System\Windows\Media\Imaging\BitmapImage.cs (7)
378sourceRect.Width == source.PixelWidth && 405finalWidth = source.PixelWidth; 410finalWidth = (source.PixelWidth * finalHeight) / source.PixelHeight; 414finalHeight = (source.PixelHeight * finalWidth) / source.PixelWidth; 417if (finalWidth != source.PixelWidth || finalHeight != source.PixelHeight || 426if (finalWidth != source.PixelWidth || finalHeight != source.PixelHeight) 428int oldWidth = source.PixelWidth;
System\Windows\Media\Imaging\BitmapSource.cs (6)
443return ImageSource.PixelsToDIPs(this.DpiX, this.PixelWidth); 719sourceRect.Width = PixelWidth; 724ArgumentOutOfRangeException.ThrowIfGreaterThan(sourceRect.Width, PixelWidth, "sourceRect.Width"); 1483_pixelWidth = sourceBitmap.PixelWidth; 1735puiWidth = bitmapSource.PixelWidth; 1818rc = new Int32Rect(0, 0, bitmapSource.PixelWidth, bitmapSource.PixelHeight);
System\Windows\Media\Imaging\BitmapVisualManager.cs (1)
73int sizeX = _bitmapTarget.PixelWidth;
System\Windows\Media\Imaging\CroppedBitmap.cs (1)
89rect.Width = source.PixelWidth;
System\Windows\Media\Imaging\TransformedBitmap.cs (1)
176uint width = Math.Max(1, (uint)(scaleX * _source.PixelWidth + 0.5));
System\Windows\Media\Imaging\WriteableBitmap.cs (3)
723if (source.PixelWidth < 0) 749(uint)source.PixelWidth, // safe cast 759GetEstimatedSize(source.PixelWidth, source.PixelHeight, source.Format));
PresentationFramework (9)
MS\Internal\AppModel\IconHelper.cs (3)
104|| bf.PixelWidth == size.Width && bf.PixelHeight == size.Height; 176int w = bitmapSource.PixelWidth; 404MyAbs(frame.PixelWidth, (int)size.Width, true) +
System\Windows\Documents\TextRange.cs (2)
1057image.Width = bitmapSource.PixelWidth; 1061image.Width = (MaxImageHeight / bitmapSource.PixelHeight) * bitmapSource.PixelWidth;
System\Windows\Documents\WpfPayload.cs (3)
637imageSource1.PixelWidth != imageSource2.PixelWidth || 646int stride = ((imageSource1.PixelWidth * imageSource1.Format.BitsPerPixel) + 7) / 8;
System\Windows\Standard\Utilities.cs (1)
113_WeightedAbs(frame.PixelWidth, width, true) +
ReachFramework (7)
AlphaFlattener\BrushProxy.cs (1)
2325int imageWidth = bs.PixelWidth;
AlphaFlattener\Flattener.cs (2)
1407source = BitmapSource.Create(source.PixelWidth, source.PixelHeight, 140896, 96, PixelFormats.Pbgra32, null, buffer, source.PixelWidth * 4);
AlphaFlattener\ImageProxy.cs (2)
58_pixelWidth = image.PixelWidth; 108_pixelWidth = _image.PixelWidth;
AlphaFlattener\Utility.cs (1)
1428int width = bitmapSource.PixelWidth;
Serialization\ImageSourceTypeConverter.cs (1)
386int width = bitmapSource.PixelWidth;
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonWindowSmallIconConverter.cs (2)
70|| bf.PixelWidth == size.Width && bf.PixelHeight == size.Height; 199WeightedAbs(frame.PixelWidth, (int)size.Width, true) +