Copying a frame to an image.

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
MCla
Posts: 11
Joined: Sat Feb 20, 2010 5:37 am

Copying a frame to an image.

Post by MCla » Sat Feb 20, 2010 5:43 am

I would like to copy ( at full resolution) a single frame from a quicktime movie.
Any suggestions?
I was given by Jaqueline (runrev) the suggestion of import snapshot. This however requires the movie to be displayed at full size (which I would like to avoid if possible).
The idea is to take individual frames from a movie for further analysis.

Cheers,

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Re: Copying a frame to an image.

Post by bn » Sat Feb 20, 2010 11:22 am

MCla,
I attach a little stack that does this, it imports a snapshot from your player, the player is smaller than the original size of the source, temporarily the player is resized and the snapshot taken and than the player is set back to it's initial size. Now the import snapshot just dumps the image onto the card of the player, you have to fiddle around with import/export snapshot to your liking, but basically this works.
regards
Bernd
Attachments
importSnapFromPlayer.rev.zip
(1.42 KiB) Downloaded 215 times

MCla
Posts: 11
Joined: Sat Feb 20, 2010 5:37 am

Re: Copying a frame to an image.

Post by MCla » Sat Feb 20, 2010 7:00 pm

Thanks a lot.
Yes it does the job!

Cheers,

Post Reply