Converts a X11 color name into a corresponding RGB value.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public static bool LookupX11Color(
	string szColor,
	out byte nRed,
	out byte nGreen,
	out byte nBlue
)
Visual Basic (Declaration)
Public Shared Function LookupX11Color ( _
	szColor As String, _
	<OutAttribute> ByRef nRed As Byte, _
	<OutAttribute> ByRef nGreen As Byte, _
	<OutAttribute> ByRef nBlue As Byte _
) As Boolean
Visual C++
public:
static bool LookupX11Color(
	String^ szColor, 
	[OutAttribute] unsigned char% nRed, 
	[OutAttribute] unsigned char% nGreen, 
	[OutAttribute] unsigned char% nBlue
)

Parameters

szColor
Type: System..::.String
Name of the color to convert.
nRed
Type: System..::.Byte %
Red component.
nGreen
Type: System..::.Byte %
Green component.
nBlue
Type: System..::.Byte %
Blue component.

Return Value

Returns true on success, false on failure.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also