Translates the specified color in the image, and returns the nearest matching color in the destination image.
public Leadtools.RasterColor TranslateColor(
Leadtools.RasterImage destImage,
Leadtools.RasterColor color
)
Public Overloads Function TranslateColor( _
ByVal destImage As Leadtools.RasterImage, _
ByVal color As Leadtools.RasterColor _
) As Leadtools.RasterColor
public Leadtools.RasterColor TranslateColor(
Leadtools.RasterImage destImage,
Leadtools.RasterColor color
)
- (LTRasterColor *)translateColor:(LTRasterImage *)dstImage
color:(LTRasterColor *)color
function Leadtools.RasterImage.TranslateColor(RasterImage,RasterColor)(
destImage ,
color
)
public:
Leadtools.RasterColor TranslateColor(
Leadtools.RasterImage^ destImage,
Leadtools.RasterColor color
)
destImage
Destination RasterImage object.
color
Value that specifies the color in the image to be translated.
The color value or the palette index of the nearest matching color in the destination image. If the destination image is 8 bits per pixel or less, this is always the palette index (The value of the RasterColor.IsPaletteIndex is true). Otherwise, it is the color value.
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.
For an example, refer to TransparentColor
Products |
Support |
Feedback: TranslateColor(RasterImage,RasterColor) Method - Leadtools |
Introduction |
Help Version 19.0.2017.6.19
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.