From 92c57da678d0c94190bdf663a21830a2f237f789 Mon Sep 17 00:00:00 2001 From: vCaesar Date: Sun, 30 Oct 2016 19:26:56 +0800 Subject: [PATCH] Update doc --- doc.md | 23 ++++++++++++++++++++--- zh_doc.md | 18 +++++++++++++++++- 2 files changed, 37 insertions(+), 4 deletions(-) diff --git a/doc.md b/doc.md index 63000ee..3978a7f 100644 --- a/doc.md +++ b/doc.md @@ -36,7 +36,7 @@ #####[SaveBitmap](#SaveBitmap) #####[TostringBitmap](#TostringBitmap) #####[GetPortion](#GetPortion) - +#####[Convert](#Convert) ##

Keyboard

@@ -259,7 +259,8 @@ robotgo.ScrollMouse(50, "down") ####Arguments: - bitmap image path + bitmap image path, + MMImageType(optional) ####Return: @@ -303,5 +304,21 @@ robotgo.ScrollMouse(50, "down") ####Return: - Returns new bitmap object created from a portion of another + Returns new bitmap object created from a portion of another + +###

.Convert(openpath, savepath,MMImageType)

+ + Convert the image format + +####Arguments: + + openpath, + savepath, + MMImageType(optional) + +####Examples: + +```Go + robotgo.Convert("test.png", "test.tif") +``` diff --git a/zh_doc.md b/zh_doc.md index a761039..f3d6b6e 100644 --- a/zh_doc.md +++ b/zh_doc.md @@ -36,6 +36,7 @@ #####[SaveBitmap](#SaveBitmap) #####[TostringBitmap](#TostringBitmap) #####[GetPortion](#GetPortion) +#####[Convert](#Convert) ##

键盘

@@ -274,7 +275,8 @@ robotgo.ScrollMouse(50, "down") ####参数: - bitmap图片路径 + bitmap图片路径, + MMImageType(可选) ####返回值: @@ -320,4 +322,18 @@ robotgo.ScrollMouse(50, "down") Returns new bitmap object created from a portion of another +###

.Convert(openpath, savepath,MMImageType)

+ 转换bitmap图片格式 + +####参数: + + openpath, + savepath, + MMImageType(可选) + +####例子: + +```Go + robotgo.Convert("test.png", "test.tif") +```