C# Class TencentYoutuYun.SDK.Csharp.Common.Utility

通用方法
Afficher le fichier Open project: TencentYouTu/CSharp_sdk

Méthodes publiques

Méthode Description
Base64Img ( string Base64String ) : Image

Base64转Image

ByteArrToStr ( byte byteArray ) : string

字节数组转字符串

GetWebImage ( string url ) : Bitmap

获取网络图片

ImgBase64 ( string path, bool isWebImg = false ) : string

图片转Base64

JoinByteArr ( byte byte1, byte byte2 ) : byte[]

字节数组合并

StrToByteArr ( string str ) : byte[]

字符串转字节数组

UnixTime ( double expired ) : string

UnixTime时间戳

Method Details

Base64Img() public static méthode

Base64转Image
public static Base64Img ( string Base64String ) : Image
Base64String string Base64String
Résultat Image

ByteArrToStr() public static méthode

字节数组转字符串
public static ByteArrToStr ( byte byteArray ) : string
byteArray byte
Résultat string

GetWebImage() public static méthode

获取网络图片
public static GetWebImage ( string url ) : Bitmap
url string URL地址
Résultat System.Drawing.Bitmap

ImgBase64() public static méthode

图片转Base64
public static ImgBase64 ( string path, bool isWebImg = false ) : string
path string 图片路径
isWebImg bool 是否网络图片 默认 false
Résultat string

JoinByteArr() public static méthode

字节数组合并
public static JoinByteArr ( byte byte1, byte byte2 ) : byte[]
byte1 byte
byte2 byte
Résultat byte[]

StrToByteArr() public static méthode

字符串转字节数组
public static StrToByteArr ( string str ) : byte[]
str string
Résultat byte[]

UnixTime() public static méthode

UnixTime时间戳
public static UnixTime ( double expired ) : string
expired double 有效期(单位:秒)
Résultat string