Draw image in memory

D

Danilo

Hi,
I need draw a image in memory with the method Like drawrectange,drawstring,
ecc.. next i want put this image in a form Graphics.

thanks
 
C

Crirus

dim img as Bitmap
dim gr as graphics=graphics.fromimage(img)
gr.drawRectangle(.....)

gr.dispose()

Now you have a bitmap drawed just ready to draw it on paint event of a
window

Regards,
Crirus
 

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

Top