Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Small tip on using images
Message
De
12/04/2016 03:40:44
 
 
À
11/04/2016 17:28:10
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:
01634692
Vues:
33
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform