Skip to main content
Legend
March 23, 2021
Answered

Transforming co-ordinates ( PDEPathGetData )

  • March 23, 2021
  • 1 reply
  • 812 views

Hello,

 

I would like to transform the data return by PDEPathGetData to the page co-ordinates.  The documentation said ....

"Note that it returns raw path data. If you want the points in page coordinates, concatenate the path data points with the PDEElement matrix obtained from PDEElementGetMatrix()."

 

I am not sure how to do this.

 

Thanks you.

 

P.

This topic has been closed for replies.
Correct answer Test Screen Name

Once you have the principles, ASFixedMatrixConcat and related methods will make sense. You should also read the "Graphics" chapter in the PDF Reference; it's hard to understand the PDFEdit world without knowing what's inside the PDF (though PDFEdit is an abstraction of the PDF structure, not a direct mapping).

1 reply

Legend
March 24, 2021
PickoryAuthor
Legend
March 24, 2021

Hello,

 

Thank you for your reply. 

 

It looks like I have a lot of learning to do. 🙂

 

Thanks.

 

P.

 

Edited to say. If you expand the messages you will see this link.

https://forum.patagames.com/posts/t501-What-Is-Transformation-Matrix-and-How-to-Use-It

 

This is useful.

 

Thank you.

 

P.

Test Screen NameCorrect answer
Legend
March 24, 2021

Once you have the principles, ASFixedMatrixConcat and related methods will make sense. You should also read the "Graphics" chapter in the PDF Reference; it's hard to understand the PDFEdit world without knowing what's inside the PDF (though PDFEdit is an abstraction of the PDF structure, not a direct mapping).