예제 #1
0
 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);
 }
예제 #2
0
 public RoiRectElement(float x, float y, float w, float h, float angle = 0f) : base(x, y, w, h, angle)
 {
     DragHandleCollection = new DragHandleCollection();
     DragHandleCollection.AddDefaultDragHandle();
 }
예제 #3
0
 public RoiRectElement(RectangleF rect, float angle = 0f) : base(rect, angle)
 {
     DragHandleCollection = new DragHandleCollection();
     DragHandleCollection.AddDefaultDragHandle();
 }
예제 #4
0
 public RoiPointElement(PointF pt) : base(pt)
 {
     DragHandleCollection = new DragHandleCollection();
     DragHandleCollection.AddCustomDragHandle(DragHandleAnchor.MiddleCenter);
 }
예제 #5
0
 public RoiImageElement(Bitmap image, RectangleF srcRect, RectangleF dstRect) : base(image, srcRect, dstRect)
 {
     DragHandleCollection = new DragHandleCollection();
     DragHandleCollection.AddDefaultDragHandle();
 }
예제 #6
0
 public virtual DragHandle HitTest(Point point)
 {
     return(DragHandleCollection == null ? null : DragHandleCollection.HitTest(point));
 }
예제 #7
0
 public RoiRingElement(PointF cpt, float sradius, float eradius) : base(cpt, sradius, eradius)
 {
     DragHandleCollection = new DragHandleCollection();
     DragHandleCollection.AddDefaultDragHandle();
 }