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.
Assembly: Reportman.Drawing.dll
Syntax
public class GraphicUtils
Constructors
View Source
GraphicUtils()
Declaration
Fields
View Source
ColorNames
Declaration
public static SortedList<string, KnownColor> ColorNames
Field Value
View Source
DefaultDPI
Declaration
public static int DefaultDPI
Field Value
View Source
flag
Declaration
public static object flag
Field Value
Methods
View Source
ColorFromHtml(string)
Declaration
public static Color ColorFromHtml(string htmlColor)
Parameters
| Type |
Name |
Description |
| string |
htmlColor |
|
Returns
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
View Source
FontStyleIsBold(int)
Declaration
public static bool FontStyleIsBold(int intfontstyle)
Parameters
| Type |
Name |
Description |
| int |
intfontstyle |
|
Returns
View Source
FontStyleIsItalic(int)
Declaration
public static bool FontStyleIsItalic(int intfontstyle)
Parameters
| Type |
Name |
Description |
| int |
intfontstyle |
|
Returns
View Source
FontStyleIsStrikeOut(int)
Declaration
public static bool FontStyleIsStrikeOut(int intfontstyle)
Parameters
| Type |
Name |
Description |
| int |
intfontstyle |
|
Returns
View Source
FontStyleIsUnderline(int)
Declaration
public static bool FontStyleIsUnderline(int intfontstyle)
Parameters
| Type |
Name |
Description |
| int |
intfontstyle |
|
Returns
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