Deakin Tsang

Results 15 comments of Deakin Tsang

> 建议个人根据实际情况做修改,我也发现,会和某些控件冲突,一时找不到好的解决方法 嗯嗯,我改用Adorner做遮罩蒙板正常了

同问,请问Form的Api是怎么用的? 我这样写没有效果 ![image](https://user-images.githubusercontent.com/35422654/212645456-3e77fd14-8929-4522-8c1d-155fa7e7a989.png)

@yanjinhuagood 内存释放慢的问题,我参考了[这一个](https://www.codeproject.com/Articles/104929/Bitmap-to-BitmapSource),修改了ConvertBitmap这个方法,简单测试了一下,释放还是挺正常的;你原写法,连续截图时,的确会累加上; ![image](https://github.com/WPFDevelopersOrg/WPFDevelopers/assets/35422654/c3942374-7df3-4f52-8cc4-9ef8f20ff488)

> Hi > > I am not completely sure if this is a bug, what is the result you expect from this? I think the correct logic would be. If...

> @deakintsang > > * Do you always get an error? > * Does it occur when the image file size is large? Doesn't it happen if it's small? >...

> I guess this exception from .NET Framework (WriteableBitmap) issue. https://stackoverflow.com/questions/8352787/how-to-free-the-memory-after-the-bitmapimage-is-no-longer-needed > > ### Workaround > * Set SoftEdgeX and SoftEdgeY proerties to 0. But I want to SoftEdge

> Maybe this issue fixed by ver 3.1.11. (optimize load image process and remove leak of WriteableBitmap) 3.1.11还是有问题 ![1672880558356](https://user-images.githubusercontent.com/35422654/210678731-e3d5de0a-7c2d-427b-8c58-dc04842b2ed1.jpg)

> @deakintsang I doesn't occurred in my environment using 32MB png image (6k x 4k) file on Visual Studio 2019. Can you share your image to me? 打开两个项目,第二天,其中一个出错,另一个正常 ![image](https://user-images.githubusercontent.com/35422654/210708701-9c04e277-5847-4649-bb2f-372cef81078b.png) 图片是...

这几天正常,没有内存溢出报错。 但是有无响应 ![image](https://user-images.githubusercontent.com/35422654/211237099-10f66534-1e7f-46e3-bff8-483cba705dde.png)

![image](https://user-images.githubusercontent.com/35422654/211254402-d1b4612d-3895-4d2c-9423-a1493acf3769.png) 刚刚,VS上下滚动时出现此情况