I think last line should be
instead of + db = ((lastPixel & 0x0F0)) - ((lastUpperPixel & 0x0F0));
It should be + db = ((lastPixel & 0x0FF)) - ((lastUpperPixel & 0x0FF));
Please test it and let me know your result.
Thanks and Regards Yashwant
I think last line should be
instead of
+ db = ((lastPixel & 0x0F0)) - ((lastUpperPixel & 0x0F0));
It should be
+ db = ((lastPixel & 0x0FF)) - ((lastUpperPixel & 0x0FF));
Please test it and let me know your result.
Thanks and Regards
Yashwant