Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

对electron+vue截图时,透明区域会变成白色, #16

Open
HhfGzy opened this issue Oct 25, 2023 · 2 comments
Open

对electron+vue截图时,透明区域会变成白色, #16

HhfGzy opened this issue Oct 25, 2023 · 2 comments

Comments

@HhfGzy
Copy link

HhfGzy commented Oct 25, 2023

项目中使用electorn+vue搭建的项目,当中间有一块是透明区域,可以实现鼠标穿透到下面应用,此时截图透明区域会被canvas渲染成白色

@likaia
Copy link
Owner

likaia commented Oct 25, 2023

项目中使用electorn+vue搭建的项目,当中间有一块是透明区域,可以实现鼠标穿透到下面应用,此时截图透明区域会被canvas渲染成白色

electorn环境用js-screen-shot试试?

@HhfGzy
Copy link
Author

HhfGzy commented Oct 26, 2023

上个版本js-screen-shot没事,可以通过desktopCapturer对当前屏幕生成base64,imgsrc方式传入

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants