mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-03 23:53:54 +00:00
Update notes
This commit is contained in:
parent
48788878e7
commit
97e20fce9d
@ -39,7 +39,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
version string = "v0.42.0.235,Mount Ngauruhoe!"
|
version string = "v0.42.0.237,Mount Ngauruhoe!"
|
||||||
)
|
)
|
||||||
|
|
||||||
//GetVersion get version
|
//GetVersion get version
|
||||||
@ -58,7 +58,6 @@ func GetVersion() string {
|
|||||||
|
|
||||||
//Bitmap is Bitmap struct
|
//Bitmap is Bitmap struct
|
||||||
type Bitmap struct {
|
type Bitmap struct {
|
||||||
// type Bit_map struct {
|
|
||||||
ImageBuffer *uint8
|
ImageBuffer *uint8
|
||||||
Width int
|
Width int
|
||||||
Height int
|
Height int
|
||||||
@ -131,7 +130,6 @@ func CaptureScreen(args ...int) C.MMBitmapRef {
|
|||||||
|
|
||||||
//BCaptureScreen Capture the screen and return bitmap(go struct)
|
//BCaptureScreen Capture the screen and return bitmap(go struct)
|
||||||
func BCaptureScreen(args ...int) Bitmap {
|
func BCaptureScreen(args ...int) Bitmap {
|
||||||
// func Capture_Screen(args ...int) Bitmap {
|
|
||||||
var x C.size_t
|
var x C.size_t
|
||||||
var y C.size_t
|
var y C.size_t
|
||||||
var w C.size_t
|
var w C.size_t
|
||||||
@ -154,7 +152,6 @@ func BCaptureScreen(args ...int) Bitmap {
|
|||||||
|
|
||||||
bit := C.aCaptureScreen(x, y, w, h)
|
bit := C.aCaptureScreen(x, y, w, h)
|
||||||
// Println("...", bit)
|
// Println("...", bit)
|
||||||
// bit_map := Bit_map{
|
|
||||||
bitmap := Bitmap{
|
bitmap := Bitmap{
|
||||||
ImageBuffer: (*uint8)(bit.imageBuffer),
|
ImageBuffer: (*uint8)(bit.imageBuffer),
|
||||||
Width: int(bit.width),
|
Width: int(bit.width),
|
||||||
@ -164,7 +161,6 @@ func BCaptureScreen(args ...int) Bitmap {
|
|||||||
BytesPerPixel: uint8(bit.bytesPerPixel),
|
BytesPerPixel: uint8(bit.bytesPerPixel),
|
||||||
}
|
}
|
||||||
|
|
||||||
// return bit_map
|
|
||||||
return bitmap
|
return bitmap
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user