At 7:07 PM +0100 3/24/2001, Yariv Alter Fin wrote:

>tested but not set? not with imaging lingo around:
>
>on SetMemberDepth mem,dep
>   targ=image(mem.width,mem.height,dep)
>   targ.copyPixels(mem.image,mem.rect,mem.rect)
>   mem.image=targ
>end


You should probably add some additional parameters in there for 8 bit 
image: dither and palette. Also, to make it more useable, make it a 
function to return an image.

And finally, there are some undocumented dither params you might want 
to handle (from the engineer who did the imaging work):

>Use [#dither:1215] - This uses a remapping algorithm that searches 
>the palette for the closest color instead of using 5 bits of R, G 
>and B to find a color.  Good for very subtle palettes with lots of 
>very similar colors.
>
>Use [#dither:1969) - This uses a high-quality dithering algorithm 
>with better results than the regular dither, but a lot slower.
>
>These are undocumented, unsupported, etc.  They worked when I put 
>them in, but I haven't tried them out in a long time.

-- 

     Roy Pardi
--------------------------------------------------------------------
Multimedia Developer   +  Lingo Programming Consultant
                                 [EMAIL PROTECTED]
--------------------------------------------------------------------



[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