31 references to PixelWidth
PresentationCore (21)
Core\CSharp\System\Windows\Media\Imaging\BitmapEncoder.cs (1)
661frame.PixelWidth,
Core\CSharp\System\Windows\Media\Imaging\BitmapImage.cs (7)
408sourceRect.Width == source.PixelWidth && 435finalWidth = source.PixelWidth; 440finalWidth = (source.PixelWidth * finalHeight) / source.PixelHeight; 444finalHeight = (source.PixelHeight * finalWidth) / source.PixelWidth; 447if (finalWidth != source.PixelWidth || finalHeight != source.PixelHeight || 456if (finalWidth != source.PixelWidth || finalHeight != source.PixelHeight) 458int oldWidth = source.PixelWidth;
Core\CSharp\System\Windows\Media\Imaging\BitmapSource.cs (7)
501return ImageSource.PixelsToDIPs(this.DpiX, this.PixelWidth); 801sourceRect.Width = PixelWidth; 806if (sourceRect.Width > PixelWidth) 807throw new ArgumentOutOfRangeException("sourceRect.Width", SR.Get(SRID.ParameterCannotBeGreaterThan, PixelWidth)); 1605_pixelWidth = sourceBitmap.PixelWidth; 1868puiWidth = bitmapSource.PixelWidth; 1959rc = new Int32Rect(0, 0, bitmapSource.PixelWidth, bitmapSource.PixelHeight);
Core\CSharp\System\Windows\Media\Imaging\BitmapVisualManager.cs (1)
99int sizeX = _bitmapTarget.PixelWidth;
Core\CSharp\System\Windows\Media\Imaging\CroppedBitmap.cs (1)
123rect.Width = source.PixelWidth;
Core\CSharp\System\Windows\Media\Imaging\TransformedBitmap.cs (1)
210uint width = Math.Max(1, (uint)(scaleX * _source.PixelWidth + 0.5));
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (3)
842if (source.PixelWidth < 0) 868(uint)source.PixelWidth, // safe cast 878GetEstimatedSize(source.PixelWidth, source.PixelHeight, source.Format));
PresentationFramework (9)
src\Framework\MS\Internal\AppModel\IconHelper.cs (3)
137|| bf.PixelWidth == size.Width && bf.PixelHeight == size.Height; 215int w = bitmapSource.PixelWidth; 443MyAbs(frame.PixelWidth, (int)size.Width, true) +
src\Framework\System\Windows\Documents\TextRange.cs (2)
1065image.Width = bitmapSource.PixelWidth; 1069image.Width = (MaxImageHeight / bitmapSource.PixelHeight) * bitmapSource.PixelWidth;
src\Framework\System\Windows\Documents\WpfPayload.cs (3)
677imageSource1.PixelWidth != imageSource2.PixelWidth || 686int stride = ((imageSource1.PixelWidth * imageSource1.Format.BitsPerPixel) + 7) / 8;
src\Framework\System\Windows\Standard\Utilities.cs (1)
125_WeightedAbs(frame.PixelWidth, width, true) +
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesignerIcons.cs (1)
201int width = image.PixelWidth;