Open N-Olifer opened 3 years ago
Clipping and elevation happen in a separate rendering pipeline that we dont participate in when we take a screenshot afaik, so no we can't capture that. We would need to investigate other methods of taking screenshots of views that do capture that rendering output, but I'm not aware of any outside of adb screencap, but then that would take a screenshot of the entire screen.
Hello, I'm experiencing the same issue when taking screenshots of my Jetpack Compose views using the Modifier.clip
modifier. Is there a workaround of some sort?
When make a screenshot test for some layout, and some custom view inside contains outline clipping like that:
It works correctly in real app, but doesn't work on screenshot (view appears without clipping). Maybe, it's related to hardware acceleration somehow.
Is there some workaround to make clipping work on screenshots?