如何使用C#在ASP.NET中读取* .tif文件 [英] How to read *.tif file in asp.net with c#

查看:147
本文介绍了如何使用C#在ASP.NET中读取* .tif文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我希望o读取tif formate中的一个文件,并希望在控制台上打印.因此,如果有人有任何解决方案,请尽快给我发送邮件...


预先感谢您...

Hello Everyone, I want o read one file that is in tif formate and want to print on console. so please if any one has any solution than please mail me as soon as possible ...


Thanking you in advance ...

推荐答案

GDI +支持以下文件格式:BMP,GIF,EXIG,JPG,PNG和TIFF
GDI+ supports the following file formats: BMP, GIF, EXIG, JPG, PNG and TIFF
using System.Drawing
 ...
Image newImage = Image.FromFile("SampImag.tif");
 ...



通过控制台,我们通常会考虑命令行-可能不是您想要的...


这是使用GDI +
绘制图像的方法



By console we usually think about the commandline - probably not what you want ...


Here is a way to draw the image using GDI+

...
// Create Point for upper-left corner of image.
Point ulCorner = Point(100,100);
// Draw image to screen.
e->Graphics->DrawImage( newImage, ulCorner );
...



问候
Espen Harlinn



Regards
Espen Harlinn


这篇关于如何使用C#在ASP.NET中读取* .tif文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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