| #pragma once |
| |
| #ifndef igs_hsv_add_h |
| #define igs_hsv_add_h |
| |
| #ifndef IGS_HSV_ADD_EXPORT |
| #define IGS_HSV_ADD_EXPORT |
| #endif |
| |
| namespace igs { |
| namespace hsv_add { |
| IGS_HSV_ADD_EXPORT void change( |
| unsigned char *image_array, const int height, const int width, |
| const int channels, const int bits |
| |
| , |
| const unsigned char *noi_image_array, const int noi_height, |
| const int noi_width, const int noi_channels, const int noi_bits |
| |
| , |
| const unsigned char *ref |
| , |
| const int ref_bits |
| , |
| const int ref_mode |
| |
| , |
| const int xoffset |
| , |
| const int yoffset |
| , |
| const int from_rgba |
| , |
| const double offset |
| , |
| const double hue_scale |
| , |
| const double sat_scale |
| , |
| const double val_scale |
| , |
| const double alp_scale |
| |
| , |
| const bool add_blend_sw |
| |
| add_blend_sw == true |
| アルファ値によりRGBの変化量を調整する |
| 合成方法が |
| 合成画 = 下絵 * (1 - alpha) + 上絵 |
| の場合こちらを使う |
| add_blend_sw == false |
| アルファ値に関係なくRGBが変化する |
| 合成方法が |
| 合成画 = 下絵 * (1 - alpha) + 上絵 * alpha |
| の場合こちらを使う |
| */ |
| ); |
| } |
| } |
| #endif |