00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef _KIS_CONVERSIONS_H_
00020 #define _KIS_CONVERSIONS_H_
00021
00022 #include <qglobal.h>
00023 #include <koffice_export.h>
00024
00029
00030 PIGMENT_EXPORT void rgb_to_hsv(int R, int G, int B, int *H, int *S, int *V);
00031 PIGMENT_EXPORT void hsv_to_rgb(int H, int S, int V, int *R, int *G, int *B);
00032
00033
00034 PIGMENT_EXPORT void RGBToHSV(float r, float g, float b, float *h, float *s, float *v);
00035 PIGMENT_EXPORT void HSVToRGB(float h, float s, float v, float *r, float *g, float *b);
00036
00037 PIGMENT_EXPORT void RGBToHSL(float r, float g, float b, float *h, float *s, float *l);
00038 PIGMENT_EXPORT void HSLToRGB(float h, float sl, float l, float *r, float *g, float *b);
00039
00040 PIGMENT_EXPORT void rgb_to_hls(quint8 r, quint8 g, quint8 b, float * h, float * l, float * s);
00041
00042 PIGMENT_EXPORT float hue_value(float n1, float n2, float hue);
00043
00044 PIGMENT_EXPORT void hls_to_rgb(float h, float l, float s, quint8 * r, quint8 * g, quint8 * b);
00045
00046 PIGMENT_EXPORT void rgb_to_hls(quint8 r, quint8 g, quint8 b, int * h, int * l, int * s);
00047 PIGMENT_EXPORT void hls_to_rgb(int h, int l, int s, quint8 * r, quint8 * g, quint8 * b);
00048
00049 #endif // _KIS_CONVERSIONS_H_
00050