PixelFormat Structure

 

Defines a pixel format for images and pixel-based surfaces.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

[SerializableAttribute]
[TypeConverterAttribute((PixelFormatConverter^::typeid))]
public value struct PixelFormat : IEquatable<PixelFormat>

NameDescription
System_CAPS_pubpropertyBitsPerPixel

Gets the number of bits-per-pixel (bpp) for this PixelFormat.

System_CAPS_pubpropertyMasks

Gets a collection of bit masks associated with the PixelFormat.

NameDescription
System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object. (Overrides ValueType::Equals(Object^).)

System_CAPS_pubmethodEquals(PixelFormat)

Determines whether the pixel format equals the given PixelFormat.

System_CAPS_pubmethodSystem_CAPS_staticEquals(PixelFormat, PixelFormat)

Determines whether the specified PixelFormat instances are considered equal.

System_CAPS_pubmethodGetHashCode()

Creates a hash code from this pixel format's Masks value.(Overrides ValueType::GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Creates a string representation of this PixelFormat.(Overrides ValueType::ToString().)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(PixelFormat, PixelFormat)

Compares two PixelFormat instances for equality.

System_CAPS_puboperatorSystem_CAPS_staticInequality(PixelFormat, PixelFormat)

Compares two PixelFormat instances for inequality.

<object property="pixelFormat"/>

pixelFormat

One of the predefined pixel formats defined by the PixelFormats class.

The following example shows how to create a PixelFormat and find the value of its properties.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 3.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: