Advertisement

05.12.2008 at 08:37PM PDT, ID: 23396637
[x]
Attachment Details

TJPEGImage.SavetoStream is much slower than TBitmap.SavetoStream in Delphi ActiveX component. Any idea?

Asked by pcssecure in Graphics and Delphi Programming, Delphi Programming

Hi Experts,
Strange problem in OCX written in Delphi 6.
What I'm trying to do is to send a Jpeg image to the host as OleVariant.
My Original image is in TBitmap and I assign to TJPEGImage to reduce the size.

TJPEGImage.SaveToStream() takes about 500 ms for a 200k image while
TBitmap.SavetoStream takes only about 120 ms for 10MB image.
Whats going on?

I need to send the image as Jpeg to the host. Any solution to reduce the time to transfer?.
Start Free Trial
[+][-]05.13.2008 at 12:16AM PDT, ID: 21552874

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]05.13.2008 at 05:06AM PDT, ID: 21554161

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Graphics and Delphi Programming, Delphi Programming
Sign Up Now!
Solution Provided By: developmentguru
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05.13.2008 at 10:16PM PDT, ID: 21561438

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628