Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- final WallpaperManager wallpaperManager = WallpaperManager.getInstance(this);
- final Drawable wallpaperDrawable = wallpaperManager.getDrawable();
- Bitmap bitmap = ((BitmapDrawable)wallpaperDrawable).getBitmap();
- WallpaperManager wallpaperManager = WallpaperManager.getInstance(mContext);
- Drawable wallpaperDrawable = wallpaperManager.getDrawable();
- Bitmap bm = ((BitmapDrawable) wallpaperDrawable).getBitmap();
- ImageView imageView = ((ImageView)v);
- Bitmap bitmap = ((BitmapDrawable)imageView.getDrawable()).getBitmap();
- int pixel = bitmap.getPixel(x,y);
- int redValue = Color.red(pixel);
- int blueValue = Color.blue(pixel);
- int greenValue = Color.green(pixel);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement