问题描述
Windows窗体。
我有一个绘制箭头的现有代码。现在我需要一个带X的新箭头(代表失败的箭头)。感谢任何帮助。
我尝试过:
double xAxis = arrow.StartCoordinate.x;
double yAxis = arrow.StartCoordinate.y;
double xeAxis = arrow.EndCoordinate.x;
double yeAxis = arrow.EndCoordinate.y;
double lineCentre = arrowLine.BBox.AsRectangleF.Width / 8;
Point3d point1 = new Point3d(xAxis +(lineCentre + lineCentre) ),yAxis + lineCentre);
Point3d point2 = new Point3d(xeAxis - (lineCentre + lineCentre),yeAxis - lineCentre);
Point3d point3 = new Point3d(xAxis + (lineCentre + lineCentre),yAxis - lineCentre);
Point3d point4 = new Point3d(xeAxis - (lineCentre + lineCentre),yeAxis + lineCentre);
Windows form.
i have a existing code that draw's arrow. now i need to have a new arrow with X (which represents failed arrow). Any help is appreciated.
What I have tried:
double xAxis = arrow.StartCoordinate.x;
double yAxis = arrow.StartCoordinate.y;
double xeAxis = arrow.EndCoordinate.x;
double yeAxis = arrow.EndCoordinate.y;
double lineCentre = arrowLine.BBox.AsRectangleF.Width/8;
Point3d point1 = new Point3d(xAxis + ( lineCentre + lineCentre ), yAxis + lineCentre );
Point3d point2 = new Point3d(xeAxis - (lineCentre + lineCentre ), yeAxis - lineCentre);
Point3d point3 = new Point3d(xAxis + (lineCentre + lineCentre ), yAxis - lineCentre);
Point3d point4 = new Point3d(xeAxis - ( lineCentre + lineCentre ), yeAxis + lineCentre);
推荐答案
这篇关于如何使用C#绘制/绘制失败的箭头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!