public RoiLineElement(PointF pt1, PointF pt2) : base(pt1, pt2) { ShowArrow = true; DragHandleCollection = new DragHandleCollection(); DragHandleCollection.AddCustomDragHandle(DragHandleAnchor.MiddleLeft); DragHandleCollection.AddCustomDragHandle(DragHandleAnchor.MiddleCenter); DragHandleCollection.AddCustomDragHandle(DragHandleAnchor.MiddleRight); }
public RoiRectElement(float x, float y, float w, float h, float angle = 0f) : base(x, y, w, h, angle) { DragHandleCollection = new DragHandleCollection(); DragHandleCollection.AddDefaultDragHandle(); }
public RoiRectElement(RectangleF rect, float angle = 0f) : base(rect, angle) { DragHandleCollection = new DragHandleCollection(); DragHandleCollection.AddDefaultDragHandle(); }
public RoiPointElement(PointF pt) : base(pt) { DragHandleCollection = new DragHandleCollection(); DragHandleCollection.AddCustomDragHandle(DragHandleAnchor.MiddleCenter); }
public RoiImageElement(Bitmap image, RectangleF srcRect, RectangleF dstRect) : base(image, srcRect, dstRect) { DragHandleCollection = new DragHandleCollection(); DragHandleCollection.AddDefaultDragHandle(); }
public virtual DragHandle HitTest(Point point) { return(DragHandleCollection == null ? null : DragHandleCollection.HitTest(point)); }
public RoiRingElement(PointF cpt, float sradius, float eradius) : base(cpt, sradius, eradius) { DragHandleCollection = new DragHandleCollection(); DragHandleCollection.AddDefaultDragHandle(); }