File: VRegion.cpp

package info (click to toggle)
vips 8.18.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 53,240 kB
  • sloc: ansic: 172,611; cpp: 12,257; python: 5,077; sh: 773; perl: 40; makefile: 25; javascript: 6
file content (27 lines) | stat: -rw-r--r-- 375 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// 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