ESRI.ArcGIS.ADF.Web
MapColor Method
See Also  Send Feedback
ESRI.ArcGIS.ADF.Web.Display.Drawing Namespace > GdiUtility Class : MapColor Method




b
The bitmap of which color to map.
oldColor
The color you want replaced.
newColor
The new color.
Map one color to another color and return the resulting bitmap.

Syntax

Visual Basic (Declaration) 
Public Shared Function MapColor( _
   ByVal b As Bitmap, _
   ByVal oldColor As Color, _
   ByVal newColor As Color _
) As Bitmap
Visual Basic (Usage)Copy Code
Dim b As Bitmap
Dim oldColor As Color
Dim newColor As Color
Dim value As Bitmap
 
value = GdiUtility.MapColor(b, oldColor, newColor)
C# 
public static Bitmap MapColor( 
   Bitmap b,
   Color oldColor,
   Color newColor
)

Parameters

b
The bitmap of which color to map.
oldColor
The color you want replaced.
newColor
The new color.

Return Value

Resulting bitmap.

Remarks

The Bitmap sent in will be disposed of and a new one will be returned.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.