且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用C#在ASP.NET中读取* .tif文件

更新时间:2023-02-08 08:20:10

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