我正在使用Jquery在asp.net C#中裁剪图像。但我无法裁剪它。 [英] I am tyying to crop image in asp.net C # using Jquery . But I am not able to crop it.

查看:105
本文介绍了我正在使用Jquery在asp.net C#中裁剪图像。但我无法裁剪它。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

代码

Jquery功能





code
Jquery Function


<link href="Styles/jquery.Jcrop.css" rel="stylesheet" type="text/css" />
   <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
   <script type="text/javascript" src="Scripts/jquery.Jcrop.js"></script>
   <script type="text/javascript">
       jQuery(document).ready(function () {
           jQuery('#CustPhoto').Jcrop({
               onSelect: storeCoords
           });
       });

       function storeCoords(c) {
           jQuery('#X').val(c.x);
           jQuery('#Y').val(c.y);
           jQuery('#W').val(c.w);
           jQuery('#H').val(c.h);
       };

   </script>





图片代码







Image Code


<td class="style11" rowspan="5">
                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                    <ContentTemplate>
                        <asp:Image ID="CustPhoto" runat="server" Width="16px" />
                      </ContentTemplate>
                    </asp:UpdatePanel>
                    </td>

推荐答案

查看这篇文章,看看它是否对您有所帮助:

Upload-and-Crop-Images-with-jQuery-JCrop-and -ASP.NET [ ^ ]

如何使用-cree-image-using-net-and-jquery [ ^ ]
Check this article, see if it helps you:
Upload-and-Crop-Images-with-jQuery-JCrop-and-ASP.NET[^]
how-to-crop-image-using-net-and-jquery[^]


这篇关于我正在使用Jquery在asp.net C#中裁剪图像。但我无法裁剪它。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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