We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

    Show / Hide Table of Contents

    Class Color32Extensions

    Extension methods for Unity's Color32 struct

    Inheritance
    Object
    Color32Extensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit
    Assembly: cs.temp.dll.dll
    Syntax
    public static class Color32Extensions

    Methods

    ParseHexcode(String)

    Creates a Color from a hexcode string

    Declaration
    public static Color ParseHexcode(string hexstring)
    Parameters
    Type Name Description
    String hexstring
    Returns
    Type Description
    Color

    PremultiplyAlpha(Color)

    Declaration
    public static Color PremultiplyAlpha(Color col)
    Parameters
    Type Name Description
    Color col
    Returns
    Type Description
    Color

    PremultiplyAlpha(Color32)

    Declaration
    public static Color32 PremultiplyAlpha(Color32 col)
    Parameters
    Type Name Description
    Color32 col
    Returns
    Type Description
    Color32
    Back to top Generated by DocFX