如何使用 .Net 创建 Facebook 风格的缩略图选择器

发布于 2024-08-02 14:12:32 字数 312 浏览 2 评论 0原文

我正在考虑使用 ASP.Net MVC 实现 Facebook 风格的缩略图创建器,但不知道从哪里开始。

当您上传新的个人资料图片时,该功能最容易识别。上传图像后,您会看到一个框架,您可以在图像周围拖动该框架来选择将显示为 FB 个人资料缩略图的区域(用于您的墙壁等)。

我选择我想要使用 jQuery UI 框架并利用 Draggable 功能,但是如何从所选位置获取坐标以及如何将这些坐标传递给 .Net,然后用作创建的基础缩略图?我对 .Net(或任何其他语言)中的图像处理没有太多经验,我希望有人能够向我指出好的代码示例、教程或其他关于如何实现我的目标的一般建议我在追。

I'm looking at implementing a Facebook-style thumbnail creator using ASP.Net MVC but haven't a clue where to start.

The feature in question is most easily-recognised when you upload a new profile picture. After uploading the image, you are presented with a frame that you can drag around the image to select the area that will appear as your FB profile thumbnail (for your wall, etc).

I'm picking I'd want to use the jQuery UI framework and take advantage of the Draggable feature, but how do I get the coordinates from the chosen position and how do I pass those to .Net to then use as the basis for creating the thumbnail? Not having much experience at all with image manipulation in .Net (or any other language for that matter), I'm hoping someone will be able to point me to good code samples, tutorials or other general suggestions on how I can achieve what I'm after.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文