oop set scale/offset

This commit is contained in:
John Cupitt 2013-12-02 13:24:05 +00:00
parent 7c43e3d332
commit 2360d4a6e9

View File

@ -65,7 +65,8 @@ im_mask2vips( DOUBLEMASK *in, IMAGE *out )
/* Check the mask. /* Check the mask.
*/ */
if( !in || !in->coeff ) { if( !in ||
!in->coeff ) {
im_error( "im_mask2vips", "%s", _( "bad input mask" ) ); im_error( "im_mask2vips", "%s", _( "bad input mask" ) );
return( -1 ); return( -1 );
} }
@ -98,6 +99,9 @@ im_mask2vips( DOUBLEMASK *in, IMAGE *out )
return( -1 ); return( -1 );
} }
vips_image_set_double( out, "scale", in->scale );
vips_image_set_double( out, "offset", in->offset );
return( 0 ); return( 0 );
} }