add SaveImg function code

This commit is contained in:
vcaesar 2020-01-31 12:29:15 -04:00
parent f30b2c7797
commit df1a872e09

View File

@ -1086,6 +1086,11 @@ func OpenImg(path string) []byte {
return imgo.ImgToBytes(path)
}
// SaveImg save the image by []byte
func SaveImg(b []byte, path string) {
imgo.Save(path, b)
}
// BitmapStr bitmap from string
func BitmapStr(str string) C.MMBitmapRef {
return BitmapFromStr(str)