mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 06:33:56 +00:00
Add more copy bitmap
This commit is contained in:
parent
d0108b61bf
commit
fd894c06cb
@ -54,6 +54,10 @@ bool bitmap_copy_to_pboard(MMBitmapRef bitmap){
|
||||
return true;
|
||||
}
|
||||
|
||||
MMBitmapRef bitmap_deepcopy(MMBitmapRef bitmap){
|
||||
return bitmap == NULL ? NULL : copyMMBitmap(bitmap);
|
||||
}
|
||||
|
||||
MMPoint aFindBitmap(MMBitmapRef bit_map, MMRect rect){
|
||||
// MMRect rect;
|
||||
// rect.size.width = 10;
|
||||
|
@ -680,6 +680,12 @@ func CopyBitpb(bitmap C.MMBitmapRef) bool {
|
||||
return gbool
|
||||
}
|
||||
|
||||
// DeepCopyBit deep copy bitmap
|
||||
func DeepCopyBit(bitmap C.MMBitmapRef) C.MMBitmapRef {
|
||||
bit := C.bitmap_deepcopy(bitmap)
|
||||
return bit
|
||||
}
|
||||
|
||||
/*
|
||||
___________ ____ _______ .__ __. .___________.
|
||||
| ____\ \ / / | ____|| \ | | | |
|
||||
|
Loading…
Reference in New Issue
Block a user