ImageMan.Net Version 3 Summer 2012 Release
GetNearestColor Method
See Also  Send Feedback
DTI.ImageMan Namespace > ImGraphic Class : GetNearestColor Method





color
The color.

Glossary Item Box

Gets the nearest color match in the current palette.

Syntax

Visual Basic (Declaration) 
Public Function GetNearestColor( _
   ByVal color As System.Drawing.Color _
) As System.Drawing.Color
Visual Basic (Usage)Copy Code
Dim instance As ImGraphic
Dim color As System.Drawing.Color
Dim value As System.Drawing.Color
 
value = instance.GetNearestColor(color)
C# 
public System.Drawing.Color GetNearestColor( 
   System.Drawing.Color color
)
JScript 
public function GetNearestColor( 
   color : System.Drawing.Color
) : System.Drawing.Color;
Managed Extensions for C++ 
public: System.Drawing.Color GetNearestColor( 
   System.Drawing.Color color
) 
C++/CLI 
public:
System.Drawing.Color GetNearestColor( 
   System.Drawing.Color color
) 

Parameters

color
The color.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2014 Data Techniques, Inc. All Rights Reserved.