Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Size of the image when resizing
Message
De
31/05/2010 23:44:52
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Size of the image when resizing
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01466761
Message ID:
01466761
Vues:
106
I use this to resize an image:
loGraphics = System.Drawing.Graphics.FromImage(loImage)
loGraphics.InterpolationMode = Drawing.Drawing2D.InterpolationMode.HighQualityBicubic
loGraphics.DrawImage(oImage, 0, 0, loImage.Width, loImage.Height)
This works well. However, if I do the resize manually in LView Pro, I obtain a file much smaller. Basically, the file is 109 KB in 600x900. If I go in LView Pro and resize that to 500x750, I obtain a file of 39 KB. This is with setting Compression Quality Factor at 75. If I do it with the given code, I end up with a file size of 188 KB. So, doing it in .NET results in a file size of about 4.5 times bigger. What can I do to obtain pretty much the same sizing as in LView Pro? Because, at that rate, it means I will run out of space 4.5 times faster.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform