Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Progressive jpg while loading

Posted on 2008-06-26
2
Medium Priority
?
351 Views
Last Modified: 2013-12-25
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
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

Open in new window

0
Comment
Question by:chiii0ut
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 10

Accepted Solution

by:
bluefezteam earned 1000 total points
ID: 21874781
http://msdn.microsoft.com/en-us/library/system.drawing.imaging.encodervalue.aspx
"RenderProgressive Not used in GDI+ version 1.0. "

I'm sure this is because it renders progressive by default?
0
 
LVL 3

Author Closing Comment

by:chiii0ut
ID: 31470934
Thanks for the clarification
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Because your company can’t afford for you to make SEO mistakes, you’ll want to ensure you’re taking the right steps each and every time you post a new piece of content. This list of optimization do’s and don’ts can help you become an SEO wizard.
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will learn how to count occurrences of each item in an array.

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question