From 0545aff0f2efa8b721c35f003ebc6eb517eafb30 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Mon, 22 Apr 2019 13:49:34 -0400 Subject: [PATCH] update bitmap example code --- examples/bitmap/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/bitmap/main.go b/examples/bitmap/main.go index ac73659..9999ff2 100644 --- a/examples/bitmap/main.go +++ b/examples/bitmap/main.go @@ -62,7 +62,9 @@ func bitmapString(bmp robotgo.CBitmap) { // sbitmap := robotgo.BitmapFromstring(bitstr, 2) // fmt.Println("...", sbitmap) - sbitmap := robotgo.BitmapStr(bitstr) + + // sbitmap := robotgo.BitmapStr(bitstr) + sbitmap := robotgo.BitmapFromStr(bitstr) fmt.Println("bitmap str...", sbitmap) robotgo.SaveBitmap(sbitmap, "teststr.png") }