StretchDraw?
Moderators: PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
-
- User
- Posts: 60
- Joined: Fri Oct 24, 2008 5:17 pm
StretchDraw?
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
);
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
);
-
- Site Admin
- Posts: 19913
- Joined: Mon Jan 12, 2009 8:07 am
Re: StretchDraw?
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
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
-
- User
- Posts: 60
- Joined: Fri Oct 24, 2008 5:17 pm
Re: StretchDraw?
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
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
-
- Site Admin
- Posts: 2448
- Joined: Thu Jun 30, 2005 4:11 pm
Re: StretchDraw?
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.
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.
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 60
- Joined: Fri Oct 24, 2008 5:17 pm
Re: StretchDraw?
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

Thanks
-
- Site Admin
- Posts: 19913
- Joined: Mon Jan 12, 2009 8:07 am
Re: StretchDraw?
Hello moke,
The date that I have is 15th November, so it should be next Monday if everything goes to plan.
Best,
Stefan
The date that I have is 15th November, so it should be next Monday if everything goes to plan.
Best,
Stefan
-
- User
- Posts: 60
- Joined: Fri Oct 24, 2008 5:17 pm
Re: StretchDraw?
Great! I will be waiting and thanks!
-
- User
- Posts: 60
- Joined: Fri Oct 24, 2008 5:17 pm
Re: StretchDraw?
Is there any news concerning the next build with the feature mentioned here?
-
- Site Admin
- Posts: 19913
- Joined: Mon Jan 12, 2009 8:07 am
Re: StretchDraw?
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
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
-
- User
- Posts: 60
- Joined: Fri Oct 24, 2008 5:17 pm
Re: StretchDraw?
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.
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.
-
- User
- Posts: 60
- Joined: Fri Oct 24, 2008 5:17 pm
Re: StretchDraw?
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
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
-
- Site Admin
- Posts: 7371
- Joined: Wed Mar 25, 2009 10:37 pm
Re: StretchDraw?
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
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
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: StretchDraw?
Hello Mike,
As I can see here - bilinear method is fast enough. How exactly you have test it?
As I can see here - bilinear method is fast enough. How exactly you have test it?
-
- User
- Posts: 60
- Joined: Fri Oct 24, 2008 5:17 pm
Re: StretchDraw?
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.
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.
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: StretchDraw?
Can you send us this image file?
Thanks.
Thanks.
-
- User
- Posts: 60
- Joined: Fri Oct 24, 2008 5:17 pm
Re: StretchDraw?
Here you go...
You do not have the required permissions to view the files attached to this post.
-
- Site Admin
- Posts: 798
- Joined: Tue Apr 14, 2009 11:33 pm
Re: StretchDraw?
Thanks Moke,
One of our developers will be in touch with you shortly.
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
Chris Attrell
Tracker Sales & Support North America
http://www.tracker-software.com
-
- User
- Posts: 664
- Joined: Tue Nov 14, 2006 12:23 pm
Re: StretchDraw?
As you will agree this image file has pretty large resolution, so I'm afraid that we cannot make bilinear stretch method faster.
-
- User
- Posts: 60
- Joined: Fri Oct 24, 2008 5:17 pm
Re: StretchDraw?
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

Mike
-
- Site Admin
- Posts: 677
- Joined: Thu Jun 28, 2007 8:42 am
Re: StretchDraw?
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.
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.
Tracker Software
Project manager
Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
-
- User
- Posts: 60
- Joined: Fri Oct 24, 2008 5:17 pm
Re: StretchDraw?
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.
-
- Site Admin
- Posts: 7371
- Joined: Wed Mar 25, 2009 10:37 pm
Re: StretchDraw?
Best regards
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com
Paul O'Rorke
PDF-XChange Support
http://www.pdf-xchange.com