How to convert RGB to BGR?

Posted by Adam on Stack Overflow See other posts from Stack Overflow or by Adam
Published on 2010-06-14T22:57:42Z Indexed on 2010/06/14 23:02 UTC
Read the original article Hit count: 468

Filed under:
|

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.

© Stack Overflow or respective owner

Related posts about java

Related posts about color-scheme