From 9956b6be372cdf1dd98e912ae548212ff7ad0c93 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Thu, 9 Nov 2017 22:47:53 +0800 Subject: [PATCH] Update examples and docs --- docs/doc.md | 2 +- docs/doc_zh.md | 2 +- examples/main.go | 4 ++-- examples/robot/main.go | 4 ++-- examples/screen/main.go | 4 ++-- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/doc.md b/docs/doc.md index 714cc12..4751d76 100644 --- a/docs/doc.md +++ b/docs/doc.md @@ -330,7 +330,7 @@ robotgo.ScrollMouse(50, "down") Gets part or all of the screen. - BCaptureScreen Returns a go struct + GoCaptureScreen Returns a go struct Capture_Screen (Drop support) #### Arguments: diff --git a/docs/doc_zh.md b/docs/doc_zh.md index 44a6ac3..ebd6761 100644 --- a/docs/doc_zh.md +++ b/docs/doc_zh.md @@ -344,7 +344,7 @@ robotgo.ScrollMouse(50, "down") 获取部分或者全部屏幕 Gets part or all of the screen. - BCaptureScreen Returns a go struct + GoCaptureScreen Returns a go struct Capture_Screen (废弃) #### 参数: diff --git a/examples/main.go b/examples/main.go index 3f15059..374a20d 100644 --- a/examples/main.go +++ b/examples/main.go @@ -109,8 +109,8 @@ func screen() { abitMap := robotgo.CaptureScreen() fmt.Println("abitMap...", abitMap) - gbitMap := robotgo.BCaptureScreen() - fmt.Println("BCaptureScreen...", gbitMap.Width) + gbitMap := robotgo.GoCaptureScreen() + fmt.Println("GoCaptureScreen...", gbitMap.Width) // fmt.Println("...", gbitmap.Width, gbitmap.BytesPerPixel) // gets the screen width and height diff --git a/examples/robot/main.go b/examples/robot/main.go index 1cf9e4c..3300c9e 100644 --- a/examples/robot/main.go +++ b/examples/robot/main.go @@ -109,8 +109,8 @@ func screen() { abitMap := robotgo.CaptureScreen() fmt.Println("abitMap...", abitMap) - gbitMap := robotgo.BCaptureScreen() - fmt.Println("BCaptureScreen...", gbitMap.Width) + gbitMap := robotgo.GoCaptureScreen() + fmt.Println("GoCaptureScreen...", gbitMap.Width) // fmt.Println("...", gbitmap.Width, gbitmap.BytesPerPixel) // gets the screen width and height diff --git a/examples/screen/main.go b/examples/screen/main.go index 4ce9026..409d061 100644 --- a/examples/screen/main.go +++ b/examples/screen/main.go @@ -25,8 +25,8 @@ func main() { abitMap := robotgo.CaptureScreen() fmt.Println("abitMap...", abitMap) - gbitMap := robotgo.BCaptureScreen() - fmt.Println("BCaptureScreen...", gbitMap.Width) + gbitMap := robotgo.GoCaptureScreen() + fmt.Println("GoCaptureScreen...", gbitMap.Width) // fmt.Println("...", gbitmap.Width, gbitmap.BytesPerPixel) // gets the screen width and height