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