简体   繁体   English

ASP.NET中的图像处理库(使用C#),不带Flash

[英]Image processing library in asp.net (using C#) without flash

I have the following requirement wherein I have to implement a paint brush kind of feature in a asp.net web application. 我有以下要求,其中我必须在asp.net Web应用程序中实现画笔类型的功能。 Basically it should support resizing, drawing lines, squares, etc and a whole lot of features like a paint brush. 基本上,它应该支持调整大小,绘制线条,正方形等,并支持很多功能,例如画笔。 I was googling out image processing libraries in internet. 我在互联网上搜索图像处理库。
I found some - but the problem is most of them is with flash. 我找到了一些-但问题是大多数问题都与Flash有关。 I was looking for some option without flash since the application should run on a ipad also. 我一直在寻找不带闪光灯的选项,因为该应用程序也应该在iPad上运行。

Can you people suggest some good image processing libraries which I can use in my asp.net (using C#) application.? 你们能推荐一些可以在我的asp.net(使用C#)应用程序中使用的图像处理库吗?

I have done good enough research regarding them. 我已经对它们做了足够好的研究。 I do not have much time to download the trial versions and try each and every library. 我没有太多时间下载试用版并尝试每个库。 So I need the help of you all to suggest me something based on experience. 因此,我需要大家的帮助,根据经验向我提出一些建议。

For the Image Resizing and cropping you can use Image Resizer and for drawing lines, squares, etc you should use HTML5 Canvus . 对于图像调整大小和裁剪,可以使用图像调整大小 ;对于drawing lines, squares, etc ,则应使用HTML5 Canvus

There are a lot of good libraries and tutorials for HTML5 Canvus. 有很多关于HTML5 Canvus的优秀库教程

Its easy to use and is available at Nuget . 它易于使用,可从Nuget获得

var settings = new ResizeSettings {
  MaxWidth = thumbnailSize,
  MaxHeight = thumbnailSize,
  Format = "jpg"
};
settings.Add("quality", quality.ToString());
ImageBuilder.Current.Build(inStream, outStream, settings);
resized = outStream.ToArray();

You can install it using Nuget 您可以使用Nuget进行安装

PM> Install-Package ImageResizer PM>安装包ImageResizer

you can use AForge.NET, a C# framework, here is code project link : 您可以使用C#框架AForge.NET,这是代码项目链接:

http://www.codeproject.com/Articles/16859/AForge-NET-open-source-framework http://www.codeproject.com/Articles/16859/AForge-NET-open-source-framework

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM