StretchDraw?

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange

moke@napconet.com
User
Posts: 60
Joined: Fri Oct 24, 2008 5:17 pm

StretchDraw?

Post by moke@napconet.com »

Re posting as a seprate topic...

The stretchdraw method of IAxPage looks very much what ImagesTest.exe uses to accomplish a higher quality screen render, except it is in the AX component. Can you provide any samples of how to use this?

AxImages library overview » AxImages interfaces » IAxPage » StretchDrawDraw

StretchDraw draws the content of the page onto the device context, stretching it as specified by the source and destination rectangles, and the method and flags.

HRESULT StretchDraw(
OLE_HANDLE hDC,
LONG XDest,
LONG YDest,
LONG DestWidth,
LONG DestHeight,
LONG XSrc,
LONG YSrc,
LONG SrcWidth,
LONG SrcHeight,
LONG Flags,
AXC_ScaleMethod ScaleMethod
);
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: StretchDraw?

Post by Stefan - PDF-XChange »

Hello Moke,

Have you seen the VBAxImages.exe sample app? It contains a method "Image->Scale" which shows how you can scale images using Image-XChange ActiveX.

Best,
Stefan
moke@napconet.com
User
Posts: 60
Joined: Fri Oct 24, 2008 5:17 pm

Re: StretchDraw?

Post by moke@napconet.com »

Hi Stefan,
Yes i have seen and tried it... I think I have been asking the wrong question. let's back up a minute....

My isuue is this; When displaying a zoomed out or zoomed to fit view of an oversize document the image display quality is unaccaptable, quite poor actually. Even the thumbnail view presented in the OPEN dialog of VBAxImages.exe looks better than what I see when the image is actually open. This issue must have come up before but I cannot find a post about it. It seems like a pretty basic thing.

I have used several other SDK's that do not have this issue or have guidlines to address it, but Image exchange has other features I'd like to take advantage of. How can I make these images which are oversized Tiff G4 display smoothly?

Thanks
User avatar
Vasyl - PDF-XChange
Site Admin
Posts: 2448
Joined: Thu Jun 30, 2005 4:11 pm

Re: StretchDraw?

Post by Vasyl - PDF-XChange »

Hi, Moke.

In the near future we will improve the AxImages control for you (look to the updated control in the next build).
We are planning to add new method such as:
ctrl.SetDrawScaleMethod(AXC_ScaleMethod ScaleMethod);

Please wait for next build (upcoming).

Best
Regards.
PDF-XChange Co. LTD (Project Developer)

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
moke@napconet.com
User
Posts: 60
Joined: Fri Oct 24, 2008 5:17 pm

Re: StretchDraw?

Post by moke@napconet.com »

Thank you Vasyl. You might guess my next question :) Any idea on the time frame? I have an application I need to finish and just need some idea which direction to take.
Thanks
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: StretchDraw?

Post by Stefan - PDF-XChange »

Hello moke,

The date that I have is 15th November, so it should be next Monday if everything goes to plan.

Best,
Stefan
moke@napconet.com
User
Posts: 60
Joined: Fri Oct 24, 2008 5:17 pm

Re: StretchDraw?

Post by moke@napconet.com »

Great! I will be waiting and thanks!
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: StretchDraw?

Post by Stefan - PDF-XChange »

:)
moke@napconet.com
User
Posts: 60
Joined: Fri Oct 24, 2008 5:17 pm

Re: StretchDraw?

Post by moke@napconet.com »

Is there any news concerning the next build with the feature mentioned here?
User avatar
Stefan - PDF-XChange
Site Admin
Posts: 19913
Joined: Mon Jan 12, 2009 8:07 am

Re: StretchDraw?

Post by Stefan - PDF-XChange »

Hello moke,

It should be released any moment now, so as soon as the testing completes with satisfactory results we will prepare and release the new build.

Best,
Stefan
moke@napconet.com
User
Posts: 60
Joined: Fri Oct 24, 2008 5:17 pm

Re: StretchDraw?

Post by moke@napconet.com »

Can anyone tell me if these features have been implemented?

I see a 11/25/2010 build with no release notes and help files have not been updated. After downloading I imagestest.exe has a display option that looks like what I need but there are no examples i can find or documetation.
moke@napconet.com
User
Posts: 60
Joined: Fri Oct 24, 2008 5:17 pm

Re: StretchDraw?

Post by moke@napconet.com »

AxView.DrawScaleMethod = AXI_ScaleMethod_Bilinear
Looks like the ticket here if anyone is interested.

It looks like this simple command did the trick for me.... Not sure how i mised it but it does work. It is pretty slow though so if there is anything that might speed it up i'd love to hear about it.
MikE
User avatar
Paul - PDF-XChange
Site Admin
Posts: 7371
Joined: Wed Mar 25, 2009 10:37 pm

Re: StretchDraw?

Post by Paul - PDF-XChange »

Hi Mike

thanks for the feedback. I've asked the dev team to comment on the performance. I'll let you know here if anything useful comes of it.

regards
Best regards

Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: StretchDraw?

Post by Corwin - Tracker Sup »

Hello Mike,

As I can see here - bilinear method is fast enough. How exactly you have test it?
moke@napconet.com
User
Posts: 60
Joined: Fri Oct 24, 2008 5:17 pm

Re: StretchDraw?

Post by moke@napconet.com »

Seeing the reply I tested after fresh reboot. It did go a bit faster but still a noticable lag. I tested using the VBimages sample code with a 1 bit b&W g4 tiff it is a large page size and possibly this may be why the lag occurs?

Please don't get me wrong I am very glad for the improvement! I am also plesaed that your developement team responds so quickly to users and that there are other features here that make me want to stay with Image Xchange. But I do have some experince with other products that already have a similar feature and are noticeably faster on the same file.
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: StretchDraw?

Post by Corwin - Tracker Sup »

Can you send us this image file?

Thanks.
moke@napconet.com
User
Posts: 60
Joined: Fri Oct 24, 2008 5:17 pm

Re: StretchDraw?

Post by moke@napconet.com »

Here you go...
You do not have the required permissions to view the files attached to this post.
User avatar
Chris - PDF-XChange
Site Admin
Posts: 798
Joined: Tue Apr 14, 2009 11:33 pm

Re: StretchDraw?

Post by Chris - PDF-XChange »

Thanks Moke,

One of our developers will be in touch with you shortly.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.


Chris Attrell
Tracker Sales & Support North America
http://www.tracker-software.com
Corwin - Tracker Sup
User
Posts: 664
Joined: Tue Nov 14, 2006 12:23 pm

Re: StretchDraw?

Post by Corwin - Tracker Sup »

As you will agree this image file has pretty large resolution, so I'm afraid that we cannot make bilinear stretch method faster.
moke@napconet.com
User
Posts: 60
Joined: Fri Oct 24, 2008 5:17 pm

Re: StretchDraw?

Post by moke@napconet.com »

If that is the verdict ok... I do think you should be aware, there are at least 2 comptative products that are much faster. However, I like the other features and will stick with Image-Xchange. I should also point out both those products use around 20% more memory than yours so maybe that's the why they are faster? Anyway... Thanks for the improvement, maybe in the future spped will get better. :)

Mike
User avatar
Lzcat - Tracker Supp
Site Admin
Posts: 677
Joined: Thu Jun 28, 2007 8:42 am

Re: StretchDraw?

Post by Lzcat - Tracker Supp »

If you need draw same image several times (with same zoom) - it will be better to create scaled copy and then draw it. First time this will take a bit longer, but the consecutive drawings would become much faster.
HTH.
Victor
Tracker Software
Project manager

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
moke@napconet.com
User
Posts: 60
Joined: Fri Oct 24, 2008 5:17 pm

Re: StretchDraw?

Post by moke@napconet.com »

A good suggestion, especially for "zoom to fit". I might just do that. If I load the doc in zoom to fit as default and create the scaled image when finished loading it might be less noticeable. Thanks.
User avatar
Paul - PDF-XChange
Site Admin
Posts: 7371
Joined: Wed Mar 25, 2009 10:37 pm

Re: StretchDraw?

Post by Paul - PDF-XChange »

hey moke@napconet.com

be sure to let us know how that works out for you.

:-)
Best regards

Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com