30 #ifndef VIPS_VREGION_H
31 #define VIPS_VREGION_H
33 #include <vips/vips.h>
47 explicit VRegion(VipsRegion *region, VSteal steal = STEAL)
48 :
VObject((VipsObject *) region, steal)
81 prepare(
int left,
int top,
int width,
int height)
const
83 VipsRect rect = { left, top, width, height };
112 return &VIPS_REGION_ADDR_TOPLEFT(
get_region())[i];
Definition: VImage8.h:398
VipsObject * get_object() const
Definition: VImage8.h:170
Definition: VRegion8.h:40
VipsPel * addr() const
Definition: VRegion8.h:101
size_t stride() const
Definition: VRegion8.h:128
VipsRect valid() const
Definition: VRegion8.h:92
VipsPel * addr(int x, int y) const
Definition: VRegion8.h:119
VipsPel * addr(size_t i) const
Definition: VRegion8.h:110
VipsPel operator()(int x, int y) const
Definition: VRegion8.h:146
VRegion(VipsRegion *region, VSteal steal=STEAL)
Definition: VRegion8.h:47
void prepare(const VipsRect *rect) const
Definition: VRegion8.h:71
VipsPel operator[](size_t i) const
Definition: VRegion8.h:137
VipsRegion * get_region() const
Definition: VRegion8.h:62
void prepare(int left, int top, int width, int height) const
Definition: VRegion8.h:81
static VRegion new_from_image(VImage image)
Definition: VRegion.cpp:14