如何使用C#代码将dxf文件转换为jpg文件? [英] how to make a dxf file to a jpg file use C# code?

查看:657
本文介绍了如何使用C#代码将dxf文件转换为jpg文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在网页中查看dxf,但是web activexs是复杂的,因为web activex必须选择一个文件后才能在html或aspx中显示图像

i想要在html或aspx加载时直接查看图像,

但我已经faided.so我问这个问题如何使用C#代码将dxf文件制作成jpg文件?我想在网页上显示jpg,但我不知道它是对的,我不能打开程序吗?

谁可以帮我体验一下?

谢谢!

i want to view a dxf in web page,but the web activexs is to complicated,becouse the web activex must be choose a file after it can show the image in the html or aspx
i just want to direct view a image when the html or aspx load,
but i have faided.so i asked this question "how to make a dxf file to a jpg file use C# code?" i want to display the jpg in web page, but i don't know it is right and i can't wirte the program?
who can help me with the experience or no ?
thanks you !

推荐答案

DXF文件本质上是一个普通的文本文件,其中包含坐标和其他一些用于识别形状,位置和尺寸的东西。图中的对象。如果您能够理解这些数字的含义,可以使用Graphics类中的方法绘制它们,然后将它们另存为JPG文件。自从几年前我这样做以来,我不太确定该文件中数字的确切格式,但我相信你可以在网上找到关于这个的一些信息。希望这会有所帮助。
A DXF file is essentially a normal text file which contains the coordinates and some other stuff to identify the shape, position and dimension for the object in the drawing. If you can understand what those numbers mean, you can draw them using methods in the Graphics class and then save them as a JPG file. I am not too sure about the exact format of the number in that file since I did this a few years back but I am sure you can find some information about this on web. Hope this helps.


这篇关于如何使用C#代码将dxf文件转换为jpg文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆