Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
DrawRotatedImage, Centering, FitImage |
Post Reply |
Author | |
PaladinTodd
Beginner Joined: 28 Feb 06 Status: Offline Points: 4 |
Post Options
Thanks(0)
Posted: 28 Feb 06 at 1:06PM |
I was attempting to draw an image rotated and centered onto a PDF. The actual image would vary and was not under my control - the user can upload any size image. I went through a lot of brain damage trying to make FitImage work, but could not do it. I ended up using DrawRotatedImage and got it to work with a little bit of trouble. Here's the code in case anyone gets stuck with the same problem (Visual FoxPro code). PRIVATE lMaxHeight, lMaxWidth, lWidth, lHeight, lAdj
lPDFX = the left edge of the image. LPDFY = the mid-point where you want things to center around. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store