linesh
Active member
Hi All,
I am trying to paint a sequence of images on a usercontrol using the CSharp Graphics() object and this usercontrol is embedded in a windows forms application. The image painting part of it works fine but the screen(monitor) seems to flicker every once in a while. It looks like its being forced to refresh periodically by the application.
Here is the code:
Bitmap bm = new Bitmap(BMImageBuffer);
GLiveGraphics.DrawImage(bm,destRect,srcRect,GraphicsUnit.Pixel);
The drawing in continuously done by a drawing thread..at the rate of 10-15 FPS.
I tried setting double-buffering options-it only prevented flicker inside the control but not the entire screen refresh. IS there anyway to prevent a monitor refresh()?
Thanks in advance
Linesh
I am trying to paint a sequence of images on a usercontrol using the CSharp Graphics() object and this usercontrol is embedded in a windows forms application. The image painting part of it works fine but the screen(monitor) seems to flicker every once in a while. It looks like its being forced to refresh periodically by the application.
Here is the code:
Bitmap bm = new Bitmap(BMImageBuffer);
GLiveGraphics.DrawImage(bm,destRect,srcRect,GraphicsUnit.Pixel);
The drawing in continuously done by a drawing thread..at the rate of 10-15 FPS.
I tried setting double-buffering options-it only prevented flicker inside the control but not the entire screen refresh. IS there anyway to prevent a monitor refresh()?
Thanks in advance
Linesh