Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > double buffering and createImage()

Reply
Thread Tools

double buffering and createImage()

 
 
Rob Love
Guest
Posts: n/a
 
      07-02-2003
Hey,

I have a canvas in a applet that I want to draw on. My problem is that I
don't know where to call createImage() to get my back buffer. I tried it in
the constructor, but I keep getting null returned to me.

Any suggestions?

Thanks,

//Rob


 
Reply With Quote
 
 
 
 
dhek bhun kho
Guest
Posts: n/a
 
      07-02-2003
"Rob Love" <>, Wed, 02 Jul 2003 09:49:58 -0700:

> Hey,


Hi Rob,

> I have a canvas in a applet that I want to draw on. My problem is that I
> don't know where to call createImage() to get my back buffer. I tried it in
> the constructor, but I keep getting null returned to me.
> Any suggestions?
> Thanks,
> //Rob


You have to make sure the component is 'realised' and displayable, I used
to do this in the paint() method, but found some better suggestions over
here:

http://forum.java.sun.com/thread.jsp...essage=1557275



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cannot convert parameter from 'double (double)' to 'double (__cdecl *)(double)' error Sydex C++ 12 02-17-2005 06:30 PM
Double Buffering in ASP.NET Sandeep ASP .Net 2 08-10-2004 04:55 PM
Double buffering David Java 3 11-26-2003 05:15 PM
Help on double buffering David Java 0 11-23-2003 09:52 PM
Volatile images & double-buffering nils@brickwall.org Java 1 08-29-2003 07:37 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57