This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

how to implement color balance from PhotoShop to graphic Mills

Hello,

I'd like to implement a function for applying effects we do on photoshop.

The Photoshop function is ColorBalance, but i don't find an equivalent function in GraphicMill.

I tried The ChannelBalance but the results are not the same.

Any Idea ?

Hello Philippe,

In this case, you need to use AdjustHsl.Hue property. Hue is measured in degrees (from 0 degree to 360 degrees), where
0 degree is corresponded to Red color,
60 degrees to Yellow,
120 degrees to Green,
180 degrees to Cyan,
240 degrees to Blue,
300 degrees to Magenta. Please learn more in HSL model section.

In Graphics Mill values of Hue properties are in range [-1 1] (i.e. normalized at 360). Thus, you need to use -1 to set it to red, -2/3 to set it to Yellow, -1/3 to Green, etc. To implement functionality like Color Balance in Photoshop, you need to iterate values of Hue between 0 and -1 (Cyan <-> Red), between 2/3 and -1/3 (Magenta <-> Green), and between -2/3 and 1/3 (Yellow <-> Blue).
Ok thanks.

I implemented a soft with the use of colorBalance, the graphists will see if they can do what they want with it.

I'll implement the Hsl function if ColorBalance is not enough for our use.

Thanks.