Hi, PdfGraphicsState.AddTransform using only XMatrixOrder.Prepend, so it has a different result when trying to run the code in 1.32 and 1.5 versions:
XFont fontRegular = new XFont("Times New Roman", 20, XFontStyle.Regular);
state = gfx.Save(); gfx.TranslateTransform(100, 100); gfx.ScaleTransform(0.5, XMatrixOrder.Prepend); gfx.DrawString("Test1", fontRegular, XBrushes.DarkSlateGray, 0, 30); gfx.Restore(state);
state = gfx.Save(); gfx.TranslateTransform(200, 200); gfx.ScaleTransform(0.5, 0.5, XMatrixOrder.Append); //<==== here we have got difference gfx.DrawString("Test3", fontRegular, XBrushes.DarkSlateGray, 0, 30); gfx.Restore(state); state = gfx.Save();
Is there is a reason why append is not processed like it is done in provided example (AddTransform.png)
Attachments: |
File comment: fixed AddTransform function
fixed AddTransform.png [ 16.99 KiB | Viewed 41377 times ]
|
File comment: Result ver:1.5
result ver.1.5.png [ 4.99 KiB | Viewed 41377 times ]
|
File comment: Result ver:1.32
result ver.1.32.png [ 3.08 KiB | Viewed 41377 times ]
|
|