aspose file tools
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 Elasticsearch in Action this week in the Big Data 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
Rancher

Joined: Mar 22, 2005
Posts: 42954
    
  73
By doing the opposite:

H Melua
Ranch Hand

Joined: Jan 04, 2005
Posts: 172
Thank you star
 
Consider Paul's rocket mass heater.
 
subject: Getting Pixel from int values (red green blue)