32 instantiations of PixelFormat
PresentationCore (30)
System\Windows\Media\Imaging\BitmapSourceSafeMILHandle.cs (1)
116PixelFormat pixelFormat = new PixelFormat(guidFormat);
System\Windows\Media\PixelFormat.cs (1)
677return new PixelFormat(guidPixelFormat);
System\Windows\Media\PixelFormatConverter.cs (2)
63return new PixelFormat (value); 76return new PixelFormat(o as string);
System\Windows\Media\PixelFormats.cs (26)
26return new PixelFormat(PixelFormatEnum.Default); 37return new PixelFormat(PixelFormatEnum.Indexed1); 48return new PixelFormat(PixelFormatEnum.Indexed2); 59return new PixelFormat(PixelFormatEnum.Indexed4); 70return new PixelFormat(PixelFormatEnum.Indexed8); 81return new PixelFormat(PixelFormatEnum.BlackWhite); 92return new PixelFormat(PixelFormatEnum.Gray2); 103return new PixelFormat(PixelFormatEnum.Gray4); 114return new PixelFormat(PixelFormatEnum.Gray8); 125return new PixelFormat(PixelFormatEnum.Bgr555); 136return new PixelFormat(PixelFormatEnum.Bgr565); 147return new PixelFormat(PixelFormatEnum.Rgb128Float); 158return new PixelFormat(PixelFormatEnum.Bgr24); 169return new PixelFormat(PixelFormatEnum.Rgb24); 180return new PixelFormat(PixelFormatEnum.Bgr101010); 191return new PixelFormat(PixelFormatEnum.Bgr32); 202return new PixelFormat(PixelFormatEnum.Bgra32); 213return new PixelFormat(PixelFormatEnum.Pbgra32); 224return new PixelFormat(PixelFormatEnum.Rgb48); 235return new PixelFormat(PixelFormatEnum.Rgba64); 246return new PixelFormat(PixelFormatEnum.Prgba64); 257return new PixelFormat(PixelFormatEnum.Gray16); 268return new PixelFormat(PixelFormatEnum.Gray32Float); 279return new PixelFormat(PixelFormatEnum.Rgba128Float); 290return new PixelFormat(PixelFormatEnum.Prgba128Float); 301return new PixelFormat(PixelFormatEnum.Cmyk32);
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
7473bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.PixelFormat(); };
System\Windows\Markup\KnownTypes.cs (1)
1449case KnownElements.PixelFormat: o = new System.Windows.Media.PixelFormat(); break;
93 references to PixelFormat
PresentationCore (90)
System\Windows\InterOp\Imaging.cs (1)
100Media.PixelFormat format,
System\Windows\Media\ColorContext.cs (1)
167public ColorContext(PixelFormat pixelFormat)
System\Windows\Media\ColorTransform.cs (1)
41internal ColorTransform(SafeMILHandle bitmapSource, ColorContext srcContext, ColorContext dstContext, System.Windows.Media.PixelFormat pixelFormat)
System\Windows\Media\Imaging\BitmapImage.cs (1)
510PixelFormat duceFormat = BitmapSource.GetClosestDUCEFormat(source.Format, source.Palette);
System\Windows\Media\Imaging\BitmapSource.cs (16)
41PixelFormat pixelFormat, 75PixelFormat pixelFormat, 142public virtual System.Windows.Media.PixelFormat Format 610_format = PixelFormat.GetPixelFormat(_wicSource); 803PixelFormat format = Format; 1023internal static PixelFormat GetClosestDUCEFormat(PixelFormat format, BitmapPalette palette) 1086PixelFormat originalFmt = PixelFormats.Pbgra32; 1094originalFmt = PixelFormat.GetPixelFormat(wicSource); 1095PixelFormat destFmt = originalFmt; 1112PixelFormat.GetPixelFormat(wicSource).Format != PixelFormatEnum.Extended 1580internal PixelFormat _format = PixelFormats.Default; 1612internal static bool IsCompatibleFormat(PixelFormat format) 1620private readonly static PixelFormat[] s_supportedDUCEFormats = 1621new PixelFormat[13] 1836PixelFormat pfStruct = bitmapSource.Format;
System\Windows\Media\Imaging\BitmapSourceSafeMILHandle.cs (1)
116PixelFormat pixelFormat = new PixelFormat(guidFormat);
System\Windows\Media\Imaging\CachedBitmap.cs (3)
45PixelFormat pixelFormat, 106PixelFormat pixelFormat, 383PixelFormat pixelFormat,
System\Windows\Media\Imaging\ColorConvertedBitmap.cs (3)
31public ColorConvertedBitmap(BitmapSource source, ColorContext sourceColorContext, ColorContext destinationColorContext, PixelFormat format) 194_destinationFormat = (PixelFormat)e.NewValue; 270private PixelFormat _destinationFormat;
System\Windows\Media\Imaging\FormatConvertedBitmap.cs (4)
32public FormatConvertedBitmap(BitmapSource source, PixelFormat destinationFormat, BitmapPalette destinationPalette, double alphaThreshold) 207_destinationFormat = (PixelFormat)e.NewValue; 267if (((PixelFormat)value).Format == PixelFormatEnum.Default) 321private PixelFormat _destinationFormat;
System\Windows\Media\Imaging\Generated\ColorConvertedBitmap.cs (4)
161public PixelFormat DestinationFormat 165return (PixelFormat) GetValue(DestinationFormatProperty); 337internal static PixelFormat s_DestinationFormat = PixelFormats.Pbgra32; 392typeof(PixelFormat),
System\Windows\Media\Imaging\Generated\FormatConvertedBitmap.cs (4)
131public PixelFormat DestinationFormat 135return (PixelFormat) GetValue(DestinationFormatProperty); 335internal static PixelFormat s_DestinationFormat = PixelFormats.Pbgra32; 375typeof(PixelFormat),
System\Windows\Media\Imaging\InteropBitmapSource.cs (1)
108PixelFormat format,
System\Windows\Media\Imaging\RenderTargetBitmap.cs (1)
30PixelFormat pixelFormat
System\Windows\Media\Imaging\WriteableBitmap.cs (2)
59PixelFormat pixelFormat, 703private long GetEstimatedSize(int pixelWidth, int pixelHeight, PixelFormat pixelFormat)
System\Windows\Media\PixelFormat.cs (15)
146public struct PixelFormat : IEquatable<PixelFormat> 195_guidFormat = PixelFormat.GetGuidFromFormat(format); 331_guidFormat = PixelFormat.GetGuidFromFormat(format); 431public static bool operator == (PixelFormat left, PixelFormat right) 439public static bool operator != (PixelFormat left, PixelFormat right) 447public static bool Equals(PixelFormat left, PixelFormat right) 455public bool Equals(PixelFormat pixelFormat) 466!(obj is PixelFormat)) 471return this == (PixelFormat)obj; 669internal static PixelFormat GetPixelFormat ( 685internal static PixelFormat GetPixelFormat(Guid pixelFormatGuid) 696internal static PixelFormat GetPixelFormat(PixelFormatEnum pixelFormatEnum)
System\Windows\Media\PixelFormatConverter.cs (6)
93if (!(value is PixelFormat)) 100ConstructorInfo ci = typeof(PixelFormat).GetConstructor(new Type[]{typeof(string)}); 101PixelFormat p = (PixelFormat)value; 106PixelFormat p = (PixelFormat)value;
System\Windows\Media\PixelFormats.cs (26)
22public static PixelFormat Default 33public static PixelFormat Indexed1 44public static PixelFormat Indexed2 55public static PixelFormat Indexed4 66public static PixelFormat Indexed8 77public static PixelFormat BlackWhite 88public static PixelFormat Gray2 99public static PixelFormat Gray4 110public static PixelFormat Gray8 121public static PixelFormat Bgr555 132public static PixelFormat Bgr565 143public static PixelFormat Rgb128Float 154public static PixelFormat Bgr24 165public static PixelFormat Rgb24 176public static PixelFormat Bgr101010 187public static PixelFormat Bgr32 198public static PixelFormat Bgra32 209public static PixelFormat Pbgra32 220public static PixelFormat Rgb48 231public static PixelFormat Rgba64 242public static PixelFormat Prgba64 253public static PixelFormat Gray16 264public static PixelFormat Gray32Float 275public static PixelFormat Rgba128Float 286public static PixelFormat Prgba128Float 297public static PixelFormat Cmyk32
PresentationFramework (3)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
546case 452: t = () => typeof(PixelFormat); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
7471typeof(System.Windows.Media.PixelFormat),
System\Windows\Markup\KnownTypes.cs (1)
6006case KnownElements.PixelFormat: t = typeof(System.Windows.Media.PixelFormat); break;