在图片上绘制可调整大小的可移动矩形 [英] Drawing a resizable, movable rectangle on a picture

查看:189
本文介绍了在图片上绘制可调整大小的可移动矩形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只想获取图像所选部分的高度和宽度.该矩形将具有可移动的角(我可以拖动它)以增加/减小其大小.下面的链接演示了我想开发的东西的演示[该链接演示了HTML中的相同问题,但我希望在VB.NET中实现].

http://simonsarris.com/blog/225-canvas-selecting-resizing-shape

我将其添加到基于表单的应用程序中.请帮忙.
我不知道该怎么做!因此,复制粘贴应用程序代码将非常有帮助.

I want to get height and width of an image''s selected portion only. That rectangle will have moveable corners (which I can drag around) to increase/decrease its size. The link below illustrates a demo of something I would like to develop [the link demonstrates same problem in HTML, but I want this in VB.NET].

http://simonsarris.com/blog/225-canvas-selecting-resizing-shape

I''ll add this in a form based application. Please help.
I''ve no idea how to do it ! So a copy paste application code will be really helpful

推荐答案

您可能不会相信这一点,但是我在这个站点上发现了一些您可能感兴趣的东西: br/> 所有者绘制的可调整大小控件 [
You probarbly wont belive this but I found something that might be of interest to you, on this very site:
Owner Drawn Resizable Control[^]

Next time search before you ask a question...


这篇关于在图片上绘制可调整大小的可移动矩形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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