mirror of
https://github.com/talgo-cloud/bimg.git
synced 2026-03-15 10:25:55 -07:00
Support brightness and contrast
This commit is contained in:
parent
d0fb333ce4
commit
76894654c7
4 changed files with 68 additions and 0 deletions
10
vips.h
10
vips.h
|
|
@ -656,3 +656,13 @@ int vips_gamma_bridge(VipsImage *in, VipsImage **out, double exponent)
|
|||
{
|
||||
return vips_gamma(in, out, "exponent", 1.0 / exponent, NULL);
|
||||
}
|
||||
|
||||
int vips_brightness_bridge(VipsImage *in, VipsImage **out, double k)
|
||||
{
|
||||
return vips_linear1(in, out, 1.0 , k, NULL);
|
||||
}
|
||||
|
||||
int vips_contrast_bridge(VipsImage *in, VipsImage **out, double k)
|
||||
{
|
||||
return vips_linear1(in, out, k , 0.0, NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue