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