> Kerry, > > As part of my current project, we had to do snapshots also - with > different types of media, including QT. We always played the QT > DirectToStage. When the user wanted to take a snapshot, we > temporarily turned DirectToStage off, took the snapshot, then turned > DTS back on. Would this work for you? > > sprite(QTSprite).directToStage = FALSE > -- take snapshot using imaging Lingo > sprite(QTSprite).directToStage = TRUE > > Irv
I just finished debugging it, and found a couple things I needed to do, at least to make it work on Winders: -- set the member dts, not the sprite sprite(pMyQTSprite).member.directToStage = FALSE -- we're likely to get a blank image if we don't update the stage updatestage stageImage = (the stage).image -- got the image. Reset dts sprite(pMyQTSprite).member.directToStage = TRUE -- crop it spriteImage = stageImage.crop(sprite(pMyQTSprite).rect) -- pMyImgMember is a bitmap member member(pMyImgMember).image = spriteImage -- write to file with Werner's excellent Xtra err = gImageXport.exportJPG (member (pMyImgMember), pathToImage, 98) And voila, another happy customer. I added a camera click, and turning dts on and off causes a white flash. Looks just like you're taking a picture! Thanks, Irv, Howdy, & Colin (even though I didn't use your suggestion). Cordially, Kerry Thompson [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
