⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 line.cs

📁 导出dxf的原码类库,根据国外一个反编译的
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;

namespace SunDXFDll
{

    [StructLayout(LayoutKind.Sequential)]
    public struct Line
    {
        public int x1;
        public int y1;
        public int x2;
        public int y2;
        public Line(int X1, int Y1, int X2, int Y2)
        {
            this.x1 = X1;
            this.y1 = Y1;
            this.x2 = X2;
            this.y2 = Y2;
        }
    }

    [StructLayout(LayoutKind.Sequential)]
    public struct Rect
    {
        public int X1;
        public int X2;
        public int Y1;
        public int Y2;
        public Rect(int x1, int y1, int x2, int y2)
        {
            this.X1 = x1;
            this.X2 = x2;
            this.Y1 = y1;
            this.Y2 = y2;
        }
    }
    public enum HatchStyle
    {
        hsSolid,
        hsPatternData,
        hsHorizontal,
        hsVertical,
        hsFDiagonal,
        hsBDiagonal,
        hsCross,
        hsDiagCross
    }
    public enum HatchBoundaryType
    {
        hbtPolyPolyline,
        hbtCircle,
        hbtEllipse
    }
    public enum DXFIntConst : short
    {
        DXF_ALTERNATIVEBLACK = 250,
        DXF_AQUA = 4,
        DXF_BLACK = 7,
        DXF_BLUE = 5,
        DXF_BYBLOCK = 0,
        DXF_BYLAYER = 0x100,
        DXF_DKGRAY = 0xfb,
        DXF_FUCHSIA = 6,
        DXF_GRAY = 8,
        DXF_GREEN = 0x4a,
        DXF_LIME = 3,
        DXF_LTGRAY = 0xfe,
        DXF_MAROON = 14,
        DXF_NAVY = 0x9a,
        DXF_OLIVE = 0x2c,
        DXF_PURPLE = 0xe0,
        DXF_RED = 1,
        DXF_SILVER = 9,
        DXF_TEAL = 12,
        DXF_WHITE = 0xff,
        DXF_YELLOW = 2
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -