Bgr565 Structure
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Packed vector type containing unsigned normalized values ranging from 0 to 1. The x and z components use 5 bits, and the y component uses 6 bits.
Namespace: Microsoft.Xna.Framework.Graphics.PackedVector
Assembly: Microsoft.Xna.Framework.Math (in Microsoft.Xna.Framework.Math.dll)
Syntax
'Declaration
Public Structure Bgr565 _
Implements IPackedVector(Of UShort), IPackedVector
public struct Bgr565 : IPackedVector<ushort>,
IPackedVector
The Bgr565 type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Bgr565(Vector3) | Initializes a new instance of the Bgr565 structure. | |
Bgr565(Single, Single, Single) | Initializes a new instance of the Bgr565 class. |
Top
Properties
Name | Description | |
---|---|---|
PackedValue | Directly gets or sets the packed representation of the value. |
Top
Methods
Name | Description | |
---|---|---|
Equals(Object) | Returns a value that indicates whether the current instance is equal to a specified object. (Overrides ValueType.Equals(Object).) | |
Equals(Bgr565) | Returns a value that indicates whether the current instance is equal to a specified object. | |
GetHashCode | Gets the hash code for the current instance. (Overrides ValueType.GetHashCode().) | |
ToString | Returns a string representation of the current instance. (Overrides ValueType.ToString().) | |
ToVector3 | Expands the packed representation into a Vector3. |
Top
Operators
Name | Description | |
---|---|---|
Equality | Compares the current instance of a class to another instance to determine whether they are the same. | |
Inequality | Compares the current instance of a class to another instance to determine whether they are different. |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IPackedVector.PackFromVector4 | Sets the packed representation from a Vector4. | |
IPackedVector.ToVector4 | Expands the packed representation into a Vector4. |
Top
Version Information
Silverlight
Supported in: 5
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.