FreeImage.NET Class Library Reference
FreeImageBitmapLookupX11Color Method |
Converts a X11 color name into a corresponding RGB value.
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static bool LookupX11Color( string color, out byte red, out byte green, out byte blue )
Parameters
- color
- Type: SystemString
Name of the color to convert. - red
- Type: SystemByte
Red component. - green
- Type: SystemByte
Green component. - blue
- Type: SystemByte
Blue component.
Return Value
Type: BooleanReturns true on success, false on failure.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | color is null. |
See Also