File: VRegion.cpp

package info (click to toggle)
vips 8.17.3-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 52,228 kB
  • sloc: ansic: 169,684; cpp: 12,156; python: 4,887; sh: 733; 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