如何在C#中进行图像缩放 [英] How to do image zoom in c#
本文介绍了如何在C#中进行图像缩放的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
您有C#中有关缩放图像的任何教程吗?
到目前为止,我尝试了很多搜索,但是我不知道他们是怎么做到的.
对我来说有点困难.
谢谢.
Hi there,
Do you have any tutorial on zoom image in C#?
So far, I tried to search a lot, but I do not understand how they do it.
It is a bit difficult for me.
Thanks.
推荐答案
可以使用javascript/DHTML/Jquery等实现.
以下是可以获取示例代码的一些链接:
http://www.javascriptkit.com/script/script2/imagezoom.shtml# [ ^ ]
http://www.hotscripts.com/blog/javascript-zoom-scripts/ [ ^ ]
This can be done using javascript/DHTML/Jquery etc.
following are some of the links on which you can get the sample code:
http://www.javascriptkit.com/script/script2/imagezoom.shtml#[^]
http://www.hotscripts.com/blog/javascript-zoom-scripts/[^]
检查这些
平移和缩放非常大的图像 [ PictureBox缩放 [可缩放和可滚动的图片框 [可滚动,缩放和可缩放的图片框 [
Check these
Pan and Zoom Very Large Images[^]
PictureBox Zoom[^]
A Zoomable and Scrollable PictureBox[^]
A scrollable, zoomable, and scalable picture box[^]
我通过遵循本教程解决了这个问题. http://www.dotnetcurry.com/ShowArticle.aspx?ID=196
但是我在
上遇到了一些错误 grap.InterpolationMode = InterpolationMode.HighQualityBicubic;
所以我只是注释掉这一行.你们有什么想法吗?谢谢:)
i solved this problem by following this tutorial. http://www.dotnetcurry.com/ShowArticle.aspx?ID=196
but i got some error on
grap.InterpolationMode = InterpolationMode.HighQualityBicubic;
so i just comment out this line. do you guys have any idea on it? thanks :)
这篇关于如何在C#中进行图像缩放的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文