LEADTOOLS (Leadtools assembly)

GetKnownColor Method (RasterColorHelper)

Show in webframe







The color ARGB value.
Gets the known color enumeration member that matches this color ARGB value.
Syntax
public RasterKnownColor GetKnownColor( 
   RasterColor color
)
'Declaration
 
Public Function GetKnownColor( _
   ByVal color As RasterColor _
) As RasterKnownColor
'Usage
 
Dim instance As RasterColorHelper
Dim color As RasterColor
Dim value As RasterKnownColor
 
value = instance.GetKnownColor(color)
public RasterKnownColor GetKnownColor( 
   RasterColor color
)

            

            
 function Leadtools.RasterColorHelper.GetKnownColor( 
   color 
)
public:
RasterKnownColor GetKnownColor( 
   RasterColor color
) 

Parameters

color
The color ARGB value.

Return Value

An RasterKnownColor enumeration member that matches this color ARGB value. If the color ARGB value does not match any known color, RasterKnownColor.Black is returned.
Remarks

This method does a comparison of the ARGB values. Therefore, the GetKnownColor method might return a valid RasterKnownColor enumeration member even if this RasterColor was no creating using the FromKnownColor method.

To check whether this RasterColor has a matching RasterKnownColor, use IsKnownColor.

Requirements

Target Platforms

See Also

Reference

RasterColorHelper Class
RasterColorHelper Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.