Problem with imagedata
jbv.silences at Club-Internet.fr
Thu Mar 18 12:42:06 CST 2004
Well, no need to answer : now it works...
although I still don't get why it didn't before...
Anyway, did anyone already tried to draw directly
inside an imagedata (segments, curves... and why
not antialiasing) ? IOW try to emulate some kind
of quickdraw routines ?
Yes I know there are drawing tools in Rev, but in
that case the result is different : the drawing is
contained inside an image, which gives more degrees
of freedom for further processing, export, etc.
> I am trying to modify the imagedata of an image
> one pixel at a time.
> The image is totally filled with black pixels.
> In a variable (whitepix) I stored the 4 binary
> values of a white pixel. When I run the following
> piece of script, the WHOLE image becomes white,
> not only the requested pixel :
> get imagedata of img 1
> repeat with i=1 to 4
> put char i of whitepix into char (i+131400) of it
> end repeat
> set imagedata of img 1 to it
> what did I do wrong ?
> use-revolution mailing list
> use-revolution at lists.runrev.com
More information about the use-livecode