Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.koushikdutta.ion;
 
 import  android.graphics.Bitmap;
 
 
 class BitmapInfoToBitmap extends TransformFuture<Bitmap, BitmapInfo> {
    public BitmapInfoToBitmap(ContextReference contextReference) {
        this. = contextReference;
    }
    @Override
    protected void transform(BitmapInfo resultthrows Exception {
        if (.isAlive() != null) {
            cancel();
            return;
        }
        if (result.exception != null)
            setComplete(result.exception);
        else
            setComplete(result.bitmap);
    }
New to GrepCode? Check out our FAQ X