SmartPos SDK for Android  1.3.7
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
bmpandroid bitmap
thresholdblack and white threshold
inverseset 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
bmpandroid bitmap
thresholddithering threshold
inverseset black and white inverse
typedithering algorithm, DitherType enum
Returns

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