Search Results for

    Show / Hide Table of Contents

    Class GraphicUtils

    Static helpers for working with colors and font styles, including conversions between Color and the engine's 32-bit integer (BBGGRR) and string color encodings.

    Inheritance
    object
    GraphicUtils
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Reportman.Drawing
    Assembly: Reportman.Drawing.dll
    Syntax
    public class GraphicUtils

    Constructors

    View Source

    GraphicUtils()

    Declaration
    public GraphicUtils()

    Fields

    View Source

    ColorNames

    Declaration
    public static SortedList<string, KnownColor> ColorNames
    Field Value
    Type Description
    SortedList<string, KnownColor>
    View Source

    DefaultDPI

    Declaration
    public static int DefaultDPI
    Field Value
    Type Description
    int
    View Source

    flag

    Declaration
    public static object flag
    Field Value
    Type Description
    object

    Methods

    View Source

    ColorFromHtml(string)

    Declaration
    public static Color ColorFromHtml(string htmlColor)
    Parameters
    Type Name Description
    string htmlColor
    Returns
    Type Description
    Color
    View Source

    ColorFromInteger(int)

    Create a Color based on a 32 bit integer

    Declaration
    public static Color ColorFromInteger(int aint)
    Parameters
    Type Name Description
    int aint

    Integer color value in the form of $00BBGGRR

    Returns
    Type Description
    Color

    Returs a Color usable in any System.Drawing function

    View Source

    ColorFromIntegerA(int)

    Create a Color based on a 32 bit integer

    Declaration
    public static Color ColorFromIntegerA(int aint)
    Parameters
    Type Name Description
    int aint

    Integer color value in the form of $00BBGGRR

    Returns
    Type Description
    Color

    Returs a Color usable in any System.Drawing function

    View Source

    ColorFromString(string)

    Declaration
    public static Color ColorFromString(string ncolor)
    Parameters
    Type Name Description
    string ncolor
    Returns
    Type Description
    Color
    View Source

    FontStyleIsBold(int)

    Declaration
    public static bool FontStyleIsBold(int intfontstyle)
    Parameters
    Type Name Description
    int intfontstyle
    Returns
    Type Description
    bool
    View Source

    FontStyleIsItalic(int)

    Declaration
    public static bool FontStyleIsItalic(int intfontstyle)
    Parameters
    Type Name Description
    int intfontstyle
    Returns
    Type Description
    bool
    View Source

    FontStyleIsStrikeOut(int)

    Declaration
    public static bool FontStyleIsStrikeOut(int intfontstyle)
    Parameters
    Type Name Description
    int intfontstyle
    Returns
    Type Description
    bool
    View Source

    FontStyleIsUnderline(int)

    Declaration
    public static bool FontStyleIsUnderline(int intfontstyle)
    Parameters
    Type Name Description
    int intfontstyle
    Returns
    Type Description
    bool
    View Source

    IntegerFromColor(Color)

    Create an integer value based on a Color ///

    Declaration
    public static int IntegerFromColor(Color acolor)
    Parameters
    Type Name Description
    Color acolor

    Color value

    Returns
    Type Description
    int

    Returs an integer value in the form of $00BBGGRR

    View Source

    IntegerFromColorA(Color)

    Declaration
    public static int IntegerFromColorA(Color acolor)
    Parameters
    Type Name Description
    Color acolor
    Returns
    Type Description
    int
    • View Source
    In this article
    Back to top Generated by DocFX