IDrawingCanvas Transform Problem

Posted by: markturn on 3 August 2017, 3:20 pm EST

  • Posted 3 August 2017, 3:20 pm EST

    Hi,



    I am developing custom report items that require text to drawn at an angle. I have been trying to do this by using the RotateAt transform. It appears that everytime the transform is assigned to canvas.Transform it appears not to assign the transform, but to add the transform to a list of transforms instead. An example of the code I am using is shown below. This code is run a number of times and but only the first time is the text drawn at 45 degree. The time the text is drawn it is at 90 degrees and so on.



    MatrixEx m = new MatrixEx();

    m.RotateAt(45, new PointFEx(2000, 2000));

    canvas.Transform = m;



    Also I am not sure if the follow is meant to reset the transform, for the transform still happens.

    canvas.Transform.Reset();



    Thanks



    Mark





  • Replied 3 August 2017, 3:20 pm EST

    Hello,

    I am working on your query. I would get back to you soon.

    Thanks,
    Manpreet Kaur
  • Replied 3 August 2017, 3:20 pm EST

    Hello,

    I would request you to provide me a sample application depicting your issue so that I can look into the implementation of the custom report item and replicate the issue at my end to debug it further.

    Thanks,
    Manpreet Kaur
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels