From 2360d4a6e9443be3405625de06595ef1f05b7806 Mon Sep 17 00:00:00 2001 From: John Cupitt Date: Mon, 2 Dec 2013 13:24:05 +0000 Subject: [PATCH] oop set scale/offset --- libvips/deprecated/im_mask2vips.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libvips/deprecated/im_mask2vips.c b/libvips/deprecated/im_mask2vips.c index 1cf0142d..918402fe 100644 --- a/libvips/deprecated/im_mask2vips.c +++ b/libvips/deprecated/im_mask2vips.c @@ -65,7 +65,8 @@ im_mask2vips( DOUBLEMASK *in, IMAGE *out ) /* Check the mask. */ - if( !in || !in->coeff ) { + if( !in || + !in->coeff ) { im_error( "im_mask2vips", "%s", _( "bad input mask" ) ); return( -1 ); } @@ -98,6 +99,9 @@ im_mask2vips( DOUBLEMASK *in, IMAGE *out ) return( -1 ); } + vips_image_set_double( out, "scale", in->scale ); + vips_image_set_double( out, "offset", in->offset ); + return( 0 ); }