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