: RE: RE: moving images between stacks

Chipp Walters chipp at chipp.com
Fri Jul 25 20:32:01 EDT 2003


Good point Tuviah!

Note Edwin, you can also:

on mouseUp
  answer file "Pick an image:"
  if it <> "" then
      put url("binfile:" & it) into image "myinternalimage"
  end if
end mouseUp

which allows you to set the imagedata of an image (and alphadata, too!) from
a file (or URL) outside of Revolution. The target image DOES NOT have to
have the same width and height.

This is also a way to create a 'non-referenced' image from a referenced one.

For instance, say you have an image "test" with it's filename set to
"C:/hello.png"

Then, you can

put URL ("binfile:" & "C:/hello.png") into image "test"

and it will now 'set' the imagedata for that image.

best,

Chipp

> -----Original Message-----
> From: use-revolution-admin at lists.runrev.com
> [mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Tuviah Snyder
> Sent: Friday, July 25, 2003 7:54 PM
> To: use-revolution at lists.runrev.com
> Subject: : RE: RE: moving images between stacks
>
>
> >set the imagedata of img 1 of stack "Untitled 2" to the
> imagedata of img 1
> of stack "Untitled 1"
> Better to use
>
> put image 1 of stack "untitled 1" into image 1 of stack "untitled 2"
>
> this preserves the compression, alphadata and mask, and will work with
> images of any size.
>
> Tuviah Snyder <tuviah at runrev.com> <http://www.runrev.com/>
> Runtime Revolution Limited - Software at the Speed of Thought
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>





More information about the use-livecode mailing list