A computer-graphics technique for updating a dynamic image that greatly reduces the visual artifacts, especially flicker, caused by the screen pixels being changed. The new image is drawn in a "hidden" buffer while the user still sees the old image, stored in a "visible" buffer (hence "double-buffering"). When the new image is fully drawn, the visible and the hidden buffers are switched very quickly and the hidden buffer content becomes visible.
Questions tagged [doublebuffered]
181 questions
1
vote
4 answers
(.NET/C#/winforms) Artifacting when drawing on a Form with Graphics
My objective is to move visual elements drawn using methods of a Graphics object across a Form with no flicker or artifacting (in .NET 3.5). I can successfully achieve flickerless movement by either using automatic double buffering (setting the…
Timothy
1
vote
1 answer
c# CF, WinForms and double buffer
I have a CF 2.0 app with a PictureBox on a Form. I want to move the PictureBox with mouse move and I need to add Double Buffer to the form to avoid flickering.
How can I do this?
Thanks!

VansFannel
- 45,055
- 107
- 359
- 626
1
vote
3 answers
Java double buffer using an override for update method throws stack overflow
I am trying to achieve double buffering of my game in Java by overriding the update method for my JPanel, I do all the usual code etc and still it won't work, it throws a stack overflow error, below is the specific error:
Exception in thread…

Luke Alderton
- 3,198
- 1
- 23
- 34
1
vote
5 answers
Problems re-drawing an image on a double-buffered control without flickering
I know that double-buffering is an often-talked subject but no matter how much I searched and tried different approaches, I still can't get the control to re-draw itself without a flicker. Here's my code:
using System;
using System.Drawing;
using…
everwicked
1
vote
1 answer
Double Buffer a custom control in the Compact Framework
I have a custom control that inherits from Panel. I end up putting several DataGrids and Labels on this panel. When it gets too long it auto scrolls for me.
I really need the scrolling because it is a list of scanned in objects that will grow…

Vaccano
- 78,325
- 149
- 468
- 850
1
vote
2 answers
Should Double Buffering be done on a panel where I'm already drawing from a Bitmap, to minimize flicker?
I understand double buffering a panel basically means all the drawing is done to a buffer and then the buffer is copied directly to the drawing surface.
I am drawing to a Bitmap, and then drawing that Bitmap to my panel, using Graphics.DrawImage, so…

Priyank
- 1,513
- 1
- 18
- 36
1
vote
0 answers
How can I control Android's double buffering behavior?
I am writing a small animation where an area should start on the left hand side of the screen, and widen to cover the entire screen, and bounce back. I want the speed to vary, but I am finding that when the speed is high, there are many "ghost"…

Daniel Gray
- 1,697
- 1
- 21
- 41
1
vote
2 answers
Why is the paint() method not executing update() or paint() methods?
I'm having this problem where the paint() or update() methods in a class isn't getting called when I execute repaint(). Here's the code:
public class BufferedDisplay extends Canvas implements Runnable {
// Contains all the images in order, ordered…

exodrifter
- 658
- 1
- 12
- 23
1
vote
2 answers
Using Double buffer with VCL controls
My Application have many graphics and visual components... So i switched on doublebufferd = true in each and every components as possible.
later i wanted to use a panel in order to hold some components( it makes alignment easy)
but at the same time…

Vibeeshan Mahadeva
- 7,147
- 8
- 52
- 102
1
vote
1 answer
Windows Compact 2013, C# and Double Buffering
I'm using Win CE 13 to display some information on a fueling panel using the Windows.Forms library.
For example a Windows.Forms.Label object is used to display the current time and another to display the amount of pumped fluid.
Now these labels'…

P.W
- 21
- 5
1
vote
1 answer
A problem with overriding OnPaint when DoubleBuffered set to true
I have created a custom control which derives from Panel. I use it to display an Image using BackgroundImage property. I override the OnClick method and set isSelected to true then call Invalidate method and draw a rectangle in overrided…

Dmitry Popov
- 398
- 1
- 14
1
vote
1 answer
Winforms Double Buffering turns off after minimizing form
I have a form which displays several graphics and in order to improve the visual experience while the graphics are rendered I have used this piece of code that enables Double Buffering.
When I execute the application without minimizing/maximizing…

codeaviator
- 2,545
- 17
- 42
1
vote
1 answer
Continous double buffering solution not working
I'm attempting to double buffer an image containing a polygon in the method paint() using AWT. Using an Image object for the buffering process, I set the image background to black, draw the polygon to the image and then draw the buffered image to…

C Goldsworthy
- 334
- 2
- 12
1
vote
4 answers
Enabling Double Buffering
I've seen the following code to enable double buffering on a winform:
// Activates double buffering
this.SetStyle(ControlStyles.DoubleBuffer |
ControlStyles.OptimizedDoubleBuffer |
ControlStyles.UserPaint |
…

AngryHacker
- 59,598
- 102
- 325
- 594
1
vote
0 answers
Graphics are flickering when I draw with double buffering
I'm building a simple 2d java game and having some flickering issues even though I draw the graphics using a double buffering technique.
I've just got started and have a very simple game loop this far. But I think it should work fine anyway?…

malmling
- 2,398
- 4
- 19
- 33