[reportlab-users] Implementation of drawImage anchoring
Robin Becker
robin at reportlab.com
Thu Aug 28 16:53:04 EDT 2008
Yoann Roman wrote:
......
>
> Am I just missing something?
>
> Thanks,
>
In this context anchor is saying what point of the image the x,y you
give refers to. The x and y are absolute as are the width and height.
In these cases x,y defines a reference point. Width & height define how
big the image should be. You choose to regard x,y, width & height as
defining a box. Unfortunately that's not how we regard them.
The so called box that you refer to doesn't actually exist, but if it
did and we could refer to its anchor point then there would be two
anchors and presumably all sorts of possibilities.
Since you have absolute control over this virtual box I don't believe
you really need control over what its x and y should anchor to.
If I renamed anchor to referencePoint would it make more sense for you?
--
Robin Becker
More information about the reportlab-users
mailing list