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