Leadtools Namespace > RasterImage Class > TranslateColor Method : TranslateColor(RasterImage,RasterColor) Method |
public RasterColor TranslateColor( RasterImage destImage, RasterColor color )
'Declaration Public Overloads Function TranslateColor( _ ByVal destImage As RasterImage, _ ByVal color As RasterColor _ ) As RasterColor
'Usage Dim instance As RasterImage Dim destImage As RasterImage Dim color As RasterColor Dim value As RasterColor value = instance.TranslateColor(destImage, color)
public RasterColor TranslateColor( RasterImage destImage, RasterColor color )
public: RasterColor TranslateColor( RasterImage^ destImage, RasterColor color )
When creating a target image for animation, you can use this method to ensure that the correct color is specified as the background color.
The reverse of this method (to get a true RGB color value from a palette index color), use GetTrueColorValue.
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