Older Newer
Sat, 07 Aug 2021 11:24:56 . . . . SyneRyder [Note that rgb2hsl and hsl2rgb are currently only compatible functions.]


Changes by last author:

Added:
= set_bitdepth_mode =

== Syntax ==

: void set_bitdepth_mode(int mode)

== Arguments ==

:mode

:: Integer which can take only two values: 8 or 16

== Description ==

Setting mode to 16 will make the rgb2hsl and hsl2rgb functions treat the passed color values as 16bit color values.

Setting mode to 8 will activate the default behaviour of these functions.

== Comments ==

:16-bit mode means that values are in 0 to 32768 range. (Photoshop does not use the full range of 16-bit values.)

:

:Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.