Hello,
I want to copy a card as an image of that card to the clipboard.
Does somebody know how this is done?
Thanks,
Dirk
Copy card to clipboard as image
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Livecode Opensource Backer
- Posts: 9454
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria
Re: Copy card to clipboard as image
Code: Select all
on mouseUp
import snapshot from card "KARD"
set the name of the last image to "XXX"
copy image "XXX"
delete image "XXX"
end mouseUp
- Attachments
-
- copier.livecode.zip
- Stack.
- (29.98 KiB) Downloaded 78 times
-
- Posts: 12
- Joined: Thu Feb 12, 2015 12:22 pm
Re: Copy card to clipboard as image
Hello Richmond62!,
Thank you!
You helped me twice already.
Awesome!!
Dirk
Thank you!
You helped me twice already.
Awesome!!
Dirk
Re: Copy card to clipboard as image
Also:
Code: Select all
on mouseUp pMouseButton
export snapshot from this card to sImage as JPEG
set the clipboardData["image"] to sImage
end mouseUp