save graphics in system memory

Florian

Member
Joined
Nov 6, 2003
Messages
5
Another Question

When you draw circle in a picturebox, how can you save it, so that it isnt away after refreshing.
Is there a possibility to save all drawn graphics in something like a container or array. So that you can redraw or refresh with the array-contents.

HELP!
 
try something like:
Code:
Private SavedImages() as Bitmap

Sub SaveToImages(Byval imageToSave as Bitmap)
Redim Preserve SavedImages(Ubound(SavedImages + 1))
SavedImages(Ubound(SavedImages + 1)) = New Bitmap(imageToSave)
Call this every time you save an image, then theyre all stored in an array for you
End Sub
 
Back
Top