This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Swing / AWT / SWT and the fly likes Getting Pixel from int values (red green blue) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Getting Pixel from int values (red green blue)" Watch "Getting Pixel from int values (red green blue)" New topic
Author

Getting Pixel from int values (red green blue)

H Melua
Ranch Hand

Joined: Jan 04, 2005
Posts: 172
Hello guys

I've got a pixel from an array, and I'm getting the colours from that pixel as follows



then i play with the pixels as i need to...

and what i want to do now is to reconstruct the pixel (in order to rewrite it to the array)...

how do i do that?

Thanks
HannaH
[ October 19, 2007: Message edited by: H Melua ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41592
    
  55
By doing the opposite:



Ping & DNS - my free Android networking tools app
H Melua
Ranch Hand

Joined: Jan 04, 2005
Posts: 172
Thank you star
 
 
subject: Getting Pixel from int values (red green blue)