Images

Klaus Major klaus at major-k.de
Fri Jan 27 05:43:34 EST 2006


Hi Scott,

> Hi,
>
> I'm needing to load an image into a
> card and then save that with the card
> (the actual image and not the file
> name reference to it).  I tried the
> code below.  It almost works, but I get
> a black and white image when the last
> line is run in the procedure.
>
>
> ----------  Paste -----------
>   answer file "Select the image:"
      ##set the filename of image "myImage" to it
            put url("binfile:" & it) into img "myimage"
           ## So the image is not referenced but imported!

>       set the left of image "myImage" to the left of me
>       set the top of image "myImage" to the top of me
>       set the rect of image "myImage" to the rect of me
>   set the imageData of image "myImage" to the Imagedata of image
> "HerpImage"

## this action will OVERWRITE the just imported image "myimage"
## with the image "HerpImage"!
## Just in case that is not intended :-)
## Or is this just a typo?

> -----------End Paste -------------
>
> I've tried various other methods with
> no success and the doc's don't seem to
> cover it well.  Any suggestions greatly
> appreciated.
>
> Scott

Regards

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




More information about the use-livecode mailing list