From e2fa7d6ee022efae9ace5fb1884645f8fcdd460d Mon Sep 17 00:00:00 2001 From: vCaesar Date: Sun, 23 Oct 2016 23:53:20 +0800 Subject: [PATCH] Update bitmap doc --- doc.md | 19 +++++++++++++++++-- zh_doc.md | 17 ++++++++++++++++- 2 files changed, 33 insertions(+), 3 deletions(-) diff --git a/doc.md b/doc.md index e062708..122b4a3 100644 --- a/doc.md +++ b/doc.md @@ -29,6 +29,7 @@ OpenBitmap SaveBitmap TostringBitmap + GetPortion ##Keyboard @@ -235,7 +236,8 @@ robotgo.ScrollMouse(50, "down") ####Arguments: - bitmap + bitmap; + rect(optional): x, y, w, h ####Return: @@ -279,5 +281,18 @@ robotgo.ScrollMouse(50, "down") ####Return: - Return a sting bitmap + Return a sting bitmap + +###.GetPortion + + bitmap from a portion + +####Arguments: + + bitmap, + rect: x, y, w, h + +####Return: + + Returns new bitmap object created from a portion of another diff --git a/zh_doc.md b/zh_doc.md index 4211a04..99046cf 100644 --- a/zh_doc.md +++ b/zh_doc.md @@ -29,6 +29,7 @@ OpenBitmap SaveBitmap TostringBitmap + GetPortion ##键盘 @@ -253,7 +254,8 @@ robotgo.ScrollMouse(50, "down") ####参数: - bitmap + bitmap; + rect(可选参数): x, y, w, h ####Return: @@ -299,4 +301,17 @@ robotgo.ScrollMouse(50, "down") 返回一个bitmap字符串 +###.GetPortion + + bitmap from a portion + +####参数: + + bitmap, + rect: x, y, w, h + +####返回值: + + Returns new bitmap object created from a portion of another +