Progressive jpg while loading

Posted on 2008-06-26
Last Modified: 2013-12-25

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

Question by:chiii0ut
LVL 10

Accepted Solution

bluefezteam earned 250 total points
Comment Utility
"RenderProgressive Not used in GDI+ version 1.0. "

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

Author Closing Comment

Comment Utility
Thanks for the clarification

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
API Soap Calls 4 55
Select2 jquery help 9 41
Spacing between controls 4 15
increase words that display in widget 6 11
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now