Hello, I am doing plugin and I have a problem with the values of the coordinates.
For example, drawing a rectangle of 64 xs 64 on the Dicom image, and when I move that rectangle with mouse, also changes to the values of the coordinates and the size to me, that after moving it is left me in 11,45267 xs 11,45267.
Example, drawing a rectangle in position (100; 100) (topleft)
I hardly move the rectangle with mouse, and it says to me that it is in the coordinates (146;18) (topleft), that are erroneous values of coordinates.
What I need is to obtain a part of the image, the part that I select with a rectangle, that is to say I need to obtain the coordinates of the rectangle to trim that part of the image.
Part of the code:
CompositeGraphic compositeGCP = new CompositeGraphic();
RectanglePrimitive gcp = new RectanglePrimitive();
gcp.CoordinateSystem = CoordinateSystem.Destination;
gcp.TopLeft = new PointF(100, 100);
gcp.BottomRight = new PointF(163, 163);
MoveControlGraphic rectangleMoveControlGraphic = new MoveControlGraphic(gcp);
BoundableResizeControlGraphic rectangleResizeControlGraphic = new BoundableResizeControlGraphic(rectangleMoveControlGraphic);
// Add the rectangle to the composite
compositeGCP.Graphics.Add(rectangleResizeControlGraphic);