Menu

#4 colour inversion in RGBAImage.h

open
nobody
None
5
2010-07-24
2010-07-24
Anonymous
No

I ported this application to the haXe programming language, and it now runs on 4 other languages.

http://bitbucket.org/grumpytoad/pdiff-hx

In the process I noticed an inconsistency in RGBAImage.h, which effectively swaps the red and blue channels during a comparison. The following should be used for Get_Red and Get_Blue:

unsigned char Get_Red(unsigned int i) { return ((Data[i] >> 16) & 0xFF); }
unsigned char Get_Blue(unsigned int i) { return (Data[i] & 0xFF); }

Discussion


Log in to post a comment.