32 references to Format
PresentationCore (16)
System\Windows\Media\Imaging\BitmapEncoder.cs (1)
656
ColorContext colorContext = new ColorContext(frame.
Format
);
System\Windows\Media\Imaging\BitmapImage.cs (3)
522
source.
Format
.Format != PixelFormatEnum.Extended
528
PixelFormat duceFormat = BitmapSource.GetClosestDUCEFormat(source.
Format
, source.Palette);
529
bool changeFormat = (source.
Format
!= duceFormat);
System\Windows\Media\Imaging\BitmapSource.cs (8)
742
int minStride = checked(((sourceRect.Width *
Format
.BitsPerPixel) + 7) / 8);
818
PixelFormat format =
Format
;
864
Guid destFmt = GetClosestDUCEFormat(
Format
, Palette).Guid;
1196
Debug.Assert(destFmt == colorConvertedBitmap.
Format
);
1497
_format = sourceBitmap.
Format
;
1621
return IsCompatibleFormat(
Format
);
1767
guidFormat = bitmapSource.
Format
.Guid;
1851
PixelFormat pfStruct = bitmapSource.
Format
;
System\Windows\Media\Imaging\FormatConvertedBitmap.cs (1)
290
return bitmap.Source.
Format
;
System\Windows\Media\Imaging\WriteableBitmap.cs (3)
757
Guid formatGuid = source.
Format
.Guid;
760
if (source.
Format
.Palettized)
776
GetEstimatedSize(source.PixelWidth, source.PixelHeight, source.
Format
));
PresentationFramework (10)
MS\Internal\AppModel\IconHelper.cs (5)
178
if (bitmapSource.
Format
!= PixelFormats.Bgra32 && bitmapSource.
Format
!= PixelFormats.Pbgra32)
186
int bpp = bitmapSource.
Format
.BitsPerPixel;
463
int currentIconBitDepth = isBitmapIconDecoder ? frames[i].Thumbnail.
Format
.BitsPerPixel : frames[i].
Format
.BitsPerPixel;
System\Windows\Documents\WpfPayload.cs (3)
640
if (imageSource1.
Format
.BitsPerPixel != imageSource2.
Format
.BitsPerPixel ||
650
int stride = ((imageSource1.PixelWidth * imageSource1.
Format
.BitsPerPixel) + 7) / 8;
System\Windows\Standard\Utilities.cs (2)
153
int currentIconBitDepth = isBitmapIconDecoder ? frames[i].Thumbnail.
Format
.BitsPerPixel : frames[i].
Format
.BitsPerPixel;
ReachFramework (4)
AlphaFlattener\ImageProxy.cs (2)
327
if (bitmap.
Format
.HasAlpha)
332
if (bitmap.
Format
.Palettized)
AlphaFlattener\Utility.cs (1)
1437
if ((bitmapSource != null) && (bitmapSource.
Format
== PixelFormats.Pbgra32))
Serialization\ImageSourceTypeConverter.cs (1)
396
int stride = (width * bitmapSource.
Format
.BitsPerPixel + 7) / 8;
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonWindowSmallIconConverter.cs (2)
114
int currentIconBitDepth = isBitmapIconDecoder ? frames[i].Thumbnail.
Format
.BitsPerPixel : frames[i].
Format
.BitsPerPixel;