• 大小: 3.69MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-10
  • 语言: C#
  • 标签: DXF类库  netdxf  

资源简介

用c#解析DXF的类库,亲测可行!用c#解析DXF的类库,亲测可行!用c#解析DXF的类库,亲测可行!用c#解析DXF的类库,亲测可行!用c#解析DXF的类库,亲测可行!用c#解析DXF的类库,亲测可行!用c#解析DXF的类库,亲测可行!用c#解析DXF的类库,亲测可行!

资源截图

代码片段和文件信息

#region netDxf Copyright(C) 2013 Daniel Carvajal Licensed under LGPL.

//                        netDxf library
// Copyright (C) 2013 Daniel Carvajal (haplokuon@gmail.com)
// 
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License or (at your option) any later version.
// 
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
// 
// THE SOFTWARE IS PROVIDED “AS IS“ WITHOUT WARRANTY OF ANY KIND EXPRESS OR
// IMPLIED INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY FITNESS
// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM DAMAGES OR OTHER LIABILITY WHETHER
// IN AN ACTION OF CONTRACT TORT OR OTHERWISE ARISING FROM OUT OF OR IN
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 

#endregion

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Globalization;
using System.Threading;

namespace netDxf
{
    /// 
    /// Represents an ACI color (Autocad Color Index) that also supports true color.
    /// 

    public class AciColor
        : ICloneable
    {
        #region private fields

        private static readonly Dictionary aciColors = IndexRgb();
        private short index;
        private byte r;
        private byte g;
        private byte b;
        private bool useTrueColor;

        #endregion

        #region constants

        /// 
        /// Gets the Bylayer color.
        /// 

        public static AciColor Bylayer
        {
            get { return new AciColor { index = 256 }; }
        }

        /// 
        /// Gets the ByBlock color.
        /// 

        public static AciColor ByBlock
        {
            get { return new AciColor { index = 0 }; }
        }

        /// 
        /// Defines a default red color.
        /// 

        public static AciColor Red
        {
            get { return new AciColor(1); }
        }

        /// 
        /// Defines a default yellow color.
        /// 

        public static AciColor Yellow
        {
            get { return new AciColor(2); }
        }

        /// 
        /// Defines a default green color.
        /// 

        public static AciColor Green
        {
            get { return new AciColor(3); }
        }

        /// 
        /// Defines a default cyan color.
        /// 

        public static AciColor Cyan
        {
            get { return new AciColor(4); }
        }

        /// 

        /// Defines a default blue color.

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      59198  2013-11-23 21:34  netdxf\BuildProcessTemplates\DefaultTemplate.11.1.xaml

     文件      22647  2013-11-23 21:34  netdxf\BuildProcessTemplates\LabDefaultTemplate.11.xaml

     文件       7014  2013-11-23 21:34  netdxf\BuildProcessTemplates\UpgradeTemplate.xaml

     文件      15029  2013-11-23 21:34  netdxf\doc\Changelog.txt

     文件      24063  2013-11-23 21:34  netdxf\doc\License.txt

     文件    2550333  2013-11-23 21:34  netdxf\doc\netDxf Documentation.chm

     文件      35969  2013-11-23 21:34  netdxf\netDxf\AciColor.cs

     文件     308224  2017-12-05 20:11  netdxf\netDxf\bin\Debug\netDxf.dll

     文件     830976  2017-12-05 20:11  netdxf\netDxf\bin\Debug\netDxf.pdb

     文件     403130  2017-12-05 20:11  netdxf\netDxf\bin\Debug\netDxf.xml

     文件     308224  2017-12-05 20:05  netdxf\netDxf\bin\Debug\netDxf2.dll

     文件       7323  2013-11-23 21:34  netdxf\netDxf\Blocks\Block.cs

     文件       2016  2013-11-23 21:34  netdxf\netDxf\Blocks\BlockEnd.cs

     文件       2852  2013-11-23 21:34  netdxf\netDxf\Blocks\BlockRecord.cs

     文件       2676  2013-11-23 21:34  netdxf\netDxf\Blocks\BlockTypeFlags.cs

     文件       2207  2013-11-23 21:34  netdxf\netDxf\CodeValuePair.cs

     文件       4271  2013-11-23 21:34  netdxf\netDxf\Collections\ApplicationRegistries.cs

     文件       5732  2013-11-23 21:34  netdxf\netDxf\Collections\BlockRecords.cs

     文件       4416  2013-11-23 21:34  netdxf\netDxf\Collections\Dimensionstyles.cs

     文件       6225  2013-11-23 21:34  netdxf\netDxf\Collections\Groups.cs

     文件       4038  2013-11-23 21:34  netdxf\netDxf\Collections\ImageDefinitions.cs

     文件       4143  2013-11-23 21:34  netdxf\netDxf\Collections\layers.cs

     文件       4060  2013-11-23 21:34  netdxf\netDxf\Collections\LineTypes.cs

     文件       4563  2013-11-23 21:34  netdxf\netDxf\Collections\MLinestyles.cs

     文件       9330  2013-11-23 21:34  netdxf\netDxf\Collections\Tableobjects.cs

     文件       4037  2013-11-23 21:34  netdxf\netDxf\Collections\Textstyles.cs

     文件       4232  2013-11-23 21:34  netdxf\netDxf\Collections\UCSs.cs

     文件       3285  2013-11-23 21:34  netdxf\netDxf\DrawingUnits.cs

     文件      58671  2013-11-23 21:34  netdxf\netDxf\DxfDocument.cs

     文件       5728  2013-11-23 21:34  netdxf\netDxf\DxfException.cs

............此处省略146个文件信息

评论

共有 条评论