mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-24 02:08:33 +00:00
add bitmap from string clear api
This commit is contained in:
parent
43958d71e2
commit
0d6d65418e
1 changed files with 5 additions and 0 deletions
|
|
@ -1041,6 +1041,11 @@ func OpenImg(path string) []byte {
|
|||
|
||||
// BitmapStr bitmap from string
|
||||
func BitmapStr(str string) C.MMBitmapRef {
|
||||
return BitmapFromStr(str)
|
||||
}
|
||||
|
||||
// BitmapFromStr bitmap from string
|
||||
func BitmapFromStr(str string) C.MMBitmapRef {
|
||||
cs := C.CString(str)
|
||||
bit := C.bitmap_from_string(cs)
|
||||
C.free(unsafe.Pointer(cs))
|
||||
|
|
|
|||
Loading…
Reference in a new issue