WPFDevelopersOrg / WPFDevelopers

🎉 Welcome to follow the "WPFDevelopers" public account! This is a sample project we share daily, covering WPF's basic controls and custom control libraries. The project will be continuously updated, welcome to give us ⭐️
MIT License
1.5k stars 240 forks source link

ScreenCut截图时屏幕会闪烁问题 #89

Closed deakintsang closed 1 month ago

deakintsang commented 7 months ago

截图时屏幕会闪烁,让人难受(有点强迫症),所以可以通过给窗体设置AllowTransparency为True,对闪烁问题有一定的缓解;ResizeMode="NoResize" 也能缓解闪烁;

image

yanjinhuagood commented 7 months ago

非常感谢您的反馈和建议,您建议给它们添加ResizeMode="NoResize"属性下一个版本我们将为ScreenCutScreenCutExt增加ResizeMode="NoResize"。 建议使用ScreenCutExt,因为Issue GC释放慢的问题。

deakintsang commented 7 months ago

@yanjinhuagood 内存释放慢的问题,我参考了这一个,修改了ConvertBitmap这个方法,简单测试了一下,释放还是挺正常的;你原写法,连续截图时,的确会累加上;

image

yanjinhuagood commented 7 months ago

非常感谢🤝