Android Utililty Methods Bitmap Clip

List of utility methods to do Bitmap Clip

Description

The list of methods to do Bitmap Clip are organized into topic(s).

Method

Bitmapclip(Bitmap bitmap, int x, int y)
clip
int w = bitmap.getWidth();
int h = bitmap.getHeight();
if (h > w)
    return Bitmap.createBitmap(bitmap, 0, (h - w * x / y) / 2, w, w
            * x / y);
else
    return Bitmap.createBitmap(bitmap, (w - h * x / y) / 2, 0, h
            * x / y, h);
...