Add more copy bitmap

This commit is contained in:
vCaesar 2017-06-29 22:50:53 +08:00
parent d0108b61bf
commit fd894c06cb
2 changed files with 10 additions and 0 deletions

View File

@ -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;

View File

@ -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
}
/*
___________ ____ _______ .__ __. .___________.
| ____\ \ / / | ____|| \ | | | |