32 instantiations of PixelFormat
PresentationCore (30)
System\Windows\Media\Imaging\BitmapSourceSafeMILHandle.cs (1)
115PixelFormat pixelFormat = new PixelFormat(guidFormat);
System\Windows\Media\PixelFormat.cs (1)
509return new PixelFormat(guidPixelFormat);
System\Windows\Media\PixelFormatConverter.cs (2)
49return value is not null ? new PixelFormat(value) : null; 61return o is not null ? new PixelFormat(o as string) : null;
System\Windows\Media\PixelFormats.cs (26)
25return new PixelFormat(PixelFormatEnum.Default); 36return new PixelFormat(PixelFormatEnum.Indexed1); 47return new PixelFormat(PixelFormatEnum.Indexed2); 58return new PixelFormat(PixelFormatEnum.Indexed4); 69return new PixelFormat(PixelFormatEnum.Indexed8); 80return new PixelFormat(PixelFormatEnum.BlackWhite); 91return new PixelFormat(PixelFormatEnum.Gray2); 102return new PixelFormat(PixelFormatEnum.Gray4); 113return new PixelFormat(PixelFormatEnum.Gray8); 124return new PixelFormat(PixelFormatEnum.Bgr555); 135return new PixelFormat(PixelFormatEnum.Bgr565); 146return new PixelFormat(PixelFormatEnum.Rgb128Float); 157return new PixelFormat(PixelFormatEnum.Bgr24); 168return new PixelFormat(PixelFormatEnum.Rgb24); 179return new PixelFormat(PixelFormatEnum.Bgr101010); 190return new PixelFormat(PixelFormatEnum.Bgr32); 201return new PixelFormat(PixelFormatEnum.Bgra32); 212return new PixelFormat(PixelFormatEnum.Pbgra32); 223return new PixelFormat(PixelFormatEnum.Rgb48); 234return new PixelFormat(PixelFormatEnum.Rgba64); 245return new PixelFormat(PixelFormatEnum.Prgba64); 256return new PixelFormat(PixelFormatEnum.Gray16); 267return new PixelFormat(PixelFormatEnum.Gray32Float); 278return new PixelFormat(PixelFormatEnum.Rgba128Float); 289return new PixelFormat(PixelFormatEnum.Prgba128Float); 300return new PixelFormat(PixelFormatEnum.Cmyk32);
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8231DefaultConstructor = delegate () { return new System.Windows.Media.PixelFormat(); },
System\Windows\Markup\KnownTypes.cs (1)
1442case KnownElements.PixelFormat: o = new System.Windows.Media.PixelFormat(); break;
96 references to PixelFormat
PresentationCore (93)
System\Windows\InterOp\Imaging.cs (1)
99Media.PixelFormat format,
System\Windows\Media\ColorContext.cs (1)
164public ColorContext(PixelFormat pixelFormat)
System\Windows\Media\ColorTransform.cs (1)
40internal ColorTransform(SafeMILHandle bitmapSource, ColorContext srcContext, ColorContext dstContext, System.Windows.Media.PixelFormat pixelFormat)
System\Windows\Media\Imaging\BitmapImage.cs (1)
509PixelFormat 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); 773PixelFormat format = Format; 992internal static PixelFormat GetClosestDUCEFormat(PixelFormat format, BitmapPalette palette) 1055PixelFormat originalFmt = PixelFormats.Pbgra32; 1063originalFmt = PixelFormat.GetPixelFormat(wicSource); 1064PixelFormat destFmt = originalFmt; 1081PixelFormat.GetPixelFormat(wicSource).Format != PixelFormatEnum.Extended 1549internal PixelFormat _format = PixelFormats.Default; 1581internal static bool IsCompatibleFormat(PixelFormat format) 1589private static readonly PixelFormat[] s_supportedDUCEFormats = 1590new PixelFormat[13] 1805PixelFormat pfStruct = bitmapSource.Format;
System\Windows\Media\Imaging\BitmapSourceSafeMILHandle.cs (1)
115PixelFormat pixelFormat = new PixelFormat(guidFormat);
System\Windows\Media\Imaging\CachedBitmap.cs (3)
45PixelFormat pixelFormat, 106PixelFormat pixelFormat, 336PixelFormat pixelFormat,
System\Windows\Media\Imaging\ColorConvertedBitmap.cs (3)
30public ColorConvertedBitmap(BitmapSource source, ColorContext sourceColorContext, ColorContext destinationColorContext, PixelFormat format) 193_destinationFormat = (PixelFormat)e.NewValue; 269private PixelFormat _destinationFormat;
System\Windows\Media\Imaging\FormatConvertedBitmap.cs (4)
31public FormatConvertedBitmap(BitmapSource source, PixelFormat destinationFormat, BitmapPalette destinationPalette, double alphaThreshold) 203_destinationFormat = (PixelFormat)e.NewValue; 263if (((PixelFormat)value).Format == PixelFormatEnum.Default) 317private PixelFormat _destinationFormat;
System\Windows\Media\Imaging\Generated\ColorConvertedBitmap.cs (4)
163public PixelFormat DestinationFormat 167return (PixelFormat) GetValue(DestinationFormatProperty); 339internal static PixelFormat s_DestinationFormat = PixelFormats.Pbgra32; 394typeof(PixelFormat),
System\Windows\Media\Imaging\Generated\FormatConvertedBitmap.cs (4)
133public PixelFormat DestinationFormat 137return (PixelFormat) GetValue(DestinationFormatProperty); 337internal static PixelFormat s_DestinationFormat = PixelFormats.Pbgra32; 376typeof(PixelFormat),
System\Windows\Media\Imaging\InteropBitmapSource.cs (1)
103PixelFormat format,
System\Windows\Media\Imaging\RenderTargetBitmap.cs (1)
29PixelFormat pixelFormat
System\Windows\Media\Imaging\WriteableBitmap.cs (2)
58PixelFormat pixelFormat, 685private long GetEstimatedSize(int pixelWidth, int pixelHeight, PixelFormat pixelFormat)
System\Windows\Media\PixelFormat.cs (12)
144public struct PixelFormat : IEquatable<PixelFormat> 273public static bool operator ==(PixelFormat left, PixelFormat right) 281public static bool operator !=(PixelFormat left, PixelFormat right) 289public static bool Equals(PixelFormat left, PixelFormat right) 297public readonly bool Equals(PixelFormat pixelFormat) 307return obj is PixelFormat pixelFormat && Equals(pixelFormat); 503internal static PixelFormat GetPixelFormat(SafeMILHandle /* IWICBitmapSource */ bitmapSource) 517internal static PixelFormat GetPixelFormat(Guid pixelFormatGuid) 530internal static PixelFormat GetPixelFormat(PixelFormatEnum pixelFormatEnum) => pixelFormatEnum switch
System\Windows\Media\PixelFormatConverter.cs (12)
13/// Provides a type converter to convert from <see cref="PixelFormat"/> to <see cref="string"/> and vice versa. 18/// Returns whether this class can convert specific <see cref="Type"/> into <see cref="PixelFormat"/>. 42/// Converts <paramref name="o"/> of <see cref="string"/> type to its <see cref="PixelFormat"/> represensation. 45/// <returns>A new instance of <see cref="PixelFormat"/> or <see langword="null"/> if the provided <paramref name="value"/> was <see langword="null"/>.</returns> 53/// Converts <paramref name="o"/> of <see cref="string"/> type to its <see cref="PixelFormat"/> represensation. 58/// <returns>A new instance of <see cref="PixelFormat"/> or <see langword="null"/> if the provided <paramref name="value"/> was <see langword="null"/>.</returns> 65/// Converts a <paramref name="value"/> of <see cref="PixelFormat"/> to the specified <paramref name="destinationType"/>. 69/// <param name="value"><see cref="PixelFormat"/> value to convert from.</param> 71/// <returns>A <see cref="string"/> or <see cref="InstanceDescriptor"/> representing the <see cref="PixelFormat"/> specified by <paramref name="value"/>.</returns> 77if (value is not PixelFormat pixelFormat) 78throw new ArgumentException(SR.Format(SR.General_Expected_Type, nameof(PixelFormat))); 82ConstructorInfo ci = typeof(PixelFormat).GetConstructor(new Type[] { typeof(string) });
System\Windows\Media\PixelFormats.cs (26)
21public static PixelFormat Default 32public static PixelFormat Indexed1 43public static PixelFormat Indexed2 54public static PixelFormat Indexed4 65public static PixelFormat Indexed8 76public static PixelFormat BlackWhite 87public static PixelFormat Gray2 98public static PixelFormat Gray4 109public static PixelFormat Gray8 120public static PixelFormat Bgr555 131public static PixelFormat Bgr565 142public static PixelFormat Rgb128Float 153public static PixelFormat Bgr24 164public static PixelFormat Rgb24 175public static PixelFormat Bgr101010 186public static PixelFormat Bgr32 197public static PixelFormat Bgra32 208public static PixelFormat Pbgra32 219public static PixelFormat Rgb48 230public static PixelFormat Rgba64 241public static PixelFormat Prgba64 252public static PixelFormat Gray16 263public static PixelFormat Gray32Float 274public static PixelFormat Rgba128Float 285public static PixelFormat Prgba128Float 296public static PixelFormat Cmyk32
PresentationFramework (3)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
545case 452: t = () => typeof(PixelFormat); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8228typeof(System.Windows.Media.PixelFormat),
System\Windows\Markup\KnownTypes.cs (1)
5999case KnownElements.PixelFormat: t = typeof(System.Windows.Media.PixelFormat); break;