Created
February 12, 2016 10:08
-
-
Save maheshwarLigade/8c51678448a3c710cf50 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Simplest way to create the Blur Bitmap in android | |
private Bitmap createScreenShot(View view, int scaledViewWidth, int scaledViewHeight) { | |
Bitmap localBitmap = Bitmap.createBitmap(scaledViewWidth, | |
scaledViewHeight, | |
Bitmap.Config.ARGB_8888); | |
Canvas localCanvas = prepareCanvas(localBitmap, view.getContext()); | |
view.draw(localCanvas); | |
return localBitmap; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment