Hi, I have experience with generating BMP images in C++ and likely can help you to fix your program. Please provide your existing source code, also tell me which operating system, CPU architecture and compiler you target, there may be some small, but important differences.