Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Indexed2 Property

PixelFormats.Indexed2 Property

Gets the pixel format specifying a paletted bitmap with 4 colors.

Namespace:  System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

public static PixelFormat Indexed2 { get; }
<object property="Indexed2"/>

Property Value

Type: System.Windows.Media.PixelFormat
The pixel format which specifying a paletted bitmap with 4 colors.

Paletted images use a color table which determines the color usage for the image. Each pixel in the image is mapped to a particular color in the table, or palette. Each color in the palette is identified by its index number, or value, which corresponds to its position in the table. The Indexed2 pixel format has 4 colors available in the table.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft