- This topic has 1 reply, 2 voices, and was last updated 8 years, 10 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
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.