Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Double buffering with Canvas

 
Bob Blumkin
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I thought I had implemented double buffering with a Canvas, but I noticed that the graphics didn't look smooth at all. I then rewrote it with the overriding JPanel paint method I knew would work and graphics looks a lot better. However, I can't really use this simplified implementation for what I want so would like to understand why the original one I tried, with the Canvas, didn't work. Thanks!



I've seen others do odd things with buffered images, but I dont understand why that would be necessary since the canvas already has a buffer. From what I understand the show() method should take care of everything for me

[ June 20, 2008: Message edited by: Bob Blumkin ]
[ June 20, 2008: Message edited by: Bob Blumkin ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!