autocad型源代码_C# 实现预览dwg文件完整源代码(无需autocad环境)

这是一个使用C#编写的Windows应用程序,能够无需AutoCAD环境预览DWG文件。通过读取DWG文件的位图信息,程序创建了一个Bitmap对象并显示在PictureBox控件中。源代码包括了处理DWG文件的二进制数据,解析缩略图信息,并构造BMP文件头的过程。
摘要由CSDN通过智能技术生成

usingSystem;usingSystem.Drawing;usingSystem.Collections;usingSystem.ComponentModel;usingSystem.Windows.Forms;usingSystem.Data;usingSystem.IO;namespaceWindowsApplication3

{///

///Form1 的摘要说明。///

public classForm1 : System.Windows.Forms.Form

{privateSystem.Windows.Forms.Timer timer1;privateSystem.Windows.Forms.PictureBox pictureBox1;privateSystem.ComponentModel.IContainer components;publicForm1()

{//

//Windows 窗体设计器支持所必需的//InitializeComponent();//

//TODO: 在 InitializeComponent 调用后添加任何构造函数代码//}///

///清理所有正在使用的资源。///

protected override void Dispose( booldisposing )

{if( disposing )

{if (components != null)

{

components.Dispose();

}

}base.Dispose( disposing );

}#region Windows Form Designer generated code

///

///设计器支持所需的方法 - 不要使用代码编辑器修改///此方法的内容。///

private voidInitializ

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值