c# - Get updated polygon points after transformation -


I need to retrieve the new points of my polygon (inside the canvas) after a rotate transform.

Rotate Transformation Rotation = New Rotate Transform (Rotationangle); Polygon Reader Transform = Rotation;

As the rendererforms are applied, polygon The point collection does not get new values.

I have read about people trying to bind it to numeral collection (which is not ObsavableCollection ), but nothing useful to me met.

You can see the gradual form of converting all the points in the points collection of polygon You can get changed points from:

  using System.Linq; Var Converted Points = Polygon Points Selection (P => Rotation. Transform (P));  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -