Tuesday, June 15, 2010

How to convert RGB to BGR?

Programmer Question

This is probably easy, but I'm trying to convert from a source which provides colors in RGB strings to an output in BGR strings in Java. I've been busting my brain and time on shifting and Long.decode and Long.toHexString.



Feel free to also throw alpha values in there (RGBA -> ABGR), though I think I can extend the principles.



Find the answer here

No comments:

Post a Comment

LinkWithin

Related Posts with Thumbnails