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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 39541
    
  27
By doing the opposite:



Ping & DNS - updated with new look and Ping home screen widget
H Melua
Ranch Hand

Joined: Jan 04, 2005
Posts: 172
Thank you star
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Getting Pixel from int values (red green blue)
 
Similar Threads
Number of colors in an Image
Image Animation...
Points on an Image
Logical operation on Image
How do i find out what color a certain pixel is?