Blurry icon indicating copy to clipboard operation
Blurry copied to clipboard

Does Blurry working over Google Map ?

Open nindzyago opened this issue 8 years ago • 5 comments

I've tried to apply Blurry on google map but it only blurs the Google logo. Am I doing something wrong or it's just a bug ?

nindzyago avatar Jul 04 '16 21:07 nindzyago

Same here. It blurs everything but the map.

marianocordoba avatar Jan 05 '17 21:01 marianocordoba

I got this to work by taking a snapshot of the map, and then having a separate imageview to show the blurred view:

map.snapshot(new GoogleMap.SnapshotReadyCallback() {
                @Override
                public void onSnapshotReady(Bitmap bitmap) {
                    mapBlurImage.setVisibility(View.VISIBLE);

                    Blurry.with(SUActivity.this)
                            .radius(12)
                            .sampling(3)
                            .from(bitmap)
                            .into(mapBlurImage);

Gregliest avatar Feb 08 '17 20:02 Gregliest

I am initializing a view that does not currently have a map. I initialize the map on the users current location and then grab a screenshot and blur. However to grab a screenshot I believe that the map has to be visible. This means that the map shows unblurred for a few seconds and then blurs.

newmanw avatar Sep 03 '17 19:09 newmanw

It can not work on SurfaceView or other opengl view

tangxianqiang avatar Oct 29 '17 10:10 tangxianqiang

I have added surface-copy using PixelCopy. See my pull request: https://github.com/wasabeef/Blurry/pull/120

PixelCopy can copy pixels on the Google Map surface, and as far as I know any other surface shown in the window. It only works for API-26+, so snapshot into ImageView is still needed before API-26. I have also added some code to the Readme that can help with that, like the suggestion of Gregliest above.

arberg avatar Mar 11 '22 09:03 arberg