• 大小: 198KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-06
  • 语言: 其他
  • 标签: GDI+  

资源简介

用GDI+绘制的一个强大画图模板,你可以在已给出的框架进行加工,已经添加了属性框,用起来很方便的。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Collections;
using System.Drawing;
using System.Runtime.Serialization;
using System.Runtime.Serialization.Formatters.Binary;
using System.Windows.Forms;

using System.ComponentModel;
using PropertyDialog;
using WellDeflection;

using System.Data;
using System.Data.OleDb;

namespace CoordinateSystem
{
    public class MyEventArgs : EventArgs
    {
        protected Point3 _obj;
        public MyEventArgs(Point3 obj)
        {
            _obj = obj;
        }
        public Point3 obj
        {
            get
            {
                return _obj;
            }
        }
    }
    [Serializable]
    public class TriPointsArray : ArrayListICloneable
    {
        // 一个事件,每当列表元素更改时,客户端可利用该事件
        // 获得通知:
        public delegate void MyEventHandler(object sender MyEventArgs e);
        public event MyEventHandler Changed;
        // 调用 Changed 事件;每当列表更改时调用:
        protected virtual void onchanged(MyEventArgs e)
        {
            if (Changed != null)
                Changed(this e);
        }
        // 重写可更改列表的某些方法:
        // 在每个重写后调用事件:
        public int Add(Point3 value)
        {
            int i = base.Add(value);
            MyEventArgs eventArg = new MyEventArgs(value);
            onchanged(eventArg);
            return i;
        }
        public new Point3 this[int index]
        {
            set
            {
                base[index] = value;
                MyEventArgs eventArg = new MyEventArgs(value);
                onchanged(eventArg);
            }
            get
            {
                try
                {
                    return (Point3)base[index];
                }
                catch (Exception e)
                {
                    throw new Exception(e.ToString());
                }
            }
        }
        public new object Clone()
        {
            TriPointsArray obj = new TriPointsArray();
            obj.InsertRange(0 this);
            return obj;
        }
    }
    //刻度属性类
    [Serializable]
    public abstract class baseCoordinate
    {
        #region 属性字段
        protected bool one_array = false;//对应左箭头或下箭头
        protected bool two_array = false;//对应右箭头或上箭头
        
        //小刻度属性字段
        protected bool have_lmark = true;
        protected bool have_lmark_text = false;
        protected float lmark_length = 5;
        protected Font lmark_text_font = new Font(“Times New Roman“ 8);
        protected float lmark_width = 1;
        protected Color lmark_color = Color.Black;

        //中刻度属性字段
        protected bool have_mmark = true;
        protected bool have_mmark_text = true;
        protected float mmark_length = 8;
        protected Font mmark_text_font = new Font(“Times New Roman“ 10);
        protected float mmark_width = 1;
        protected Color mmark_col

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-10-16 18:51  C#2013(修改后)\
     文件       96973  2013-10-12 13:24  C#2013(修改后)\baseCoordinate.cs
     文件        4606  2013-10-12 13:24  C#2013(修改后)\PropertyWindow.cs
     文件       21312  2008-10-18 00:23  C#2013(修改后)\PropertyWindow.resx
     文件         192  2013-10-10 17:18  C#2013(修改后)\pen.txt
     目录           0  2013-10-16 18:51  C#2013(修改后)\testBrush\
     目录           0  2013-10-16 18:51  C#2013(修改后)\testBrush\testBrush\
     文件        2648  2013-10-12 15:27  C#2013(修改后)\testBrush\testBrush\Form1.Designer.cs
     文件        1337  2013-10-12 15:27  C#2013(修改后)\testBrush\testBrush\Form1.cs
     文件        5814  2013-10-12 15:27  C#2013(修改后)\testBrush\testBrush\Form1.resx
     文件         490  2013-10-12 15:11  C#2013(修改后)\testBrush\testBrush\Program.cs
     目录           0  2013-10-16 18:51  C#2013(修改后)\testBrush\testBrush\Properties\
     文件        1362  2013-10-12 15:11  C#2013(修改后)\testBrush\testBrush\Properties\AssemblyInfo.cs
     文件        2868  2013-10-12 15:11  C#2013(修改后)\testBrush\testBrush\Properties\Resources.Designer.cs
     文件        5612  2013-10-12 15:11  C#2013(修改后)\testBrush\testBrush\Properties\Resources.resx
     文件        1094  2013-10-12 15:11  C#2013(修改后)\testBrush\testBrush\Properties\Settings.Designer.cs
     文件         249  2013-10-12 15:11  C#2013(修改后)\testBrush\testBrush\Properties\Settings.settings
     目录           0  2013-10-16 18:51  C#2013(修改后)\testBrush\testBrush\bin\
     目录           0  2013-10-16 18:51  C#2013(修改后)\testBrush\testBrush\bin\Debug\
     文件        9216  2013-10-12 15:27  C#2013(修改后)\testBrush\testBrush\bin\Debug\testBrush.exe
     文件       24064  2013-10-12 15:27  C#2013(修改后)\testBrush\testBrush\bin\Debug\testBrush.pdb
     文件       14328  2013-10-12 20:33  C#2013(修改后)\testBrush\testBrush\bin\Debug\testBrush.vshost.exe
     文件         490  2007-07-21 01:33  C#2013(修改后)\testBrush\testBrush\bin\Debug\testBrush.vshost.exe.manifest
     目录           0  2013-10-16 18:51  C#2013(修改后)\testBrush\testBrush\obj\
     目录           0  2013-10-16 18:51  C#2013(修改后)\testBrush\testBrush\obj\Debug\
     目录           0  2013-10-27 22:57  C#2013(修改后)\testBrush\testBrush\obj\Debug\TempPE\
     文件         180  2013-10-12 15:27  C#2013(修改后)\testBrush\testBrush\obj\Debug\testBrush.Form1.resources
     文件         180  2013-10-12 15:19  C#2013(修改后)\testBrush\testBrush\obj\Debug\testBrush.Properties.Resources.resources
     文件         874  2013-10-12 20:33  C#2013(修改后)\testBrush\testBrush\obj\Debug\testBrush.csproj.FileListAbsolute.txt
     文件         847  2013-10-12 15:27  C#2013(修改后)\testBrush\testBrush\obj\Debug\testBrush.csproj.GenerateResource.Cache
     文件        9216  2013-10-12 15:27  C#2013(修改后)\testBrush\testBrush\obj\Debug\testBrush.exe
............此处省略67个文件信息

评论

共有 条评论