mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +00:00
update bitmap example code
This commit is contained in:
parent
997e60a165
commit
0545aff0f2
@ -62,7 +62,9 @@ func bitmapString(bmp robotgo.CBitmap) {
|
|||||||
|
|
||||||
// sbitmap := robotgo.BitmapFromstring(bitstr, 2)
|
// sbitmap := robotgo.BitmapFromstring(bitstr, 2)
|
||||||
// fmt.Println("...", sbitmap)
|
// fmt.Println("...", sbitmap)
|
||||||
sbitmap := robotgo.BitmapStr(bitstr)
|
|
||||||
|
// sbitmap := robotgo.BitmapStr(bitstr)
|
||||||
|
sbitmap := robotgo.BitmapFromStr(bitstr)
|
||||||
fmt.Println("bitmap str...", sbitmap)
|
fmt.Println("bitmap str...", sbitmap)
|
||||||
robotgo.SaveBitmap(sbitmap, "teststr.png")
|
robotgo.SaveBitmap(sbitmap, "teststr.png")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user