在C#中压缩图像 [英] Compress a image in c#

查看:259
本文介绍了在C#中压缩图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经采取了文件上载控件,并且创建了一个文本框,该文本框必须使用该名称文件夹创建在文本框中输入的任何名称,并且图像必须存储在该文件夹中的原始图像以及压缩的拇指图像..




任何人都可以发送代码段示例吗?

I have taken a file-upload control and one textbox what ever name entered in textbox with that name folder must be created and images must be stored in that folder original image and as well as compressed thumb image ..




can any one send code snippet sample

推荐答案

请参见下面的链接以创建缩略图

http://www.csharp-station.com/articles/thumbnails.aspx [ ^ ]
see below link for creating thumbnails

http://www.csharp-station.com/articles/thumbnails.aspx[^]


如果要加载图像并以其他格式重新保存图像,可以尝试使用类似于Leadtools的第三方工具包.该编程工具包使您能够加载任何受支持的文件格式并将其重新保存为其他格式.以下论坛帖子包含有关使用Leadtools加载和保存图像的有用信息:
http://support.leadtools.com/CS/forums/41516/ShowPost.aspx
If you want to load an image and resave it in a different format, you can try using a third-party toolkit similar to leadtools. This programming toolkit gives you the ability to load any supported file format and resave it to different format. The following forum posts contain useful information about loading and saving images using leadtools:
http://support.leadtools.com/CS/forums/41516/ShowPost.aspx


这篇关于在C#中压缩图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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