コード例 #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
ファイル: Element.cs プロジェクト: jinlei59/System.Work
 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();
 }