By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,798 Members | 1,342 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,798 IT Pros & Developers. It's quick & easy.

direct memory access to backbuffer

P: n/a
MRe
Hi,

I have a JFrame using double-buffering (createBufferStrategy(..)) and was
wondering if it's possible to get direct access to the backbuffer's memory?
The only thing I seem to be able to get is a Graphics object,
(frame.getBufferStrategy().getDrawGraphics();) and don't know how to get the
component it's writing on

I'd hope to be able to do like the following, except where 'image' is
replaced with something returned from getBufferStrategy(), in some way

BufferedImage image = new BufferedImage(10, 10,
BufferedImage.TYPE_INT_ARGB);
int[] d = ((DataBufferInt)image.getRaster().getDataBuffer()) .getData();

Thank you kindly,
Eliott
Jan 25 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.