当前位置: 首页 > news >正文

域名里可以建网站企业融资的三种方式

域名里可以建网站,企业融资的三种方式,做网站 包含详情页设计吗,网页设计师女生工资1、下载CadLib相关dll文件,主要用到的:WW.dll、WW.Cad.dll、WW.GL.dll 2、程序中引用dll库。 3、创建WPF程序,使用Canvas来加载dwg文件,支持拖动和放大缩小。 4、部分代码: public void Init(string filename) {tr…

1、下载CadLib相关dll文件,主要用到的:WW.dll、WW.Cad.dll、WW.GL.dll

2、程序中引用dll库。

3、创建WPF程序,使用Canvas来加载dwg文件,支持拖动和放大缩小。

4、部分代码:

public void Init(string filename)
{try{string extension = System.IO.Path.GetExtension(filename);if (string.Compare(extension, ".dwg", true) == 0){model = DwgReader.Read(filename);}else{model = DxfReader.Read(filename);}#region calculate the model's bounds to determine a proper dots per inch// The dots per inch value is important because it determines the eventual pen thickness.graphicsConfig = (GraphicsConfig)GraphicsConfig.WhiteBackgroundCorrectForBackColor.Clone();BoundsCalculator boundsCalculator = new BoundsCalculator();if (model.ActiveLayout == null || model.Header.ShowModelSpace){boundsCalculator.GetBounds(model);}else{boundsCalculator.GetBounds(model, model.ActiveLayout);}bounds = boundsCalculator.Bounds;WW.Math.Vector3D delta = bounds.Delta;Size estimatedCanvasSize = new Size(500d, 500d);double estimatedScale = Math.Min(estimatedCanvasSize.Width / delta.X, estimatedCanvasSize.Height / delta.Y);graphicsConfig.DotsPerInch = 100d / estimatedScale;#endregiongraphicsCache = new WireframeGraphics2Cache(false, false);graphicsCache.Config = graphicsConfig;if (model.ActiveLayout == null || model.Header.ShowModelSpace){graphicsCache.CreateDrawables(model, Matrix4D.Identity);}else{graphicsCache.CreateDrawables(model, model.ActiveLayout);}wpfGraphics = new WpfWireframeGraphics3DUsingDrawingVisual();wpfGraphics.Config = graphicsConfig;this.Dispatcher.Invoke(() => {canvas.Children.Add(wpfGraphics.Canvas);canvas.SizeChanged += canvas_SizeChanged;});UpdateWpfGraphics();}catch (Exception ex){this.Dispatcher.Invoke(() => {msg.Text = $"文件加载出现异常,详细:{ex.Message}";});}
}

如果想设置文字颜色,在Read后增加代码:

foreach (DxfEntity entity in model.Entities){// 检查实体是否为DxfText或DxfMTextif (entity is DxfText textEntity){// 设置DxfText的颜色textEntity.Color = EntityColors.Red; // 替换为你想要的颜色}else if (entity is DxfMText mTextEntity){// 设置DxfMText的颜色mTextEntity.Color = EntityColors.Red; // 替换为你想要的颜色}}

5、Demo地址

WPF程序通过CadLib4加载CAD.dwg格式文件资源-CSDN文库

http://www.yayakq.cn/news/280263/

相关文章:

  • 超值的镇江网站建设asp.net网站开发pdf
  • 建设工程信息在什么网站发布WordPress大气清爽响应式主题
  • 遵义网站定制关于百度网站的优缺点
  • 加强本单位政务网站建设宁德seo培训
  • 网站详情页用哪个软件做企业网站 价格
  • 肥城网站建设公司西安最新活动轨迹
  • 免费制作模板网站做一个app大概需要多少费用
  • 济南定制网站制作公司网页设计图片为980是参考
  • 做设计有哪些免费网站wordpress网站密码
  • 微网站建设第一步是进行什么的设置网站设计价钱
  • iis7.5 添加网站网站推广具体内容简要说明
  • php网站开发和部署虚拟主机管理系统源码
  • 广州哪家公司做网站西安网约车
  • 学校二级网站建设自查情况wordpress手机模板插件
  • 怎么让别人看到自己做的网站毕业设计做网站low
  • 浙江网站seo一个网站 两个域名
  • 信息型网站制造业生产管理系统
  • 江西网站备案商城网站开发报价方案
  • 小企业网站服务器h5商城网站模板下载
  • 免费网站平台推荐金华市建设技工学校网站
  • phpcmsv9中英文网站汕头网站
  • wordpress专题页面企业网站做优化
  • 科技感网页设计徐州百度seo排名优化
  • 做网站好找工作吗搜索引擎营销策划方案
  • 国内做网站的顶尖公司内蒙网络_网站建设
  • 新宾区网站建设吉林市做网站公司
  • 做商品推广有那些网站申请备案网站首页
  • 有没有做门面设计的网站wordpress 页面调用
  • 移动端网站的重要性用vs2010做网站教程
  • 东莞企业网站推广wordpress发布文章_发布