GMImageMBS.contrast

Hi, I’m trying to use the method contrast of GMImageMBS.
I can’t understand the use of the unique parameter “sharpen”

When it increase the contrast? When it decrease?

maybe he always increases the contrast and, if I want to decrease it, I have to use other functions, such as blur, etc?

Contrast image (enhance intensity differences in image).

Enhances the intensity differences between the lighter and darker elements of the image. Set sharpen to a value other than 0 to increase the image contrast otherwise the contrast is reduced.

Sharpen: An integer number, either 0 or 1.

very odd syntax.
You might imagine an INT parameter where a negative value homogenises the image.
Its a UINT and so you can only send 0 or bigger

Sending 0 feels a little like wishful thinking

But I cannot even find a verb which implies the opposite of applying contrast.

1 Like
Forum for Xojo Programming Language and IDE. Copyright © 2021 Xojo, Inc.