mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 06:33:56 +00:00
add SaveImg function code
This commit is contained in:
parent
f30b2c7797
commit
df1a872e09
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user