Dit is een snippet van mijn code:
Mij probleem is dat het bestand wordt opgeslagen als .jpg alleen met de format van een bmp file.
Heeft iemand hier ervaring mee?
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
| <%@ Import Namespace="System.Drawing" %>
<%@ Import Namespace="System.Drawing.Imaging" %>
Dim image as System.Drawing.Image
Dim thumb as System.Drawing.Image
image = System.Drawing.Image.FromFile(sFullPath)
thumb = image.GetThumbnailImage(CInt(image.width * .25),CInt(image.height * .25), Nothing, Nothing)
thumb.Save(sPath & "thumb\" & sFile, ImageFormat.Jpeg)
image.Dispose()
thumb.Dispose()
image = Nothing
thumb = Nothing |
Mij probleem is dat het bestand wordt opgeslagen als .jpg alleen met de format van een bmp file.
Heeft iemand hier ervaring mee?