mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +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)
|
return imgo.ImgToBytes(path)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SaveImg save the image by []byte
|
||||||
|
func SaveImg(b []byte, path string) {
|
||||||
|
imgo.Save(path, b)
|
||||||
|
}
|
||||||
|
|
||||||
// BitmapStr bitmap from string
|
// BitmapStr bitmap from string
|
||||||
func BitmapStr(str string) C.MMBitmapRef {
|
func BitmapStr(str string) C.MMBitmapRef {
|
||||||
return BitmapFromStr(str)
|
return BitmapFromStr(str)
|
||||||
|
Loading…
Reference in New Issue
Block a user