Wed, 20 Jun 2001 22:25:27 +0200
Jason C. Leach wrote:
> How do we get images out of ImageEnhance? For example if I:
> enh = ImageEnhance.Contrast(im)
> does it change 'im', or a copy of 'im'? What I am trying to do is save
> 'im' after the contrast change.
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)