调整c#中的图像大小 [英] Resizing image size in c#

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

问题描述

有人知道如何调整上传的图片大小吗?它需要2个数据库表,以便编辑的图像保存到不同的表吗?



如何获得调整大小的新图像?



我们将非常感谢任何解决方案!

Hi anybody have any idea how to resize an image that was uploaded? does it require 2 database tables so that the edited image is saved to a different table?

How do i get the new image that was resized??

any solution will be greatly appreciated!

推荐答案

您在询问两件不同的事情:

A)调整图像大小是图像处理,与操作图像数据本身的部分无关。您可以使用此处描述的内置方法: http:// tech.pro/tutorial/620/csharp-tutorial-image-editing-saving-cropping-and-resizing [ ^ ],或更复杂和细粒度的方法,如OpenCV [ ^ ](更准确地说是 EmguCV [ ^ ])

B)如何存储图像数据是另一个事。您必须遵循您的应用程序要求来自行决定。我很难想象你真的需要一个不同的表来存储编辑过的图像的情况 - 但是,这种情况可能存在。
You are asking about two different things:
A) Resizing an image is an image manipulation, and has nothing to do with the part where you manipulate the image data itself. You can use the built-in methods like described here: http://tech.pro/tutorial/620/csharp-tutorial-image-editing-saving-cropping-and-resizing[^], or more sophisticated and fine-grained methods like OpenCV[^] (more precisely EmguCV[^])
B) How you store the image data is an other thing. You have to decide yourself by following your application requirements. I can hardly imagine a situation where you really need a different table to store the edited image - still, that scenario might exists.


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

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