Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Small tip on using images
Message
De
12/04/2016 10:33:57
 
 
À
12/04/2016 03:40:44
Information générale
Forum:
ASP.NET
Catégorie:
Photos et traitement d'images
Versions des environnements
Environment:
VB 9.0
OS:
Windows 8.1
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01634620
Message ID:
01634699
Vues:
27
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform