note flatten before getpoint for find_trim

add note on flatten before getpoint

see https://github.com/jcupitt/libvips/issues/670
This commit is contained in:
John Cupitt 2017-09-18 12:56:35 +01:00
parent cfe907deb3
commit 0d93f9f9dd

View File

@ -256,7 +256,8 @@ vips_find_trim_init( VipsFindTrim *find_trim )
* and @height == 0.
*
* @background defaults to 255, or 65535 for 16-bit images. Set another value,
* or use vips_getpoint() to pick a value from an edge.
* or use vips_getpoint() to pick a value from an edge. You'll need to flatten
* before vips_getpoint() to get a correct background value.
*
* @threshold defaults to 10.
*