dkaip wrote:As i Just see is code ok? from top left to bottom down?
It works, but is the right way?
Code: Select all
double x=aFile.GetX();
double y=aFile.GetY();
aFile.Line(x,y,aFile.GetLastImageBottomRightX(),aFile.GetLastImageBottomRightY());
When calling method
Image to insert an image into the PDF document, you have to specify explicitly where to place the top left corner of the image via arguments
x and
y. If you want to draw a line from that position to the bottom right corner, you have to remember the coordinates of the top left corner, because the current position (which you get from
GetX and
GetY) could possibly change, except that no output action other than inserting the image takes place before you draw the line.
Regards,
Ulrich