32 instantiations of PixelFormat
PresentationCore (30)
System\Windows\Media\Imaging\BitmapSourceSafeMILHandle.cs (1)
116PixelFormat pixelFormat = new PixelFormat(guidFormat);
System\Windows\Media\PixelFormat.cs (1)
510return new PixelFormat(guidPixelFormat);
System\Windows\Media\PixelFormatConverter.cs (2)
50return value is not null ? new PixelFormat(value) : null; 62return o is not null ? new PixelFormat(o as string) : null;
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)
8232DefaultConstructor = delegate () { return new System.Windows.Media.PixelFormat(); },
System\Windows\Markup\KnownTypes.cs (1)
1443case KnownElements.PixelFormat: o = new System.Windows.Media.PixelFormat(); break;
96 references to PixelFormat
PresentationCore (93)
System\Windows\InterOp\Imaging.cs (1)
100Media.PixelFormat format,
System\Windows\Media\ColorContext.cs (1)
165public 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; 1022internal static PixelFormat GetClosestDUCEFormat(PixelFormat format, BitmapPalette palette) 1085PixelFormat originalFmt = PixelFormats.Pbgra32; 1093originalFmt = PixelFormat.GetPixelFormat(wicSource); 1094PixelFormat destFmt = originalFmt; 1111PixelFormat.GetPixelFormat(wicSource).Format != PixelFormatEnum.Extended 1579internal PixelFormat _format = PixelFormats.Default; 1611internal static bool IsCompatibleFormat(PixelFormat format) 1619private readonly static PixelFormat[] s_supportedDUCEFormats = 1620new PixelFormat[13] 1835PixelFormat 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, 336PixelFormat 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) 204_destinationFormat = (PixelFormat)e.NewValue; 264if (((PixelFormat)value).Format == PixelFormatEnum.Default) 318private PixelFormat _destinationFormat;
System\Windows\Media\Imaging\Generated\ColorConvertedBitmap.cs (4)
166public PixelFormat DestinationFormat 170return (PixelFormat) GetValue(DestinationFormatProperty); 342internal static PixelFormat s_DestinationFormat = PixelFormats.Pbgra32; 397typeof(PixelFormat),
System\Windows\Media\Imaging\Generated\FormatConvertedBitmap.cs (4)
136public PixelFormat DestinationFormat 140return (PixelFormat) GetValue(DestinationFormatProperty); 340internal static PixelFormat s_DestinationFormat = PixelFormats.Pbgra32; 379typeof(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, 692private long GetEstimatedSize(int pixelWidth, int pixelHeight, PixelFormat pixelFormat)
System\Windows\Media\PixelFormat.cs (12)
145public struct PixelFormat : IEquatable<PixelFormat> 274public static bool operator ==(PixelFormat left, PixelFormat right) 282public static bool operator !=(PixelFormat left, PixelFormat right) 290public static bool Equals(PixelFormat left, PixelFormat right) 298public readonly bool Equals(PixelFormat pixelFormat) 308return obj is PixelFormat pixelFormat && Equals(pixelFormat); 504internal static PixelFormat GetPixelFormat(SafeMILHandle /* IWICBitmapSource */ bitmapSource) 518internal static PixelFormat GetPixelFormat(Guid pixelFormatGuid) 531internal static PixelFormat GetPixelFormat(PixelFormatEnum pixelFormatEnum) => pixelFormatEnum switch
System\Windows\Media\PixelFormatConverter.cs (12)
14/// Provides a type converter to convert from <see cref="PixelFormat"/> to <see cref="string"/> and vice versa. 19/// Returns whether this class can convert specific <see cref="Type"/> into <see cref="PixelFormat"/>. 43/// Converts <paramref name="o"/> of <see cref="string"/> type to its <see cref="PixelFormat"/> represensation. 46/// <returns>A new instance of <see cref="PixelFormat"/> or <see langword="null"/> if the provided <paramref name="value"/> was <see langword="null"/>.</returns> 54/// Converts <paramref name="o"/> of <see cref="string"/> type to its <see cref="PixelFormat"/> represensation. 59/// <returns>A new instance of <see cref="PixelFormat"/> or <see langword="null"/> if the provided <paramref name="value"/> was <see langword="null"/>.</returns> 66/// Converts a <paramref name="value"/> of <see cref="PixelFormat"/> to the specified <paramref name="destinationType"/>. 70/// <param name="value"><see cref="PixelFormat"/> value to convert from.</param> 72/// <returns>A <see cref="string"/> or <see cref="InstanceDescriptor"/> representing the <see cref="PixelFormat"/> specified by <paramref name="value"/>.</returns> 78if (value is not PixelFormat pixelFormat) 79throw new ArgumentException(SR.Format(SR.General_Expected_Type, nameof(PixelFormat))); 83ConstructorInfo ci = typeof(PixelFormat).GetConstructor(new Type[] { typeof(string) });
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)
8229typeof(System.Windows.Media.PixelFormat),
System\Windows\Markup\KnownTypes.cs (1)
6000case KnownElements.PixelFormat: t = typeof(System.Windows.Media.PixelFormat); break;