AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

direct memory access to backbuffer

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> comp.lang.java
View previous topic :: View next topic  
Author Message
MRe
Guest





PostPosted: Fri Jan 26, 2007 12:31 am    Post subject: direct memory access to backbuffer Reply with quote



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()Wink 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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> comp.lang.java All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.