您的位置:首页 > 编程语言 > ASP

(原創) 如何用程序的方式载入indexd过的图形文件? (.NET) (ASP.NET) (C#) (GDI+) (Image Processing)

2006-09-30 16:37 796 查看
做过indexd的图形文件,如使用正常的方式读取(参阅:如何用程序的方式载入jpg图形文件?),会出现A Graphics object cannot be created from an image that has an indexed pixel format.的错误讯息,以下的程序将示范如何读取indexed图形文件。

1<!-- (C) OOMusou 2006.09.30 oomusou@hotmail.com-->
2
4<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
7
8</script>
53
54<html xmlns="http://www.w3.org/1999/xhtml">
55<head runat="server">
56 <title></title>
57</head>
58<body>
59 <form id="form1" runat="server">
60 <div>
61 </div>
62 </form>
63</body>
64</html>
65

Reference
Steven A. Smith, Rob Howard, The ASP Alliance, ASP.NET 开发手札, 上奇科技出版事业处
KingLeon, Watermark Website Images At Runtime , The Code Project
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: