Setting Pixels
Robert J Warren (Howsoft.com)
warren at howsoft.com
Tue Jan 28 10:50:00 EST 2003
As I gather from Ken Ray's very useful article "Understanding ImageData,
MaskData and AlphaData", "...you don't set SPECIFIC PARTS of imageData...,
you set these properties as a whole."
>From the examples, this seems to mean in practice that if I want to change a
single pixel in an image I need to read the whole image bitmap into a
variable, change the pixel in the variable, and then copy the whole variable
contents back into the image.
Surely not! This is an incredibly slow process. Can anyone tell me of a
workaround? Or if there is no solution in RunRev #1, will this be fixed in
#2?
All I want to do is something which is as easy as falling off a log in VB. I
want to move the mouse around a window (over an image perhaps, but not
necessarily) and to draw a line of pixels as I go - i.e. construct a very
primitive drawing program. I would be grateful if anyone could help.
Bob Warren
More information about the use-livecode
mailing list