自动绘制图像 [英] automatic draw image

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

问题描述

我在C#中有两个图片框
现在我想如果用户将图片加载到picturebox1中,然后将图片加载到picturebox1中,则用户从picturebox1中选择图像中的一些像素,并自动拖曳picturebox2中的选定像素
请帮助我
预先感谢

解决方案

PictureBox没有任何选定像素"的概念,因此您必须自己实现.如果您处理MouseClick/Down/Up事件的某种组合,则可以手动定义选择像素的含义,然后在用户每次操作时在第二个图片框上重复该操作.


i have two picturebox in C#
now i want if user load image in picturebox1 and after load image in picturebox1 user select some pixel in image from picturebox1 and automatic drow selected pixel in picturebox2
please help me
thanks in advance

解决方案

PictureBoxs don''t have any concept of "Selected Pixels" so you''ll have to implement that yourself. If you handle some combination of the MouseClick/Down/Up events you can manually define what it means to select a pixel and then duplicate that action on the second picture box whenever the user does it.


这篇关于自动绘制图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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