Michael von Aichberger <[EMAIL PROTECTED]> wrote: > I want just the integer value of [paletteIndex( 105 )]. > In this case 105.
Hi Michael, You answered your own question as far as the getPixel() command is concerned. If you need to get the index value of a color, you can do it like this: tColor = rgb(123, 45, 67) put tColor.paletteIndex -- 136 To convert an RGB color to a its nearest equivalent in the current palette: tColor.colorType = #paletteIndex put tColor -- paletteIndex( 136 ) Cheers, James [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
