Image woes...

Klaus Major klaus at major-k.de
Wed Oct 12 16:22:11 EDT 2005


Hi Todd,

> Still having problems
> ...
> ON mouseUp
>     put the clipboardData["image"] into img "image"
>     put specialFolderPath("desktop") & "/test.png" into tPath
>     put "binfile:" & tPath into tURL
>     put img "image" into URL tURL
> END MouseUP
>
> -->  test.png is created on on the desktop and looks good when  
> opened with
> "Preview".  And img "image" shows the image contents.
>
> I have a second button with this handler to copy the image back off  
> the disk
> into  a second image control.
>
> ON mouseUp
>     put specialFolderPath("desktop") & "/test.png" into tPath
>     put URL tURL into img "image2"
>     put the result
> END MouseUP
>
> -->  FAILS.  The second image control img "image2" is still empty.
>
> Any clues?

Yep, took me a couple of minutes before i noticed this ;-)

> ON mouseUp
>     put specialFolderPath("desktop") & "/test.png" into tPath
        put "binfile:" & tPath into tURL  ##the missing link :-)
>     put URL tURL into img "image2"
>     put the result
> END MouseUP

> Thanks very much
>
> Todd

Best from germany

Klaus Major
klaus at major-k.de
http://www.major-k.de




More information about the use-livecode mailing list