Dimezis / BlurView

Dynamic iOS-like blur of underlying Views for Android
Apache License 2.0
3.48k stars 331 forks source link

PixelCopy #170

Closed SudoDios closed 2 years ago

SudoDios commented 2 years ago

Hello. I had a question.
Why not use pixelcopy to capture bitmaps?
It even supports surfaces.

Dimezis commented 2 years ago

I'd love to use it, but it would capture BlurView's content as well. I mean the content that shouldn't be blurred. As well as the already blurred part.

SudoDios commented 2 years ago

I am working on this topic. You also see you.

SudoDios commented 2 years ago

Have you ever seen this ? https://github.com/tarek360/Instacapture

Dimezis commented 2 years ago

I haven't, but I don't see PixelCopy in it

SudoDios commented 2 years ago

Yes, I know, but you can learn from it.

Dimezis commented 2 years ago

What do you suggest to learn exactly? You can't exclude the Views from PixelCopy the way it's done there

SudoDios commented 2 years ago

Can't use the ThreadedRenderer class? https://github.com/AndroidSDKSources/android-sdk-sources-for-api-level-31/blob/master/android/view/ThreadedRenderer.java

Dimezis commented 2 years ago

It's a hidden class that is not accessible for developers