Converts a X11 color name into a corresponding RGB value.
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
public static bool LookupX11Color( string color, out byte red, out byte green, out byte blue ) |
Visual Basic (Declaration) |
---|
Public Shared Function LookupX11Color ( _ color As String, _ <OutAttribute> ByRef red As Byte, _ <OutAttribute> ByRef green As Byte, _ <OutAttribute> ByRef blue As Byte _ ) As Boolean |
Visual C++ |
---|
public: static bool LookupX11Color( String^ color, [OutAttribute] unsigned char% red, [OutAttribute] unsigned char% green, [OutAttribute] unsigned char% blue ) |
Parameters
- color
- Type: System..::.String
Name of the color to convert.
- red
- Type:
System..::.Byte
%
Red component.
- green
- Type:
System..::.Byte
%
Green component.
- blue
- Type:
System..::.Byte
%
Blue component.
Return Value
Returns true on success, false on failure.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | color is null. |