Search Results for

    Show / Hide Table of Contents

    Class ColorUtility

    Inheritance
    object
    ColorUtility
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: nanoFramework.Presentation.Media
    Assembly: nanoFramework.Graphics.dll
    Syntax
    public static class ColorUtility

    Methods

    ColorFromRGB(byte, byte, byte)

    Declaration
    public static Color ColorFromRGB(byte r, byte g, byte b)
    Parameters
    Type Name Description
    byte r
    byte g
    byte b
    Returns
    Type Description
    Color

    GetBValue(Color)

    Declaration
    public static byte GetBValue(Color color)
    Parameters
    Type Name Description
    Color color
    Returns
    Type Description
    byte

    GetGValue(Color)

    Declaration
    public static byte GetGValue(Color color)
    Parameters
    Type Name Description
    Color color
    Returns
    Type Description
    byte

    GetRValue(Color)

    Declaration
    public static byte GetRValue(Color color)
    Parameters
    Type Name Description
    Color color
    Returns
    Type Description
    byte

    To16Bpp(Color)

    Converts color into a 16bit representation.

    Declaration
    public static ushort To16Bpp(Color color)
    Parameters
    Type Name Description
    Color color

    A color.

    Returns
    Type Description
    ushort

    a 16 bit encoded representation.

    In This Article
    Back to top Copyright © 2023 nanoFramework Contributors
    Generated by DocFX