SmartPos SDK for Android 1.4.1

Data Structures | Static Public Member Functions
com.paydevice.smartpos.sdk.ImageUtils Class Reference

## Data Structures
enum | DitherType
| dithering algorithm: ATKINSON,BURKES,FLOYD_STEINBERG,JARVIS,SIERRA,STUCKI

## Static Public Member Functions
static Bitmap | bmpToGrayDithering (Bitmap bmp, int threshold, boolean inverse, DitherType type)
| Convert a bitmap to gray bitmap by dithering algorithm. More...
static Bitmap | bmpToBlackWhite (Bitmap bmp, int threshold, boolean inverse)
| Convert a bitmap to black white bitmap. More...

## Member Function Documentation

## ◆ bmpToBlackWhite()

static Bitmap com.paydevice.smartpos.sdk.ImageUtils.bmpToBlackWhite | ( | Bitmap | bmp,
|  | int | threshold,
|  | boolean | inverse
| ) |  |
| static

Convert a bitmap to black white bitmap.

Parameters

  bmp | android bitmap
  threshold | black and white threshold
  inverse | set black and white inverse

Returns

## ◆ bmpToGrayDithering()

static Bitmap com.paydevice.smartpos.sdk.ImageUtils.bmpToGrayDithering | ( | Bitmap | bmp,
|  | int | threshold,
|  | boolean | inverse,
|  | DitherType | type
| ) |  |
| static

Convert a bitmap to gray bitmap by dithering algorithm.

Parameters

  bmp | android bitmap
  threshold | dithering threshold
  inverse | set black and white inverse
  type | dithering algorithm, DitherType enum

Returns

The documentation for this class was generated from the following file:

- src/com/paydevice/smartpos/sdk/ImageUtils.java