当前位置: 首页 > 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.ds6.com.cn/news/23991.html

相关文章:

  • 宿州市网站建设互联网营销的十五种方式
  • 苏州网站建设哪个比较牛网络软文投放
  • android开发app实例西安seo公司哪家好
  • 谷歌官方网站注册辽源seo
  • 局域网网站建设工具潍坊seo教程
  • 电商网站开发北京搜图片百度识图
  • wordpress模板在哪个目录下网站优化 福州
  • java做的网站php网站seo优化技巧
  • 唐山做企业网站的公司免费的网站推广在线推广
  • 无锡知名网站360关键词指数查询
  • 惠州公司做网站手机app软件开发
  • wordpress全屏滚动网站电脑优化软件推荐
  • 做推广的网站微信号百度上搜索关键词如何在首页
  • 网站建设中 什么意思百度竞价排名魏则西事件分析
  • 做网站公司上海营销策划方案ppt
  • 政府网站建设分析个人网站设计图片
  • 网络规划设计师考试资料百度云seo培训网
  • 做投资类网站服务器自助快速建站
  • 苏州网站建设代理seo推广优化排名软件
  • 广州制作网站服务网址缩短
  • 如何建个人网站视频东莞网站seo公司
  • 自己做个网站需要些什么今日油价92汽油
  • 深圳网站建设 案例下载百度2023最新版
  • <网站建设与运营》优化大师安卓版
  • 邯郸北京网站建设网站收录查询爱站
  • 网络营销推广品牌搜索引擎排名优化
  • 湘潭县委网站交换友情链接的意义是什么
  • 建筑网站管桩进场验收规范怎么建网页
  • 口腔网站模板南宁seo排名优化
  • 开家网站建设培训爱战网关键词挖掘查询工具