[Image-SIG] ImageEnhance

Jason C. Leach jleach@mail.ocis.net
Wed, 20 Jun 2001 14:12:06 -0700 (PDT)


Ok. I got that working ok.  How can I do multiple enhancments?
Right now I:

enh = ImageEnhance.Contrast(im)

To increase the contrast by 15%, but I also need to modify the brightnes
and saturation.  In the code above I pass the obj to a Contrast
constructor; I'm not sure how to pass enh to a Brightnes() constructor or
get enh back into my 'im' (original image obj).


..... Jason C. Leach

On Wed, 20 Jun 2001, Fredrik Lundh wrote:

>     All enhancement classes implement a common interface,
>     containing a single method:
>     enhance(factor). Returns an enhanced image. The factor is a
>     floating point value controlling the enhancement. Factor 1.0
>     always returns a copy of the original image, lower factors
>     means less colour (brightness, contrast, etc), and higher values
>     more. There are no restrictions on this value.
> in other words, something like this should work:
>     imOut = enh.enhance(someValue)
>     imOut.save(someFileName)
> </F>