Android View to Image Capture view2Bitmap(View view, boolean cache)

Here you can find the source of view2Bitmap(View view, boolean cache)

Description

view Bitmap

Declaration

public static final Bitmap view2Bitmap(View view, boolean cache) 

Method Source Code

//package com.java2s;

import android.graphics.Bitmap;

import android.view.View;

public class Main {
    public static final Bitmap view2Bitmap(View view) {
        return view2Bitmap(view, false);
    }/* ww  w .  j a  v  a 2  s . c  o  m*/

    public static final Bitmap view2Bitmap(View view, boolean cache) {
        view.setDrawingCacheEnabled(cache);
        view.buildDrawingCache();
        Bitmap bitmap = view.getDrawingCache();
        return bitmap;
    }
}

Related

  1. getBitmapFromView(View view)
  2. printScreen(View v)
  3. printScreen(View v, int quality)
  4. shotScreen(View cv)
  5. view2Bitmap(View view)
  6. loadBitmapFromView(View v)
  7. getBitmapFromView()
  8. getBitmapFromView(View view)
  9. view2Bitmap(View view)