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!
![]() |
Set the current transformation matrix |
Post Reply
|
| Author | ||
tonyedgecombe
Beginner
Joined: 25 Sep 09 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Topic: Set the current transformation matrixPosted: 17 Dec 13 at 12:52PM |
|
|
Is there a way to set the current transformation matrix so that all subsequent drawing operations are transformed.
|
||
![]() |
||
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 18 Dec 13 at 8:57AM |
|
|
Basically the Draw functions add drawing commands to the end of the currently select contentstream. You can use feature to create your own content stream, see the transformation matrix and start using it. QP.NewContentStream QP.SaveState // saves the current drawing state including transformation matrix. QP.SetContentStreamFromString(' 10 0 0 10 141.7323 572.5984 cm '); .... do your drawing here. Can use any QPL drawing function but it will be affected by the transformation matrix of cours. QP.LoadState // restores to original transformation matrix. Andrew.
|
||
![]() |
||
tonyedgecombe
Beginner
Joined: 25 Sep 09 Status: Offline Points: 3 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 Dec 13 at 1:14PM |
|
|
Thanks for that.
I had to replace:
with
The SaveState method wasn't inserting the q operator, I'm not sure if this is because I'm doing something wrong or if it's a bug. Tony |
||
![]() |
||
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
Posted: 19 Dec 13 at 1:42PM |
|
|
Tony, Andrew.
|
||
![]() |
||
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