Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Small tip on using images
Message
From
12/04/2016 10:33:57
 
 
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:
01634699
Views:
29
>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

Thanks
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform