S
SamSpade
Public Function PicCreateGraphics() As Graphics
'Client should dispose this
PicCreateGraphics = Graphics.FromImage(mDocumentImage)
mPicCreateGraphicsSaved = PicCreateGraphics 'Saved so I can later check
to see if it is still valid
End Function
Probably should be a Property but the above is the way the client gets a
Graphics object.
I save a copy because there is something the client should not do if he has
an active PicCreateGraphics object( that is, if he created one and hasn't
disposed it) and I want to check.
I want to raise an error if mPicCreateGraphicsSaved is not nothing and not
Disposed
How to check for Disposed.
Controls have an IsDisposed property but Graphics objects do not.
Thanks in advance
'Client should dispose this
PicCreateGraphics = Graphics.FromImage(mDocumentImage)
mPicCreateGraphicsSaved = PicCreateGraphics 'Saved so I can later check
to see if it is still valid
End Function
Probably should be a Property but the above is the way the client gets a
Graphics object.
I save a copy because there is something the client should not do if he has
an active PicCreateGraphics object( that is, if he created one and hasn't
disposed it) and I want to check.
I want to raise an error if mPicCreateGraphicsSaved is not nothing and not
Disposed
How to check for Disposed.
Controls have an IsDisposed property but Graphics objects do not.
Thanks in advance