26 references to Format
PresentationCore (16)
Core\CSharp\System\Windows\Media\Imaging\BitmapEncoder.cs (1)
715
ColorContext colorContext = new ColorContext(frame.
Format
);
Core\CSharp\System\Windows\Media\Imaging\BitmapImage.cs (3)
534
source.
Format
.Format != PixelFormatEnum.Extended
540
PixelFormat duceFormat = BitmapSource.GetClosestDUCEFormat(source.
Format
, source.Palette);
541
bool changeFormat = (source.
Format
!= duceFormat);
Core\CSharp\System\Windows\Media\Imaging\BitmapSource.cs (8)
812
int minStride = checked(((sourceRect.Width *
Format
.BitsPerPixel) + 7) / 8);
905
PixelFormat format =
Format
;
951
Guid destFmt = GetClosestDUCEFormat(
Format
, Palette).Guid;
1297
Debug.Assert(destFmt == colorConvertedBitmap.
Format
);
1604
_format = sourceBitmap.
Format
;
1736
return IsCompatibleFormat(
Format
);
1885
guidFormat = bitmapSource.
Format
.Guid;
1977
PixelFormat pfStruct = bitmapSource.
Format
;
Core\CSharp\System\Windows\Media\Imaging\FormatConvertedBitmap.cs (1)
305
return bitmap.Source.
Format
;
Core\CSharp\System\Windows\Media\Imaging\WriteableBitmap.cs (3)
859
Guid formatGuid = source.
Format
.Guid;
862
if (source.
Format
.Palettized)
878
GetEstimatedSize(source.PixelWidth, source.PixelHeight, source.
Format
));
PresentationFramework (10)
src\Framework\MS\Internal\AppModel\IconHelper.cs (5)
209
if (bitmapSource.
Format
!= PixelFormats.Bgra32 && bitmapSource.
Format
!= PixelFormats.Pbgra32)
217
int bpp = bitmapSource.
Format
.BitsPerPixel;
498
int currentIconBitDepth = isBitmapIconDecoder ? frames[i].Thumbnail.
Format
.BitsPerPixel : frames[i].
Format
.BitsPerPixel;
src\Framework\System\Windows\Documents\WpfPayload.cs (3)
676
if (imageSource1.
Format
.BitsPerPixel != imageSource2.
Format
.BitsPerPixel ||
686
int stride = ((imageSource1.PixelWidth * imageSource1.
Format
.BitsPerPixel) + 7) / 8;
src\Framework\System\Windows\Standard\Utilities.cs (2)
156
int currentIconBitDepth = isBitmapIconDecoder ? frames[i].Thumbnail.
Format
.BitsPerPixel : frames[i].
Format
.BitsPerPixel;