问题描述
您好,我想在面板上加载图像.然后我想通过使用我拥有的功能破坏图像的边缘,并通过单击按钮在面板上绘制边缘的线条(而不是失去我的图像).之后,我想使用鼠标在该图像上绘制线条我还希望能够通过鼠标擦除线条而不会删除主图像.现在在每种情况下我应该使用哪些功能?
更新:
一种方法可能是我用图像设置面板的backgroundImage并使用paint函数绘制用鼠标绘制的_绘制线条.如果我使用此方法,那么我应该使用哪个函数通过单击按钮绘制edges_drawed的线条?有没有更好的办法?请先引导我.谢谢
Hi,I want to load an image on a panel . then I want to messure the edgs of the image by using the function I have and draw the lines of the edges on that panel by clicking a button(not loosing my image).After that I want to draw lines on that image by using mouse.I also want to be able to erase the lines by mouse without erasing the main image.Now which functions should I use in every case?
Update:
One way may be that I set the backgroundImage of the panel with my image and use the paint function to draw exta lines _drawn by mouse.if I use this method, then which function should I use to draw lines of edges_drawn by clicking button? Is there a better way? Please guide me .Thanks in advance
推荐答案
这篇关于加载图像并在其上绘制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!