At 19:42 +0000 03/20/2002, Jason Ross wrote:

>I am capturing the stage with the following commands:
>
>myImage=(the stage).image
>member(10).image = myImage
>
>This works fine, but is there a way to capture part of the stage ...
>i.e. a certain rect(a,b,c,d) of the stage?

Sure. Well, sort of. Make an image object that has the dimensions you 
want, then do a copyPixels of the rect of the part of the stage's 
image that you want.

Something like:

   iMyImageObject = image( width, height, 24 ) -- 24-bit, w by h pixels
   iMyImageObject.copyPixels ( the stage.image, \
                               rect ( 0, 0, width, height ), \
                               rect ( yourStageAreaSourceRect ) )

So all you really have to do is define the size of the new image 
object, then copyPixels on the rect area in the stage's image you 
want.

Then slap that image object into your member:

   member(someDeelyBob).image = iMyImageObject

Helpeth that?

-- 

              Warren Ockrassa | http://www.nightwares.com/
  Director help | Free files | Sample chapters | Freelance | Consulting
        Author | Director 8.5 Shockwave Studio: A Beginner's Guide
                    Published by Osborne/McGraw-Hill
          http://www.osborne.com/indexes/beginners_guides.shtml
[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!]

Reply via email to