bucz

I want to draw some plot. I want to draw some objects, like grid, once and then only paste them on puropse into the target graphics context in OnPaint().

How to make a kind of "buffer" for this image of the grid



Re: Visual C++ General Graphics - a hidden buffer

Ramkrishna Pawar

Are you familier with the concept of Memory Device Context






Re: Visual C++ General Graphics - a hidden buffer

bucz

I have managed to do it with Bitmap s for now



Re: Visual C++ General Graphics - a hidden buffer

Ramkrishna Pawar

How






Re: Visual C++ General Graphics - a hidden buffer

bucz

you create a with a size of the screen

then get raphics of that by Graphics::FromImage

then paint on bitmap

and in the end - copy a desired part of bitmap to the screen