/** * Initialize providing a single target image size (used for both width and height); * * @param context * @param imageSize */ public ImageResizer(Context context, int imageSize) { super(context); setImageSize(imageSize); }
/** * Set the target image size (width and height will be the same). * * @param size */ public void setImageSize(int size) { setImageSize(size, size); }
/** * Initialize providing a single target image size (used for both width and height); * * @param context * @param imageWidth * @param imageHeight */ public ImageResizer(Context context, int imageWidth, int imageHeight) { super(context); setImageSize(imageWidth, imageHeight); }