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