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