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

        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)
文档更新时间: 2020-04-29 16:38   作者:Gainscha佳博