123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using PaintDotNet.Annotation.Enum;
- using System;
- using System.Drawing;
- using System.Windows.Forms;
- namespace PaintDotNet.Annotation.Other
- {
- /// <summary>
- /// 标注->自动标尺
- /// </summary>
- public class AutoRulerTool : ToolObject
- {
- public static void OnMouseDown(ISurfaceBox drawArea, MouseEventArgs e)
- {
- //if (drawArea.GetGainMultiple() == 0)
- //{
- // MessageBox.Show("请先设置放大倍数");
- // return;
- //}
- //else
- //{
- AutoRulerDraw newAutoRuler = new AutoRulerDraw(drawArea);
- newAutoRuler.ISurfaceBox = drawArea;
- AddNewObject(drawArea, newAutoRuler);
- drawArea.Refresh();
- //}
- }
- public static void OnMouseMove(ISurfaceBox drawArea, MouseEventArgs e)
- {
-
- }
- public static void OnMouseUp(ISurfaceBox drawArea, MouseEventArgs e)
- {
- }
-
- public static void OnMouseClick(ISurfaceBox drawArea, MouseEventArgs e)
- {
- }
- public static void beginWithNewObject()
- {
- }
-
- }
- }
|