Java Code Examples for android.widget.ImageView#getDrawingCache()

The following examples show how to use android.widget.ImageView#getDrawingCache() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MainActivity.java    From ActivityOptionsICS with Eclipse Public License 1.0 5 votes vote down vote up
public void thumbNailScaleAnim(ImageView view) {
	view.setDrawingCacheEnabled(true);
	 Bitmap bitmap = view.getDrawingCache();
	  ActivityOptionsCompatICS options = ActivityOptionsCompatICS.makeThumbnailScaleUpAnimation(
	    view, bitmap, 0, 0);
	  // Request the activity be started, using the custom animation options.
	  ActivityCompatICS.startActivity(MainActivity.this, intent, options.toBundle());
	  //view.setDrawingCacheEnabled(false);
}
 
Example 2
Source File: OptionsCompatDemoActivity.java    From AndroidStudyDemo with GNU General Public License v2.0 5 votes vote down vote up
/**
 * 这个方法可以用于4.x上,是将一个小块的Bitmpat进行拉伸的动画
 */
private void showThumbNailScaleAnim(ImageView view) {
    view.setDrawingCacheEnabled(true);
    Bitmap bitmap = view.getDrawingCache();
    if (mTestSwitch) {
        ActivityOptionsCompat optionsCompat
                = ActivityOptionsCompat.makeThumbnailScaleUpAnimation(
                view,
                bitmap,
                0, 0
        );
        ActivityCompat.startActivity(
                OptionsCompatDemoActivity.this,
                mIntent,
                optionsCompat.toBundle());
    } else {
        ActivityOptionsCompatICS optionsCompatICS
                = ActivityOptionsCompatICS.makeThumbnailScaleUpAnimation(
                view,
                bitmap,
                0, 0
        );
        ActivityCompatICS.startActivity(
                OptionsCompatDemoActivity.this,
                mIntent,
                optionsCompatICS.toBundle());
        // view.setDrawingCacheEnabled(false);
    }
}
 
Example 3
Source File: PhotoViewAttacher.java    From light-novel-library_Wenku8_Android with GNU General Public License v2.0 4 votes vote down vote up
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 4
Source File: PhotoViewAttacher.java    From star-zone-android with Apache License 2.0 4 votes vote down vote up
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 5
Source File: PhotoViewAttacher.java    From UltimateAndroid with Apache License 2.0 4 votes vote down vote up
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 6
Source File: PhotoViewAttacher.java    From Tweetin with Apache License 2.0 4 votes vote down vote up
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 7
Source File: PhotoViewAttacher.java    From RotatePhotoView with Apache License 2.0 4 votes vote down vote up
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 8
Source File: CropPhotoViewAttacher.java    From ImageSelector with Apache License 2.0 4 votes vote down vote up
public Bitmap getVisibleRectangleBitmap() {
 ImageView imageView = getImageView();
 return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 9
Source File: PhotoViewAttacher.java    From GalleryFinal with Apache License 2.0 4 votes vote down vote up
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 10
Source File: ImageViewScaler.java    From MultiView with Apache License 2.0 4 votes vote down vote up
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 11
Source File: PhotoViewAttacher.java    From MoeGallery with GNU General Public License v3.0 4 votes vote down vote up
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 12
Source File: PhotoViewAttacher.java    From android-project-wo2b with Apache License 2.0 4 votes vote down vote up
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 13
Source File: PhotoViewAttacher.java    From Nimingban with Apache License 2.0 4 votes vote down vote up
@Override
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 14
Source File: PhotoViewAttacher.java    From Album with Apache License 2.0 4 votes vote down vote up
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 15
Source File: PhotoViewAttacher.java    From BigApp_Discuz_Android with Apache License 2.0 4 votes vote down vote up
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 16
Source File: PhotoViewAttacher.java    From narrate-android with Apache License 2.0 4 votes vote down vote up
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 17
Source File: PhotoViewAttacher.java    From AndroidPickPhotoDialog with Apache License 2.0 4 votes vote down vote up
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 18
Source File: PhotoViewAttacher.java    From ZoomPreviewPicture with Apache License 2.0 4 votes vote down vote up
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 19
Source File: PhotoViewAttacher.java    From Android with MIT License 4 votes vote down vote up
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}
 
Example 20
Source File: PhotoViewAttacher.java    From OmniList with GNU Affero General Public License v3.0 4 votes vote down vote up
public Bitmap getVisibleRectangleBitmap() {
    ImageView imageView = getImageView();
    return imageView == null ? null : imageView.getDrawingCache();
}