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 TmpBitmapGraphi cs As Graphics = PictureBoxPic.C reateGraphics
Dim TmpBitmap As New Drawing.Bitmap( PictureBoxPic.C lientSize.Width ,
PictureBoxPic.C lientSize.Heigh t, TmpBitmapGraphi cs)
TmpBitmapGraphi cs.Dispose() 'Did the above to preserver the PixelFormat
TmpBitmapGraphi cs = Graphics.FromIm age(TmpBitmap)
'This also works (2 lines)
Dim TmpBitmap As New Drawing.Bitmap( PictureBoxPic.C lientSize.Width ,
PictureBoxPic.C lientSize.Heigh t)
Dim TmpBitmapGraphi cs As Graphics = Graphics.FromIm age(TmpBitmap)
I'm guessing there is a difference that I'm just not aware of.
Can someone enlighten me?
Thanks
'This works (4 lines)
Dim TmpBitmapGraphi cs As Graphics = PictureBoxPic.C reateGraphics
Dim TmpBitmap As New Drawing.Bitmap( PictureBoxPic.C lientSize.Width ,
PictureBoxPic.C lientSize.Heigh t, TmpBitmapGraphi cs)
TmpBitmapGraphi cs.Dispose() 'Did the above to preserver the PixelFormat
TmpBitmapGraphi cs = Graphics.FromIm age(TmpBitmap)
'This also works (2 lines)
Dim TmpBitmap As New Drawing.Bitmap( PictureBoxPic.C lientSize.Width ,
PictureBoxPic.C lientSize.Heigh t)
Dim TmpBitmapGraphi cs As Graphics = Graphics.FromIm age(TmpBitmap)
Comment