33 references to Format
PresentationCore (16)
System\Windows\Media\Imaging\BitmapEncoder.cs (1)
637
ColorContext colorContext = new ColorContext(frame.
Format
);
System\Windows\Media\Imaging\BitmapImage.cs (3)
503
source.
Format
.Format != PixelFormatEnum.Extended
509
PixelFormat duceFormat = BitmapSource.GetClosestDUCEFormat(source.
Format
, source.Palette);
510
bool changeFormat = (source.
Format
!= duceFormat);
System\Windows\Media\Imaging\BitmapSource.cs (8)
697
int minStride = checked(((sourceRect.Width *
Format
.BitsPerPixel) + 7) / 8);
773
PixelFormat format =
Format
;
819
Guid destFmt = GetClosestDUCEFormat(
Format
, Palette).Guid;
1150
Debug.Assert(destFmt == colorConvertedBitmap.
Format
);
1451
_format = sourceBitmap.
Format
;
1575
return IsCompatibleFormat(
Format
);
1721
guidFormat = bitmapSource.
Format
.Guid;
1805
PixelFormat pfStruct = bitmapSource.
Format
;
System\Windows\Media\Imaging\FormatConvertedBitmap.cs (1)
267
return bitmap.Source.
Format
;
System\Windows\Media\Imaging\WriteableBitmap.cs (3)
722
Guid formatGuid = source.
Format
.Guid;
725
if (source.
Format
.Palettized)
741
GetEstimatedSize(source.PixelWidth, source.PixelHeight, source.
Format
));
PresentationCore.Tests (1)
System\Windows\Media\Imaging\WriteableBitmap.Tests.cs (1)
35
Assert.Equal(PixelFormats.Pbgra32, writeableBitmap.
Format
);
PresentationFramework (10)
MS\Internal\AppModel\IconHelper.cs (5)
169
if (bitmapSource.
Format
!= PixelFormats.Bgra32 && bitmapSource.
Format
!= PixelFormats.Pbgra32)
177
int bpp = bitmapSource.
Format
.BitsPerPixel;
458
int currentIconBitDepth = isBitmapIconDecoder ? frames[i].Thumbnail.
Format
.BitsPerPixel : frames[i].
Format
.BitsPerPixel;
System\Windows\Documents\WpfPayload.cs (3)
635
if (imageSource1.
Format
.BitsPerPixel != imageSource2.
Format
.BitsPerPixel ||
645
int stride = ((imageSource1.PixelWidth * imageSource1.
Format
.BitsPerPixel) + 7) / 8;
System\Windows\Standard\Utilities.cs (2)
143
int currentIconBitDepth = isBitmapIconDecoder ? frames[i].Thumbnail.
Format
.BitsPerPixel : frames[i].
Format
.BitsPerPixel;
ReachFramework (4)
AlphaFlattener\ImageProxy.cs (2)
319
if (bitmap.
Format
.HasAlpha)
324
if (bitmap.
Format
.Palettized)
AlphaFlattener\Utility.cs (1)
1425
if ((bitmapSource != null) && (bitmapSource.
Format
== PixelFormats.Pbgra32))
Serialization\ImageSourceTypeConverter.cs (1)
387
int stride = (width * bitmapSource.
Format
.BitsPerPixel + 7) / 8;
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonWindowSmallIconConverter.cs (2)
111
int currentIconBitDepth = isBitmapIconDecoder ? frames[i].Thumbnail.
Format
.BitsPerPixel : frames[i].
Format
.BitsPerPixel;