#include "l_bitmap.h"
L_LTKRN_API L_COLORREF L_TranslateBitmapColor(pBitmapDst, pBitmapSrc, crColor)
Translates the specified color in the source bitmap, and returns the nearest matching color in the destination bitmap.
Pointer to the bitmap handle referencing the destination bitmap.
Pointer to the bitmap handle referencing the source bitmap.
The COLORREF value that specifies the color in the source bitmap to be translated. You can get the value from a palette entry or by using L_GetPixelColor.
The COLORREF value or the palette index of the nearest matching color in the destination bitmap. If the destination bitmap is 8 bits per pixel or less, this is always the palette index. Otherwise, it is the COLORREF value.
When creating a target bitmap for animation, you can use this function to ensure that the correct color is specified as the background color.
Required DLLs and Libraries
Win32, x64, Linux.
For an example, refer to L_GetBitmapListItem.
For complete sample code, refer to the CHILD.C module of the DEMO
example.
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