Dokka MultiModule Example
androidJvm
pos-core
/
su.ips.pos_core.reader_parts.signature_parts
/
PicUtils
Pic
Utils
open
class
PicUtils
Created by Administrator on 2016/12/6.
Members
Constructors
Pic
Utils
Link copied to clipboard
constructor
(
)
Functions
convert
Grey
Img
Link copied to clipboard
open
fun
convertGreyImg
(
img
:
Bitmap
)
:
Bitmap
将彩色图转换为灰度图
get
Bytes
From
Input
Stream
Link copied to clipboard
open
fun
getBytesFromInputStream
(
is
:
InputStream
,
bufsiz
:
Int
)
:
Array
<
Byte
>
get the bytes from InputStream
get
Pic
From
Bytes
Link copied to clipboard
open
fun
getPicFromBytes
(
bytes
:
Array
<
Byte
>
,
opts
:
BitmapFactory.Options
)
:
Bitmap
get the picture from bytes
switch
Color
Link copied to clipboard
open
fun
switchColor
(
switchBitmap
:
Bitmap
)
:
Bitmap
zoom
Image
Link copied to clipboard
open
fun
zoomImage
(
bgimage
:
Bitmap
,
newWidth
:
Double
)
:
Bitmap
* 图片的缩放方法 a method to zoom the scaling of Image