静态 Public 成员函数 | |
| static Bitmap | getBitmap (String url, int type, int desiredWidth, int desiredHeight) |
| static Bitmap | getBitmap (File file) |
| static Bitmap | getScaleBitmap (File file, int desiredWidth, int desiredHeight) |
| static Bitmap | getScaleBitmap (Bitmap bitmap, int desiredWidth, int desiredHeight) |
| static Bitmap | getScaleBitmap (Bitmap bitmap, float scale) |
| static Bitmap | getCutBitmap (File file, int desiredWidth, int desiredHeight) |
| static Bitmap | getCutBitmap (Bitmap bitmap, int desiredWidth, int desiredHeight) |
| static float[] | getBitmapSize (File file) |
| static Bitmap | drawableToBitmap (Drawable drawable) |
| static Drawable | bitmapToDrawable (Bitmap bitmap) |
| static TransitionDrawable | bitmapToTransitionDrawable (Bitmap bitmap) |
| static TransitionDrawable | drawableToTransitionDrawable (Drawable drawable) |
| static byte[] | bitmap2Bytes (Bitmap bitmap, Bitmap.CompressFormat mCompressFormat, final boolean needRecycle) |
| static int | getByteCount (Bitmap bitmap, Bitmap.CompressFormat mCompressFormat) |
| static Bitmap | bytes2Bimap (byte[] b) |
| static Bitmap | imageView2Bitmap (ImageView view) |
| static Drawable | view2Drawable (View view) |
| static Bitmap | view2Bitmap (View view) |
| static byte[] | view2Bytes (View view, Bitmap.CompressFormat compressFormat) |
| static Bitmap | rotateBitmap (Bitmap bitmap, float degrees) |
| static Bitmap | rotateBitmapTranslate (Bitmap bitmap, float degrees) |
| static Bitmap | toRoundBitmap (Bitmap bitmap) |
| static Bitmap | toReflectionBitmap (Bitmap bitmap) |
| static void | releaseBitmap (Bitmap bitmap) |
| static void | releaseBitmapArray (Bitmap[] bitmaps) |
| static String | getHashCode (Bitmap bitmap) |
| static String | getDCTHashCode (Bitmap bitmap) |
| static int[] | getColorHistogram (Bitmap bitmap) |
| static int | hammingDistance (String sourceHashCode, String hashCode) |
| static void | main (String[] args) |
静态 Public 属性 | |
| static final int | CUTIMG = 0 |
| static final int | SCALEIMG = 1 |
| static final int | ORIGINALIMG = 2 |
| static final int | MAX_WIDTH = 4096/2 |
| static final int | MAX_HEIGHT = 4096/2 |
静态 Private 成员函数 | |
| static float | getMinScale (int srcWidth, int srcHeight, int desiredWidth, int desiredHeight) |
| static int[] | resizeToMaxSize (int srcWidth, int srcHeight, int desiredWidth, int desiredHeight) |
| static boolean | checkBitmap (Bitmap bitmap) |
| static boolean | checkSize (int desiredWidth, int desiredHeight) |
| static int | rgbToGray (int pixels) |
© 2012 amsoft.cn 名称:AbImageUtil.java 描述:图片处理类.
|
inlinestatic |
将Bitmap转换为byte[].
| bitmap | the bitmap |
| mCompressFormat | 图片格式 Bitmap.CompressFormat.JPEG,CompressFormat.PNG |
| needRecycle | 是否需要回收 |
|
inlinestatic |
Bitmap对象转换Drawable对象.
| bitmap | 要转化的Bitmap对象 |
|
inlinestatic |
Bitmap对象转换TransitionDrawable对象.
| bitmap | 要转化的Bitmap对象 imageView.setImageDrawable(td); td.startTransition(200); |
|
inlinestatic |
描述:将byte[]转换为Bitmap.
| b | 图片格式的byte[]数组 |
|
inlinestaticprivate |
|
inlinestaticprivate |
|
inlinestatic |
Drawable转Bitmap.
| drawable | 要转化的Drawable |
|
inlinestatic |
Drawable对象转换TransitionDrawable对象.
| drawable | 要转化的Drawable对象 imageView.setImageDrawable(td); td.startTransition(200); |
|
inlinestatic |
直接获取互联网上的图片.
| url | 要下载文件的网络地址 |
| type | 图片的处理类型(剪切或者缩放到指定大小,参考AbConstant类) |
| desiredWidth | 新图片的宽 |
| desiredHeight | 新图片的高 |
|
inlinestatic |
描述:获取原图.
| file | File对象 |
|
inlinestatic |
描述:获取图片尺寸
| file | File对象 |
|
inlinestatic |
获取Bitmap大小.
| bitmap | the bitmap |
| mCompressFormat | 图片格式 Bitmap.CompressFormat.JPEG,CompressFormat.PNG |
|
inlinestatic |
描述:图像的特征值颜色分布 将颜色分4个区,0,1,2,3 区组合共64组,计算每个像素点属于哪个区.
| bitmap | the bitmap |
|
inlinestatic |
描述:裁剪图片.
| file | File对象 |
| desiredWidth | 新图片的宽 |
| desiredHeight | 新图片的高 |
|
inlinestatic |
描述:裁剪图片.
| bitmap | the bitmap |
| desiredWidth | 新图片的宽 |
| desiredHeight | 新图片的高 |
|
inlinestatic |
描述:图像的特征值余弦相似度.
| bitmap | the bitmap |
|
inlinestatic |
描述:简单的图像的特征值,用于缩略图找原图比较好.
| bitmap | the bitmap |
|
inlinestaticprivate |
|
inlinestatic |
描述:缩放图片.压缩
| file | File对象 |
| desiredWidth | 新图片的宽 |
| desiredHeight | 新图片的高 |
|
inlinestatic |
描述:缩放图片,不压缩的缩放.
| bitmap | the bitmap |
| desiredWidth | 新图片的宽 |
| desiredHeight | 新图片的高 |
|
inlinestatic |
描述:根据等比例缩放图片.
| bitmap | the bitmap |
| scale | 比例 |
|
inlinestatic |
计算"汉明距离"(Hamming distance)。 如果不相同的数据位不超过5,就说明两张图片很相似;如果大于10,就说明这是两张不同的图片。.
| sourceHashCode | 源hashCode |
| hashCode | 与之比较的hashCode |
|
inlinestatic |
将ImageView转换为Bitmap.
| view | 要转换为bitmap的View |
|
inlinestatic |
The main method.
| args | the arguments |
|
inlinestatic |
释放Bitmap对象.
| bitmap | 要释放的Bitmap |
|
inlinestatic |
释放Bitmap数组.
| bitmaps | 要释放的Bitmap数组 |
|
inlinestaticprivate |
|
inlinestaticprivate |
灰度值计算.
| pixels | 像素 |
|
inlinestatic |
描述:旋转Bitmap为一定的角度.
| bitmap | the bitmap |
| degrees | the degrees |
|
inlinestatic |
描述:旋转Bitmap为一定的角度并四周暗化处理.
| bitmap | the bitmap |
| degrees | the degrees |
|
inlinestatic |
转换图片转换成镜面效果的图片.
| bitmap | 传入Bitmap对象 |
|
inlinestatic |
转换图片转换成圆形.
| bitmap | 传入Bitmap对象 |
|
inlinestatic |
将View转换为Bitmap.需要最上层布局为Linearlayout
| view | 要转换为bitmap的View |
|
inlinestatic |
将View转换为byte[].
| view | 要转换为byte[]的View |
| compressFormat | the compress format |
|
inlinestatic |
将View转换为Drawable.需要最上层布局为Linearlayout
| view | 要转换为Drawable的View |
|
static |
图片处理:裁剪.
|
static |
图片最大高度.
|
static |
图片最大宽度.
|
static |
图片处理:不处理.
|
static |
图片处理:缩放.
1.8.8