Update bitmap docs

This commit is contained in:
vCaesar 2017-06-07 20:44:52 +08:00
parent a98f122d4c
commit 64d7dff06e
2 changed files with 85 additions and 4 deletions

View File

@ -47,6 +47,8 @@
##### [GetPortion](#GetPortion)
##### [Convert](#Convert)
#### [FreeBitmap](#FreeBitmap)
#### [ReadBitmap](#ReadBitmap)
#### [CopyBitpb](#CopyBitpb)
## [Event](#Event)
@ -399,13 +401,13 @@ robotgo.ScrollMouse(50, "down")
robotgo.Convert("test.png", "test.tif")
```
### <h3 id="FreeBitmap">.FreeBitmap(MMImageType)</h3>
### <h3 id="FreeBitmap">.FreeBitmap(MMBitmapRef)</h3>
FreeBitmap free and dealloc bitmap
#### Arguments:
MMImageType
MMBitmapRef
#### Examples:
@ -413,6 +415,44 @@ robotgo.Convert("test.png", "test.tif")
robotgo.FreeBitmap(bitmap)
```
### <h3 id="ReadBitmap">.ReadBitmap(MMBitmapRef)</h3>
ReadBitmap returns false and sets error if |bitmap| is NULL
#### Arguments:
MMBitmapRef
#### Return:
bool
#### Examples:
```Go
robotgo.ReadBitmap(bitmap)
```
### <h3 id="CopyBitpb">.CopyBitpb(MMBitmapRef)</h3>
CopyBitpb copy bitmap to pasteboard
#### Arguments:
MMBitmapRef
#### Return:
bool
#### Examples:
```Go
robotgo.CopyBitpb(bitmap)
```
## <h2 id="Event">Event</h2>
### <h3 id="AddEvent">.AddEvent(string)</h3>

View File

@ -50,6 +50,8 @@
##### [GetPortion](#GetPortion)
##### [Convert](#Convert)
#### [FreeBitmap](#FreeBitmap)
#### [ReadBitmap](#ReadBitmap)
#### [CopyBitpb](#CopyBitpb)
## [事件](#Event)
@ -415,19 +417,58 @@ robotgo.ScrollMouse(50, "down")
robotgo.Convert("test.png", "test.tif")
```
### <h3 id="FreeBitmap">.FreeBitmap(MMImageType)</h3>
### <h3 id="FreeBitmap">.FreeBitmap(MMBitmapRef)</h3>
FreeBitmap free and dealloc bitmap
#### 参数:
MMImageType
MMBitmapRef
#### 示例:
```Go
robotgo.FreeBitmap(bitmap)
```
### <h3 id="ReadBitmap">.ReadBitmap(MMBitmapRef)</h3>
ReadBitmap returns false and sets error if |bitmap| is NULL
#### 参数:
MMBitmapRef
#### 返回值:
bool
#### 示例:
```Go
robotgo.ReadBitmap(bitmap)
```
### <h3 id="CopyBitpb">.CopyBitpb(MMBitmapRef)</h3>
CopyBitpb copy bitmap to pasteboard
#### 参数:
MMBitmapRef
#### 返回值:
bool
#### 示例:
```Go
robotgo.CopyBitpb(bitmap)
```
## <h2 id="Event">事件</h2>
### <h3 id="AddEvent">.AddEvent(string)</h3>