32 references to Format
PresentationCore (16)
System\Windows\Media\Imaging\BitmapEncoder.cs (1)
638
ColorContext colorContext = new ColorContext(frame.
Format
);
System\Windows\Media\Imaging\BitmapImage.cs (3)
504
source.
Format
.Format != PixelFormatEnum.Extended
510
PixelFormat duceFormat = BitmapSource.GetClosestDUCEFormat(source.
Format
, source.Palette);
511
bool changeFormat = (source.
Format
!= duceFormat);
System\Windows\Media\Imaging\BitmapSource.cs (8)
727
int minStride = checked(((sourceRect.Width *
Format
.BitsPerPixel) + 7) / 8);
803
PixelFormat format =
Format
;
849
Guid destFmt = GetClosestDUCEFormat(
Format
, Palette).Guid;
1181
Debug.Assert(destFmt == colorConvertedBitmap.
Format
);
1482
_format = sourceBitmap.
Format
;
1606
return IsCompatibleFormat(
Format
);
1752
guidFormat = bitmapSource.
Format
.Guid;
1836
PixelFormat pfStruct = bitmapSource.
Format
;
System\Windows\Media\Imaging\FormatConvertedBitmap.cs (1)
271
return bitmap.Source.
Format
;
System\Windows\Media\Imaging\WriteableBitmap.cs (3)
740
Guid formatGuid = source.
Format
.Guid;
743
if (source.
Format
.Palettized)
759
GetEstimatedSize(source.PixelWidth, source.PixelHeight, source.
Format
));
PresentationFramework (10)
MS\Internal\AppModel\IconHelper.cs (5)
170
if (bitmapSource.
Format
!= PixelFormats.Bgra32 && bitmapSource.
Format
!= PixelFormats.Pbgra32)
178
int bpp = bitmapSource.
Format
.BitsPerPixel;
459
int currentIconBitDepth = isBitmapIconDecoder ? frames[i].Thumbnail.
Format
.BitsPerPixel : frames[i].
Format
.BitsPerPixel;
System\Windows\Documents\WpfPayload.cs (3)
636
if (imageSource1.
Format
.BitsPerPixel != imageSource2.
Format
.BitsPerPixel ||
646
int stride = ((imageSource1.PixelWidth * imageSource1.
Format
.BitsPerPixel) + 7) / 8;
System\Windows\Standard\Utilities.cs (2)
144
int currentIconBitDepth = isBitmapIconDecoder ? frames[i].Thumbnail.
Format
.BitsPerPixel : frames[i].
Format
.BitsPerPixel;
ReachFramework (4)
AlphaFlattener\ImageProxy.cs (2)
320
if (bitmap.
Format
.HasAlpha)
325
if (bitmap.
Format
.Palettized)
AlphaFlattener\Utility.cs (1)
1426
if ((bitmapSource != null) && (bitmapSource.
Format
== PixelFormats.Pbgra32))
Serialization\ImageSourceTypeConverter.cs (1)
388
int stride = (width * bitmapSource.
Format
.BitsPerPixel + 7) / 8;
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonWindowSmallIconConverter.cs (2)
112
int currentIconBitDepth = isBitmapIconDecoder ? frames[i].Thumbnail.
Format
.BitsPerPixel : frames[i].
Format
.BitsPerPixel;