2016-05-17 03:04:11 +12:00
|
|
|
#pragma once
|
|
|
|
|
2016-03-19 06:57:51 +13:00
|
|
|
#ifndef igs_density_h
|
|
|
|
#define igs_density_h
|
|
|
|
|
|
|
|
#ifndef IGS_DENSITY_EXPORT
|
|
|
|
#define IGS_DENSITY_EXPORT
|
|
|
|
#endif
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
namespace igs {
|
|
|
|
namespace density {
|
2016-03-19 06:57:51 +13:00
|
|
|
IGS_DENSITY_EXPORT void change(
|
2016-06-15 18:43:10 +12:00
|
|
|
unsigned char *image_array /* RGBAでなければならない */
|
|
|
|
,
|
|
|
|
const int height, const int width,
|
|
|
|
const int channels /* 4(=RGBAでなければならない) */
|
|
|
|
,
|
|
|
|
const int bits
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
,
|
|
|
|
const unsigned char *ref /* 求める画像と同じ高、幅、ch数 */
|
|
|
|
,
|
|
|
|
const int ref_bits /* refがゼロのときはここもゼロ */
|
|
|
|
,
|
|
|
|
const int ref_mode /* 0=R,1=G,2=B,3=A,4=Luminance,5=Nothing */
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
,
|
|
|
|
const double density = 1.0);
|
2016-03-19 06:57:51 +13:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* !igs_density_h */
|