libvips/cplusplus/VRegion.cpp
Kleis Auke Wolthuizen 6dfb49b976
cplusplus: remove i18n include (#2890)
Since these files doesn't use any i18n features.
2022-06-26 18:59:47 +01:00

28 lines
385 B
C++

// Object part of VRegion class
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif /*HAVE_CONFIG_H*/
#include <vips/vips8>
#include <vips/debug.h>
VIPS_NAMESPACE_START
VRegion
VRegion::new_from_image( VImage image )
{
VipsRegion *region;
if( !(region = vips_region_new( image.get_image() )) ) {
throw VError();
}
VRegion out( region );
return( out );
}
VIPS_NAMESPACE_END