com.android.gprintersdk

## 类 ImageUtils

- java.lang.Object
- - com.android.gprintersdk.ImageUtils

-     public class ImageUtils
      extends java.lang.Object

  Copyright (C), 2012-2020, 鐝犳捣浣冲崥绉戞妧鑲′唤鏈夐檺鍏徃 FileName: ImageUtils Author: Circle Date: 2020/3/7 15:53 Description:图片处理工具

- - ### 构造器概要

    构造器
    构造器和说明
    `ImageUtils()`

  - ### 方法概要

    所有方法 静态方法 具体方法
    限定符和类型 | 方法和说明
    --- | ---
    `static byte[]` | `getCompressedBinaryzationBytes(Bitmap bitmap)`
    `static byte[]` | `getCompressedBinaryzationBytes(Bitmap bitmap, boolean reverse)`
    `static byte[]` | `getCompressedBinaryzationBytes(Bitmap bitmap, int threshold, boolean reverse)`
    `static Bitmap` | `resizeImage(Bitmap bitmap, int w, int h)` 缩放图片

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 构造器详细资料

    - #### ImageUtils

          public ImageUtils()

  - ### 方法详细资料

    - #### resizeImage

          public static Bitmap resizeImage(Bitmap bitmap,
                                           int w,
                                           int h)

      缩放图片
      参数:
        `bitmap` - 原图
        `w` - 缩放高度
        `h` - 缩放高度
      返回:

    - #### getCompressedBinaryzationBytes

          public static byte[] getCompressedBinaryzationBytes(Bitmap bitmap)

    - #### getCompressedBinaryzationBytes

          public static byte[] getCompressedBinaryzationBytes(Bitmap bitmap,
                                                              boolean reverse)

    - #### getCompressedBinaryzationBytes

          public static byte[] getCompressedBinaryzationBytes(Bitmap bitmap,
                                                              int threshold,
                                                              boolean reverse)