且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从winforms图片框中删除所有图像数据?

更新时间:2023-12-05 15:18:22

猜测一下,你需要看看那个代码与您的鼠标拖动代码结合 - 我怀疑您使用的是图像以前的化身中的值,而不是使用当前图像。但我们无法访问该代码,它将取决于你。



如果你无法发现它,那么你需要使用调试器来看看代码运行时到底发生了什么 - 我们根本无法为你做到这一点!
At a guess, you need to look at that code in conjunction with your mouse drag code - I suspect that you are using values from "previous incarnations" of the image, rather than using the current image. But we can't access that code, to it's going to be up to you.

If you can't spot it, then you need to use the debugger to look at exactly what is happening while your code is running - and we can't do that for you at all!