Stumbling through I find both of the following appear to work the same.
I'm guessing there is a difference that I'm just not aware of.
Can someone enlighten me?
Thanks
'This works (4 lines)
Dim TmpBitmapGraphics As Graphics = PictureBoxPic.CreateGraphics
Dim TmpBitmap As New Drawing.Bitmap(PictureBoxPic.ClientSize.Width,
PictureBoxPic.ClientSize.Height, TmpBitmapGraphics)
TmpBitmapGraphics.Dispose() 'Did the above to preserver the PixelFormat
TmpBitmapGraphics = Graphics.FromImage(TmpBitmap)
'This also works (2 lines)
Dim TmpBitmap As New Drawing.Bitmap(PictureBoxPic.ClientSize.Width,
PictureBoxPic.ClientSize.Height)
Dim TmpBitmapGraphics As Graphics = Graphics.FromImage(TmpBitmap)