Hello,
the referenced ExternBitmapLoader.ewi is an example of how to integrate an external image decoder. This example limits to single-frame bitmaps only. Similarly, the module is compiled with color format valid for Win32 RGBA8888 target system. Other platforms (e.g. OpenGL) may have other layout of how pixel are stored. This may lead to the observed wrong colors being shown during the Prototyping.
In the practice, you should implement your own intrinsic module by taking in account your particular needs (e.g. support for multi-frame bitmaps) as well as the correct color format of the pixel stored in the bitmap. See following sections:
Multi-frame and animated bitmaps (explains the implementation aspects for multi-frame bitmaps)
Take in account the color format of the bitmap (Addresses the different color formats)
Implementing Prototyper intrinsics (Explains how you implement your own intrinsic modules)
LibPNG for NXP with FatFS (ASK thread treating similar question of how to use multi-frame extern bitmaps)
I hope it helps you further.
Best regards
Paul Banach