mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 14:43:55 +00:00
Update: update examples
This commit is contained in:
parent
bb76af18f0
commit
23d3df9027
@ -17,8 +17,8 @@ func main() {
|
|||||||
// robotgo.SaveBitmap(bitmap, "test.png")
|
// robotgo.SaveBitmap(bitmap, "test.png")
|
||||||
robotgo.Save(robotgo.ToImage(bitmap), "test.png")
|
robotgo.Save(robotgo.ToImage(bitmap), "test.png")
|
||||||
|
|
||||||
sx := robotgo.ScaleX()
|
sx := robotgo.ScaleX() // Deprecated
|
||||||
s := robotgo.Scale()
|
s := robotgo.Scale1() // Deprecated, use the ScaleF() function
|
||||||
robotx, roboty := 35*s/100, 25*s/100
|
robotx, roboty := 35*s/100, 25*s/100
|
||||||
fmt.Println("scale: ", sx, s, " pos: ", robotx, roboty)
|
fmt.Println("scale: ", sx, s, " pos: ", robotx, roboty)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user