public static ulong BuildCommonLineByLayer(LJJSPoint ptStart, LJJSPoint ptEnd, double penWidth) { gPoint pStart = FigureStrucConvert.ConvertLJJSPointToGPoint(ptStart); gPoint pEnd = FigureStrucConvert.ConvertLJJSPointToGPoint(ptEnd); return(VectorDrawHelper.CommonLineByLayer(DrawCommonData.activeDocument, pStart, pEnd, penWidth, "", "")); }
public static ulong BuildCommonSoldLine(LJJSPoint ptStart, LJJSPoint ptEnd, int lineColor, double penWidth) { gPoint pStart = FigureStrucConvert.ConvertLJJSPointToGPoint(ptStart); gPoint pEnd = FigureStrucConvert.ConvertLJJSPointToGPoint(ptEnd); return(VectorDrawHelper.CommonLine(DrawCommonData.activeDocument, pStart, pEnd, penWidth, lineColor, DrawCommonData.SolidLineTypeName, "")); }
public static void VerSolidArrow(LJJSPoint basePoint, double width, double height, int direction) { Vertexes controlPtCollection = new Vertexes(); gPoint pt2 = new gPoint(basePoint.XValue + width, basePoint.YValue); gPoint pt3 = new gPoint(basePoint.XValue, basePoint.YValue + direction * height); gPoint pt4 = new gPoint(basePoint.XValue - width, basePoint.YValue); controlPtCollection.Add(FigureStrucConvert.ConvertLJJSPointToGPoint(basePoint)); controlPtCollection.Add(pt2); controlPtCollection.Add(pt3); controlPtCollection.Add(pt4); // VectorDrawHelper.BuildSpineWithSolidHatch(DrawCommonData.activeDocument, controlPtCollection, VectorDraw.Professional.Constants.VdConstPlineFlag.PlFlagCLOSE, VectorDraw.Professional.Constants.VdConstSplineFlag.SFlagSTANDARD, Color.Black.ToArgb(), ""); }
public static ulong BuildToRightHorLine(LJJSPoint ptStart, double lineLen, double penWidth, int lineColor, string lineTypeName, string pToolTip) { gPoint ptend = new gPoint(ptStart.XValue + lineLen, ptStart.YValue); return(VectorDrawHelper.CommonLine(DrawCommonData.activeDocument, FigureStrucConvert.ConvertLJJSPointToGPoint(ptStart), ptend, penWidth, lineColor, lineTypeName, pToolTip)); }
public static ulong BuildHorToRightBlackSolidLine(LJJSPoint pStart, double lineWidth, double penWidth, string pToolTip) { gPoint pEnd = new gPoint(pStart.XValue + lineWidth, pStart.YValue); return(VectorDrawHelper.CommonLine(DrawCommonData.activeDocument, FigureStrucConvert.ConvertLJJSPointToGPoint(pStart), pEnd, penWidth, DrawCommonData.BlackColorRGB, DrawCommonData.SolidLineTypeName, pToolTip)); }
public static ulong AddBlackRect(LJJSPoint insertPoint, double rectHeight, double rectWidth, double penWidth, DrawDirection drawDirection) { return(VectorDrawHelper.AddRect(DrawCommonData.activeDocument, FigureStrucConvert.ConvertLJJSPointToGPoint(insertPoint), rectHeight, rectWidth, 0, penWidth, drawDirection)); }
public static ulong BuildCommonPolyLine(List <LJJSPoint> ptcol, double penWidth, Color PenColor) { List <gPoint> ljjsgPtLst = FigureStrucConvert.ConverLJJSPtLstTogPtLst(ptcol); return(VectorDrawHelper.CommonPolyLine(DrawCommonData.activeDocument, ljjsgPtLst, penWidth, PenColor)); }