|
@@ -285,12 +285,12 @@ namespace ComPDFKit.Tool.DrawTool
|
|
|
{
|
|
|
RotateTransform transform = new RotateTransform();
|
|
|
transform.Angle = angle;
|
|
|
- if(hitControlType==PointControlType.Body || hitControlType==PointControlType.Line)
|
|
|
+ // if(hitControlType==PointControlType.Body || hitControlType==PointControlType.Line)
|
|
|
{
|
|
|
rotateCenter.X = drawRect.Left + drawRect.Width / 2;
|
|
|
rotateCenter.Y = drawRect.Top + drawRect.Height / 2;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
transform.CenterX = rotateCenter.X;
|
|
|
transform.CenterY = rotateCenter.Y;
|
|
|
|
|
@@ -316,7 +316,7 @@ namespace ComPDFKit.Tool.DrawTool
|
|
|
|
|
|
Pen PointPen = DrawParam.AnnotPointPen;
|
|
|
drawDC.DrawLine(PointPen, new Point(centerX, drawRect.Top), new Point(centerX, drawRect.Top - rotateline));
|
|
|
- drawDC.DrawEllipse(PointPen.Brush, PointPen, new Point(centerX, drawRect.Top - rotateline), pointSize * 2, pointSize * 2);
|
|
|
+ drawDC.DrawEllipse(PointPen.Brush, PointPen, new Point(centerX, drawRect.Top - rotateline), RotateSize, RotateSize);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -851,7 +851,7 @@ namespace ComPDFKit.Tool.DrawTool
|
|
|
|
|
|
Point rotatePoint = new Point(centerX, drawRect.Top - rotateline);
|
|
|
Vector checkVector = point - rotatePoint;
|
|
|
- if (checkVector.Length <= pointSize * 2)
|
|
|
+ if (checkVector.Length <= RotateSize)
|
|
|
{
|
|
|
return PointControlType.Rotate;
|
|
|
}
|