32 instantiations of PixelFormat
PresentationCore (30)
System\Windows\Media\Imaging\BitmapSourceSafeMILHandle.cs (1)
116
PixelFormat pixelFormat = new
PixelFormat
(guidFormat);
System\Windows\Media\PixelFormat.cs (1)
510
return new
PixelFormat
(guidPixelFormat);
System\Windows\Media\PixelFormatConverter.cs (2)
50
return value is not null ? new
PixelFormat
(value) : null;
62
return o is not null ? new
PixelFormat
(o as string) : null;
System\Windows\Media\PixelFormats.cs (26)
26
return new
PixelFormat
(PixelFormatEnum.Default);
37
return new
PixelFormat
(PixelFormatEnum.Indexed1);
48
return new
PixelFormat
(PixelFormatEnum.Indexed2);
59
return new
PixelFormat
(PixelFormatEnum.Indexed4);
70
return new
PixelFormat
(PixelFormatEnum.Indexed8);
81
return new
PixelFormat
(PixelFormatEnum.BlackWhite);
92
return new
PixelFormat
(PixelFormatEnum.Gray2);
103
return new
PixelFormat
(PixelFormatEnum.Gray4);
114
return new
PixelFormat
(PixelFormatEnum.Gray8);
125
return new
PixelFormat
(PixelFormatEnum.Bgr555);
136
return new
PixelFormat
(PixelFormatEnum.Bgr565);
147
return new
PixelFormat
(PixelFormatEnum.Rgb128Float);
158
return new
PixelFormat
(PixelFormatEnum.Bgr24);
169
return new
PixelFormat
(PixelFormatEnum.Rgb24);
180
return new
PixelFormat
(PixelFormatEnum.Bgr101010);
191
return new
PixelFormat
(PixelFormatEnum.Bgr32);
202
return new
PixelFormat
(PixelFormatEnum.Bgra32);
213
return new
PixelFormat
(PixelFormatEnum.Pbgra32);
224
return new
PixelFormat
(PixelFormatEnum.Rgb48);
235
return new
PixelFormat
(PixelFormatEnum.Rgba64);
246
return new
PixelFormat
(PixelFormatEnum.Prgba64);
257
return new
PixelFormat
(PixelFormatEnum.Gray16);
268
return new
PixelFormat
(PixelFormatEnum.Gray32Float);
279
return new
PixelFormat
(PixelFormatEnum.Rgba128Float);
290
return new
PixelFormat
(PixelFormatEnum.Prgba128Float);
301
return new
PixelFormat
(PixelFormatEnum.Cmyk32);
PresentationFramework (2)
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8232
DefaultConstructor = delegate () { return new System.Windows.Media.
PixelFormat
(); },
System\Windows\Markup\KnownTypes.cs (1)
1443
case KnownElements.PixelFormat: o = new System.Windows.Media.
PixelFormat
(); break;
96 references to PixelFormat
PresentationCore (93)
System\Windows\InterOp\Imaging.cs (1)
100
Media.
PixelFormat
format,
System\Windows\Media\ColorContext.cs (1)
165
public ColorContext(
PixelFormat
pixelFormat)
System\Windows\Media\ColorTransform.cs (1)
41
internal ColorTransform(SafeMILHandle bitmapSource, ColorContext srcContext, ColorContext dstContext, System.Windows.Media.
PixelFormat
pixelFormat)
System\Windows\Media\Imaging\BitmapImage.cs (1)
510
PixelFormat
duceFormat = BitmapSource.GetClosestDUCEFormat(source.Format, source.Palette);
System\Windows\Media\Imaging\BitmapSource.cs (16)
41
PixelFormat
pixelFormat,
75
PixelFormat
pixelFormat,
142
public virtual System.Windows.Media.
PixelFormat
Format
610
_format =
PixelFormat
.GetPixelFormat(_wicSource);
803
PixelFormat
format = Format;
1022
internal static
PixelFormat
GetClosestDUCEFormat(
PixelFormat
format, BitmapPalette palette)
1085
PixelFormat
originalFmt = PixelFormats.Pbgra32;
1093
originalFmt =
PixelFormat
.GetPixelFormat(wicSource);
1094
PixelFormat
destFmt = originalFmt;
1111
PixelFormat
.GetPixelFormat(wicSource).Format != PixelFormatEnum.Extended
1579
internal
PixelFormat
_format = PixelFormats.Default;
1611
internal static bool IsCompatibleFormat(
PixelFormat
format)
1619
private readonly static
PixelFormat
[] s_supportedDUCEFormats =
1620
new
PixelFormat
[13]
1835
PixelFormat
pfStruct = bitmapSource.Format;
System\Windows\Media\Imaging\BitmapSourceSafeMILHandle.cs (1)
116
PixelFormat
pixelFormat = new PixelFormat(guidFormat);
System\Windows\Media\Imaging\CachedBitmap.cs (3)
45
PixelFormat
pixelFormat,
106
PixelFormat
pixelFormat,
336
PixelFormat
pixelFormat,
System\Windows\Media\Imaging\ColorConvertedBitmap.cs (3)
31
public ColorConvertedBitmap(BitmapSource source, ColorContext sourceColorContext, ColorContext destinationColorContext,
PixelFormat
format)
194
_destinationFormat = (
PixelFormat
)e.NewValue;
270
private
PixelFormat
_destinationFormat;
System\Windows\Media\Imaging\FormatConvertedBitmap.cs (4)
32
public FormatConvertedBitmap(BitmapSource source,
PixelFormat
destinationFormat, BitmapPalette destinationPalette, double alphaThreshold)
204
_destinationFormat = (
PixelFormat
)e.NewValue;
264
if (((
PixelFormat
)value).Format == PixelFormatEnum.Default)
318
private
PixelFormat
_destinationFormat;
System\Windows\Media\Imaging\Generated\ColorConvertedBitmap.cs (4)
166
public
PixelFormat
DestinationFormat
170
return (
PixelFormat
) GetValue(DestinationFormatProperty);
342
internal static
PixelFormat
s_DestinationFormat = PixelFormats.Pbgra32;
397
typeof(
PixelFormat
),
System\Windows\Media\Imaging\Generated\FormatConvertedBitmap.cs (4)
136
public
PixelFormat
DestinationFormat
140
return (
PixelFormat
) GetValue(DestinationFormatProperty);
340
internal static
PixelFormat
s_DestinationFormat = PixelFormats.Pbgra32;
379
typeof(
PixelFormat
),
System\Windows\Media\Imaging\InteropBitmapSource.cs (1)
108
PixelFormat
format,
System\Windows\Media\Imaging\RenderTargetBitmap.cs (1)
30
PixelFormat
pixelFormat
System\Windows\Media\Imaging\WriteableBitmap.cs (2)
59
PixelFormat
pixelFormat,
692
private long GetEstimatedSize(int pixelWidth, int pixelHeight,
PixelFormat
pixelFormat)
System\Windows\Media\PixelFormat.cs (12)
145
public struct PixelFormat : IEquatable<
PixelFormat
>
274
public static bool operator ==(
PixelFormat
left,
PixelFormat
right)
282
public static bool operator !=(
PixelFormat
left,
PixelFormat
right)
290
public static bool Equals(
PixelFormat
left,
PixelFormat
right)
298
public readonly bool Equals(
PixelFormat
pixelFormat)
308
return obj is
PixelFormat
pixelFormat && Equals(pixelFormat);
504
internal static
PixelFormat
GetPixelFormat(SafeMILHandle /* IWICBitmapSource */ bitmapSource)
518
internal static
PixelFormat
GetPixelFormat(Guid pixelFormatGuid)
531
internal 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>
78
if (value is not
PixelFormat
pixelFormat)
79
throw new ArgumentException(SR.Format(SR.General_Expected_Type, nameof(
PixelFormat
)));
83
ConstructorInfo ci = typeof(
PixelFormat
).GetConstructor(new Type[] { typeof(string) });
System\Windows\Media\PixelFormats.cs (26)
22
public static
PixelFormat
Default
33
public static
PixelFormat
Indexed1
44
public static
PixelFormat
Indexed2
55
public static
PixelFormat
Indexed4
66
public static
PixelFormat
Indexed8
77
public static
PixelFormat
BlackWhite
88
public static
PixelFormat
Gray2
99
public static
PixelFormat
Gray4
110
public static
PixelFormat
Gray8
121
public static
PixelFormat
Bgr555
132
public static
PixelFormat
Bgr565
143
public static
PixelFormat
Rgb128Float
154
public static
PixelFormat
Bgr24
165
public static
PixelFormat
Rgb24
176
public static
PixelFormat
Bgr101010
187
public static
PixelFormat
Bgr32
198
public static
PixelFormat
Bgra32
209
public static
PixelFormat
Pbgra32
220
public static
PixelFormat
Rgb48
231
public static
PixelFormat
Rgba64
242
public static
PixelFormat
Prgba64
253
public static
PixelFormat
Gray16
264
public static
PixelFormat
Gray32Float
275
public static
PixelFormat
Rgba128Float
286
public static
PixelFormat
Prgba128Float
297
public static
PixelFormat
Cmyk32
PresentationFramework (3)
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
546
case 452: t = () => typeof(
PixelFormat
); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
8229
typeof(System.Windows.Media.
PixelFormat
),
System\Windows\Markup\KnownTypes.cs (1)
6000
case KnownElements.PixelFormat: t = typeof(System.Windows.Media.
PixelFormat
); break;