- This topic has 1 reply, 2 voices, and was last updated 12 years ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
The TWAIN Resource site is designed to help TWAIN users and prospective users find resources in the community for TWAIN-related products and services. Become a member.
Home › Forums › TWAIN Classic › Inverted red and blue colors in memory transfer mode
Image received by memory transfer mode has red color replaced with blue and vice versa. I tried to invert them using macro
#define RGB2BGR(color) (color & 0xFF000000) | ((color & 0xFF0000) >> 16) | (color & 0x00FF00) | ((color & 0x0000FF) << 16)
but the image wasn’t correct. Did anyone had similar problem? How to invert colors?
Hi,
In memory mode data transfer actually the pixel format coming from DS is BGR, so in the application you need to flip the R and B of every pixel to make it RGB.