• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Modifying BufferedImage pixels

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
wrong forum, i guess
 
Jon Mattson
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
reply
    Bookmark Topic Watch Topic
  • New Topic