Q: Can I use only a part of an Image File and do stuff with it ?
Richmond Mathewson
richmondmathewson at gmail.com
Wed Sep 30 11:13:05 EDT 2009
Rolf Kocherhans wrote:
> For instance I have an imported Image file (png) 10 pixels high and
> 100 pixels long.
>
> From pixel 1 to 10 ist Picture_one, from pixel 11 to 20 is Picture
> _two etc.
>
> Can I the display those 2 respectively 10 pictures individually ?
>
> Cheers
> Rolf
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
If you look up 'pixel' in the Documentation you will find that this
cannot be done.
However, you could chop up your image by importing snapshots of parts of it:
on mouseUp
import snapshot from rectangle 0,0,300,454 of img "iXYZ"
move the last img to 512, 600
delete img "iXYZ"
end mouseUp
More information about the use-livecode
mailing list