用C#轻松在DOTNET中实现缩略图
发布时间:2019-01-12 编辑:jiaochengji.com
教程集为您提供用C#轻松在DOTNET中实现缩略图等资源,欢迎您收藏本站,我们将为您提供最新的用C#轻松在DOTNET中实现缩略图资源
以前,在页面上实现缩略图必须借助第三方组件。现在,有了.NET,就可以很轻松地实现缩略图。下面就是实现缩略图的例子。
ToThumbnailImage.aspx
<%@ Page language="c#" Codebehind="ToThumbnailImage.aspx.cs" Src="ToThumbnailImage.aspx.cs" AutoEventWireup="false"
Inherits="Exam_C.ToThumbnailImage" %>
<html>
<head>
<title>Lion互动网络 =>生成缩略图</title>
</head>
<body>
<form id="Form1" method="post" runat="server">
</form>
</body>
</html>
ToThumbnailImage.aspx.cs
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Drawing.Imaging;
namespace Exam_C
{
/// <summary>
/// ToThumbnailImage 的摘要说明。
/// </summary>
public class ToThumbnailImage : System.Web.UI.Page
{
/*
Create By lion
2003-05-20 19:00
Copyright (C) 2004 www.LionSky.Net. All rights reserved.
Web: http://www.Lionsky.net ;
Email: lion-a@sohu.com
*/
static Hashtable htmimes=new Hashtable();
internal readonly string AllowExt = ".jpe|.jpeg|.jpg|.png|.tif|.tiff|.bmp";
ToThumbnailImage.aspx
<%@ Page language="c#" Codebehind="ToThumbnailImage.aspx.cs" Src="ToThumbnailImage.aspx.cs" AutoEventWireup="false"
Inherits="Exam_C.ToThumbnailImage" %>
<html>
<head>
<title>Lion互动网络 =>生成缩略图</title>
</head>
<body>
<form id="Form1" method="post" runat="server">
</form>
</body>
</html>
ToThumbnailImage.aspx.cs
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Drawing.Imaging;
namespace Exam_C
{
/// <summary>
/// ToThumbnailImage 的摘要说明。
/// </summary>
public class ToThumbnailImage : System.Web.UI.Page
{
/*
Create By lion
2003-05-20 19:00
Copyright (C) 2004 www.LionSky.Net. All rights reserved.
Web: http://www.Lionsky.net ;
Email: lion-a@sohu.com
*/
static Hashtable htmimes=new Hashtable();
internal readonly string AllowExt = ".jpe|.jpeg|.jpg|.png|.tif|.tiff|.bmp";
您可能感兴趣的文章:
用C#轻松在DOTNET中实现缩略图
JQuery FlexiGrid的asp.net完美解决方案 dotNetFlexGrid-.Net原生的异步表格控件
jQuery NailThumb
php开启GD库(windows环境)
dotNET 程序奔向Window XP,体验绚丽的外表?
分享精心挑选的23款美轮美奂的jQuery 图片特效插件
php生成缩略图的例子
apache启用gzip压缩方法
Asp.Net 上传图片并生成高清晰缩略图
Photoshop轻松制作美女照片彩色素描教程
[关闭]