Two Pilots™    Home  |  Navigation  |  Site Map  |  Products  |  Download  |  Prices  |  For Partners  |  Support


All forums · Statistics · Search ·

Two Pilots forum / For software developers / LoadImageFromFile - Resize - PDFPAGE_ShowImage
Author Message
donr
# Posted: 18 Aug 2007 15:35


I need to load an image from a file and then resize it (make a thumbnail). I don't know the height and width of the original image at load time. How do I get the correct ratio for resizing?

Stanislav
Member
# Posted: 20 Aug 2007 02:19


Hello donr,

Unfortunately there is no such function in the library.
Please contact us using out support form:
http://www.colorpilot.com/support.html and specify which language you're using, i hope we'll be able to prepare example for you.

Meantime here you can find example "How to convert image to PDF using VB.NET"

http://colorpilot.com/examples.php

Best regards,
Stanislav
Two Pilots
www.colorpilot.com

Please note that we change our email address from time to time
to reduce spam. So if it stops working, just visit our feedback form:
http://www.colorpilot.com/support.html

Stanislav
Member
# Posted: 20 Aug 2007 04:31


Hello donr,

In the latest versions of the library there are several functions which can be useful for images processing:

GetImageWidth
GetImageHeight
GetImageResolution

Using themyou can get original image size, then scale dimensions properly in PDFPAGE_ShowImage.

Best regards,
Stanislav
Two Pilots
www.colorpilot.com

Please note that we change our email address from time to time
to reduce spam. So if it stops working, just visit our feedback form:
http://www.colorpilot.com/support.html

 

 

Powered by miniBB 2.0 RC7 © 2001-2004 Page creation time (sec.): 0.014

 

Page top