Update: update examples

This commit is contained in:
vcaesar 2023-01-22 18:38:28 -08:00
parent bb76af18f0
commit 23d3df9027

View File

@ -17,8 +17,8 @@ func main() {
// robotgo.SaveBitmap(bitmap, "test.png")
robotgo.Save(robotgo.ToImage(bitmap), "test.png")
sx := robotgo.ScaleX()
s := robotgo.Scale()
sx := robotgo.ScaleX() // Deprecated
s := robotgo.Scale1() // Deprecated, use the ScaleF() function
robotx, roboty := 35*s/100, 25*s/100
fmt.Println("scale: ", sx, s, " pos: ", robotx, roboty)