Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Small tip on using images
Message
From
12/04/2016 03:40:44
 
 
To
11/04/2016 17:28:10
General information
Forum:
ASP.NET
Category:
Pictures and Image processing
Environment versions
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01634620
Message ID:
01634692
Views:
34
>>That's where I looked. No 'olImage'
>
>It is the line before the last one.

You typed 'olImage' - that's oImage :-}

IAC, it's irrelevant.
Dim loImage As System.Drawing.Bitmap = New Drawing.Bitmap(nCropWidth, nCropHeight)
oImage = loImage.Clone
loImage.Dispose()
is functionally identical to:
Using loImage As New Drawing.Bitmap(nCropWidth, nCropHeight)
      oImage = loImage.Clone
End Using
Only difference is that in the second usage loImage will be disposed even if the 'oImage=loImage.Clone' causes an exception
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform