chiii0ut
asked on
Progressive jpg while loading
Hi
I've been using system.drawing to resize jpgs for a website. Is there any method in there for progressive browser display of the image while loading? I used to optimize images in Fireworks but now want to automate the task.
Thanks Paul
I've been using system.drawing to resize jpgs for a website. Is there any method in there for progressive browser display of the image while loading? I used to optimize images in Fireworks but now want to automate the task.
Thanks Paul
Private Sub CopyToDir(ByVal dimW As Integer, ByVal dimH As Integer, ByVal destn As String)
Dim sourceBitmap As New Bitmap(currentImage)
Dim destBitmap As New Bitmap(dimW, dimH)
destBitmap.SetResolution(72, 72)
Dim destGraphic As Graphics = Graphics.FromImage(destBitmap)
destGraphic.DrawImage(sourceBitmap, 0, 0, _
destBitmap.Width + 1, destBitmap.Height + 1)
destBitmap.Save(destn, ImageFormat.Jpeg)
End Sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER