At 11:09 AM +0100 12/12/2000, Roberto Briozzo wrote:
>>  What version of Director? Its easy with Director 8 imaging lingo. I
>>  don't think you can do it in earlier versions without an xtra (like
>>  CastFX xtra)
>>
>>  (and right you can't set the depth of a member)
>>  --
>
>Director 8
>

then it's easy:

member("someMember").image = convertToEight("someMember")

on convertToEight(memName)

   sourceImg = member(memName).image
   buffer = image(sourceImg.width, sourceImg.height, 8, \
                    #systemMac)

   buffer.copyPixels(sourceImg, buffer.rect, buffer.rect, [#dither: TRUE])

   return buffer
end


The variables here are the palette you use and the #dither state (boolean)
You can use #systemMac, #systemWin, #grayscale, or a custom cast member palette
-- 




Roy Pardi



[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]

Reply via email to