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