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

[Feature]: Get the transparency of the web page #4930

Open
qiqi233 opened this issue Nov 15, 2024 · 3 comments
Open

[Feature]: Get the transparency of the web page #4930

qiqi233 opened this issue Nov 15, 2024 · 3 comments
Assignees
Labels
feature request feature request

Comments

@qiqi233
Copy link

qiqi233 commented Nov 15, 2024

Describe the feature/enhancement you need

Can I pick up the transparency of the web page at the mouse position?

The scenario/use case where you would use this feature

When I use webview2, I embed it in my 3D program (UnrealEngine). I want to realize the function of mouse penetration of web pages. When my mouse picks up the transparency value of 0, all interactions with webview2 will be disabled. Otherwise, I can interact with webview2.

How important is this request to you?

Critical. My app's basic functions wouldn't work without it.

Suggested implementation

I hope there is a way to get the transparency of the web page at the current mouse position in real time (for example: GetCurrentMousePositionTransparent), so that I can continue with the following operations

What does your app do? Is there a pending deadline for this request?

@qiqi233 qiqi233 added the feature request feature request label Nov 15, 2024
@qiqi233
Copy link
Author

qiqi233 commented Nov 15, 2024

Or can you provide a method that allows me to obtain the buffer color data (RGBA format) of the current web page in real time?

@sandeepchads
Copy link

Since this ask is critical for you, have you tried injecting JavaScript into the web page to detect the transparency of elements at the mouse position. You can then use web messaging to communicate this information back to your host application.

Would love to hear your thoughts.

@qiqi233
Copy link
Author

qiqi233 commented Nov 15, 2024

My main concern is whether it is universal for all web pages, through JavaScript scripts, sorry I am not very familiar with JavaScript

My main concern is whether it is universal for all web pages, through JavaScript scripts, sorry I am not very familiar with JavaScript

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

No branches or pull requests

3 participants