Problems by double buffer

Joined
Jan 20, 2008
Messages
1
Reaction score
0
i have somethink painted in jCanvasPanel1, and i want to use buffer1 as a buffer when painting, but before i send buffer1 to foo procedure, i will, that it has the same painting content as the jCanvasPanel1

so for example : there is a rectangle drawen in jCanvasPanel1. The function DRAW.foo, paints an circle, and i want to have the circle and the rectangle in the final...

i want to copy the graphical content from jCanvasPanel1 to buffer1 before its use in foo


PHP:
        Image buffer1;
        buffer1 = createImage(1000,1000);
        
        DRAW.foo(buffer1);
                
        jCanvasPanel1.getGraphics().drawImage(buffer1, 0, 0, this);

thanks:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top