Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.koushikdutta.ion.builder;
 
Created by koush on 5/30/13.
 
 public interface BitmapBuilder<B extends BitmapBuilder<?>> {
    
Apply a transformation to a Bitmap

Parameters:
transform Transform to apply
Returns:
    public B transform(Transform transform);

    
Resize the bitmap to the given dimensions.

Parameters:
width
height
Returns:
    public B resize(int widthint height);

    
Resize the bitmap to the given width dimension, maintaining the aspect ratio of the height.

Parameters:
width
Returns:
    public B resizeWidth(int width);

    
Resize the bitmap to the given height dimension, maintaining the aspect ratio of the width.

Parameters:
height
Returns:
    public B resizeHeight(int height);

    
Center the image inside of the bounds specified by the ImageView or resize operation. This will scale the image so that it fills the bounds, and crops the extra.

Returns:
    public B centerCrop();

    
Center the image inside of the bounds specified by the ImageView or resize operation. This will scale the image so that one dimension is as large as the requested bounds.

Returns:
    public B fitCenter();

    
Center the image inside of the bounds specified by the ImageView or resize operation.

Returns:
    public B centerInside();

    
Fit the image inside the bounds specified by the ImageView or the resize operation. This will scale the image so that both dimensions are as large as the requested bounds.

Returns:
    public B fitXY();

    
Enable/disable automatic resizing to the dimensions of the device when loading the image.

Parameters:
smartSize
Returns:
    public B smartSize(boolean smartSize);

    
Process the bitmap on a background thread.

Parameters:
postProcess
Returns:
    public B postProcess(PostProcess postProcess);
New to GrepCode? Check out our FAQ X