KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Could anyone explain for me how java stores color in TYPE_INT_RGB and TYPE_INT_ARGB ? Do these lines of code work properly for calculating red, green and blue ? int red= (RGB>>16)&255; int green= (RGB>>8)&255; int blue= (RGB)&255; And what about TYPE_INT_ARGB ? How can I get red, green and blue from TYPE_INT_ARGB?
Tags (comma-separated)
Save Edits
Cancel