RISC OS Open
A fast and easily customised operating system for ARM devices
ROOL
Home | News | Software | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Page "Software information: Boot" does not exist. Please create it now, or hit the "back" button in your browser.

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

  • ColourTrans_ConvertHSVToRGB
Revised on September 27, 2009 12:46:53 by Alan Robertson (52)? (127.0.0.1)
Edit | Back in time (1 revision) | See changes | History | Views: Print | Source | Linked from: ColourTrans SWI Calls, ColourTrans_ConvertHSVToRGB, Colour Vector SWI Numbers

Search the Wiki

Commercial use

For commercial enquiries, please contact the owners of RISC OS, Castle Technology Ltd.

ROOL Store

The official C/C++ Development kit and more here.

Donate! Why?

Help ROOL make things happen – please consider donating!

Navigation

  • Home Page
  • All Pages
  • Recently Revised
  • Authors
  • Feeds
Site design © RISC OS Open Limited 2011 except where indicated
The RISC OS Open Instiki theme is based on Insitki's default layout

Valid XHTML 1.0  |  Valid CSS

Instiki 0.19.1(MML+)
This site runs on Rails

Hosted by Arachsys