fix a typo
thank you mayoung see https://github.com/jcupitt/libvips/issues/382
This commit is contained in:
parent
bd985731eb
commit
e69da1952d
@ -281,7 +281,7 @@ vips_premultiply_init( VipsPremultiply *premultiply )
|
||||
* alpha = clip( 0, in[in.bands - 1], @max_alpha );
|
||||
* norm = alpha / @max_alpha;
|
||||
* out = [in[0] * norm, ..., in[in.bands - 1] * norm, alpha];
|
||||
* |]
|
||||
* ]|
|
||||
*
|
||||
* So for an N-band image, the first N - 1 bands are multiplied by the clipped
|
||||
* and normalised final band, the final band is clipped.
|
||||
|
@ -296,7 +296,7 @@ vips_unpremultiply_init( VipsUnpremultiply *unpremultiply )
|
||||
* out = [0, ..., 0, alpha];
|
||||
* else
|
||||
* out = [in[0] / norm, ..., in[in.bands - 1] / norm, alpha];
|
||||
* |]
|
||||
* ]|
|
||||
*
|
||||
* So for an N-band image, the first N - 1 bands are divided by the clipped
|
||||
* and normalised final band, the final band is clipped.
|
||||
|
Loading…
Reference in New Issue
Block a user