Update bitmap examples code

This commit is contained in:
vcaesar 2021-09-15 12:37:42 -04:00
parent cc45178922
commit 458d389e09
3 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -93,4 +93,5 @@ examples/bitmap/imgToBitmap/test_003.jpeg
examples/bitmap/imgToBitmap/test_1.png
examples/bitmap/imgToBitmap/test_2.jpeg
examples/bitmap/imgToBitmap/test.png
examples/bitmap/imgToBitmap/test_7.jpeg
robot_img.png

View File

@ -11,7 +11,7 @@ import (
"github.com/vcaesar/imgo"
)
//go:embed test_01.png
//go:embed test_007.jpeg
var testPng []byte
func main() {
@ -40,7 +40,7 @@ func test() {
robotgo.SavePng(img, "test_1.png")
img1, _ := robotgo.ByteToImg(testPng)
robotgo.SaveJpeg(img1, "test_2.jpeg")
robotgo.SaveJpeg(img1, "test_7.jpeg")
bit2 := robotgo.ToCBitmap(robotgo.ImgToBitmap(img))
fx, fy := robotgo.FindBitmap(bit2)

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB