Click to See Complete Forum and Search --> : doublebuffer


Torsten Lund
March 6th, 1999, 09:52 AM
Hi !

I have a problem with applets. I need to know how to make a doublebuffer,

so I can eliminate the #¤"¤%/ falshing problem.....

I have overloaded update(Graphics g) but i dont know how make the offscreen buffer

and how to paste the images onto the screen.....


And I have another problem... I haven't been able to find info on the objects

Dimension...... I have searched the API's......


Please use my email to contact me.......

THANKS !


Im danish, so if my English isn't that good..... you now know why ! :o)

SINGH
March 8th, 1999, 05:19 AM
Hi,

For doublebuffering,you've to create the handles for the images thru getGraphics.Suppose you want to draw a rectangle on a screen.Get the handles for rectangle and screen(I mean two images).Draw the rectangle on one handle.Now draw this image on the screen using screen handle.

Now instead of drawing the rectangle everytime,you can directly draw tru this image.

In case of any problem you r most welcome..

Singh