RISC OS Open

RISC OS  OPEN


A fast and easily customised operating system for devices using ARM processor cores.

Documentation: ColourTrans_ConvertRGBToHSV

Programmer’s Reference Manuals
» Part 8 – Non-kernel input/output
» ColourTrans
» SWI Calls
» ColourTrans_ConvertRGBToHSV

ColourTrans_ConvertRGBToHSV

(SWI &40758)

Entry
R0 Red component
R1 Green component
R2 Blue component

Exit
R0 Hue (0 – 360)
R1 Saturation
R2 Value

Use

The purpose of this call is to convert the colour passed as RGB values to CMYK values.

Notes

The parameters passed are fixed point 32-bit numbers. The lower 16 bits (0 – 15) are used below the decimal point, and the upper 16 bits above the decimal point.

Hue values range from 0 – 360 (without any fractional element).

Hue is undefined for achromatic colours.

See also

   .