public RasterColor TranslateColor(
RasterImage destImage,
RasterColor color
)
Public Overloads Function TranslateColor( _
ByVal destImage As RasterImage, _
ByVal color As RasterColor _
) As RasterColor
- (LTRasterColor *)translateColor:(LTRasterImage *)dstImage
color:(LTRasterColor *)color
public:
RasterColor TranslateColor(
RasterImage^ destImage,
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
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document