• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Modifying BufferedImage pixels

 
Jon Mattson
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd like to know what's the fastest way to move a column of pixels one pixel down so that the lowest pixel comes out on top. I'm now talking about 16x16 tiles for my game. It should be fast enough so that you can do it every frame keeping 60 fps. Is this possible and how?
 
Subhajit Mitra
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
wrong forum, i guess
 
Jon Mattson
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what's the right forum?

I found an example somewhere where pixelgrabber was used to get a 1D array of the pixels from an image. Then the 1D array was converted to a 3D array which contained the red, green, blue and alpha value for each pixel.

I got a couple of questions about this:

First I think the page was pretty old and there might be something else I can use, is there?

Second if pixelgrabber is the best way then how does it really work the example I got worked well but when I tried to integrate it to my own code it didn't work.

I'm talking about this page

Replies appreciated
[ June 12, 2006: Message edited by: Jon Mattson ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic