fix(background): pass proper background RGB color

This commit is contained in:
Tomas Aparicio 2016-09-28 00:14:29 +01:00
parent bffc7652bb
commit 5ca57a1e68
3 changed files with 5 additions and 7 deletions

View file

@ -304,7 +304,8 @@ func vipsFlattenBackground(image *C.VipsImage, background Color) (*C.VipsImage,
}
if vipsHasAlpha(image) {
err := C.vips_flatten_background_brigde(image, &outImage, (*C.double)(&backgroundC[0]))
err := C.vips_flatten_background_brigde(image, &outImage,
backgroundC[0], backgroundC[1], backgroundC[2])
if int(err) != 0 {
return nil, catchVipsError()
}