Rev Crash Again! ... cardImage() function

Alejandro Tejada capellan2000 at yahoo.com
Fri Jan 9 16:03:35 EST 2004


Wouter wrote:

> #### = changed
> function cardImage theStack ####
>    local tCurrentCardImage, tOldBuffer, tID
>    put the alwaysBuffer of stack theStack into
> tOldBuffer
>    put the cantmodify of stack theStack into
> tCMOldBuffer  ####
>    set the cantmodify of  stack theStack to false  
> ####
>    set the alwaysBuffer of  stack theStack to false
>    set the alwaysBuffer of stack theStack to true
>    put the windowID of stack theStack into wID
>    put the pixMapID of  stack theStack into pID
>    if not ((pID is wID) or (pID is 0)) then
>      create invisible image
>      put the imagePixMapID of last image into tID
>      set the imagePixMapID of last image to (the
> pixMapID of stack 
> theStack) ####
>      export last image to tCurrentCardImage as PNG
>      set the imagePixMapID of last image to tID
>      set the alwaysBuffer of stack theStack to false
>      set the cantmodify of stack theStack to
> tCMOldBuffer  ####
>      delete last image
>    end if
>    return tCurrentCardImage
> end cardImage

How did you call this function?

I wrote in the message box the following

get cardImage(Home)
put it

and the result is the binary PNG data in
the message box and a temporal image that
dissapears when I click on it.

al




=====
Visit my site:
http://www.geocities.com/capellan2000/
Search the mail list:
http://mindlube.com/cgi-bin/search-use-rev.cgi

__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus


More information about the use-livecode mailing list