Method | Description | |
---|---|---|
Base64Img ( string Base64String ) : Image |
Base64转Image
|
|
ByteArrToStr ( byte byteArray ) : string |
字节数组转字符串
|
|
GetWebImage ( string url ) : |
获取网络图片
|
|
ImgBase64 ( string path, bool isWebImg = false ) : string |
图片转Base64
|
|
JoinByteArr ( byte byte1, byte byte2 ) : byte[] |
字节数组合并
|
|
StrToByteArr ( string str ) : byte[] |
字符串转字节数组
|
|
UnixTime ( double expired ) : string |
UnixTime时间戳
|
public static Base64Img ( string Base64String ) : Image | ||
Base64String | string | Base64String |
return | Image |
public static ByteArrToStr ( byte byteArray ) : string | ||
byteArray | byte | |
return | string |
public static GetWebImage ( string url ) : |
||
url | string | URL地址 |
return |
public static ImgBase64 ( string path, bool isWebImg = false ) : string | ||
path | string | 图片路径 |
isWebImg | bool | 是否网络图片 默认 false |
return | string |
public static JoinByteArr ( byte byte1, byte byte2 ) : byte[] | ||
byte1 | byte | |
byte2 | byte | |
return | byte[] |
public static StrToByteArr ( string str ) : byte[] | ||
str | string | |
return | byte[] |
public static UnixTime ( double expired ) : string | ||
expired | double | 有效期(单位:秒) |
return | string |