Hi Martijn,
I'd like to convert a rgb bitmap to greyscale with lingo. How can it be
done?
I suppose I can use imaging lingo to adjust the (R,G,B).
will this work?:
(... getPixel code...)
Syntax may be off a little, but will it work by just take the
average of R,
G and B. Then assign
cool!
thanks, I tested the get/setpixels and indeed it was way too slow...
Thanks for the help!!
Martijn
- Original Message -
From: séb [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 03, 2002 11:32 AM
Subject: lingo-l RE: lingo-lconvert to greyscale with lingo
Hi
Martijn Janssen wrote
cool!
thanks, I tested the get/setpixels and indeed it was way too slow...
Thanks for the help!!
Incidentally, if you did want to use get/SetPixels, you can desaturate the
colours like this
colour = buffer.getPixel(x,y)
desatValue = (76*colour.red +