Skip to content

Commit

Permalink
Update: update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
vcaesar committed Jan 23, 2023
1 parent bb76af1 commit 23d3df9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/scale/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 23d3df9

Please sign in to comment.