mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-05-31 06:13:55 +00:00
Update bitmap examples code
This commit is contained in:
parent
cc45178922
commit
458d389e09
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||
|
@ -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)
|
||||
|
BIN
examples/bitmap/imgToBitmap/test_007.jpeg
Normal file
BIN
examples/bitmap/imgToBitmap/test_007.jpeg
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.2 KiB |
Loading…
Reference in New Issue
Block a user