30 #ifndef VIPS_VREGION_H 31 #define VIPS_VREGION_H 33 #include <vips/vips.h> 48 VRegion( VipsRegion *region, VSteal steal = STEAL ) :
49 VObject( (VipsObject *) region, steal )
74 if ( vips_region_prepare(
get_region(), rect ) )
82 prepare(
int left,
int top,
int width,
int height )
const 84 VipsRect rect = { left, top, width, height };
113 return &VIPS_REGION_ADDR_TOPLEFT(
get_region() )[i];
122 return VIPS_REGION_ADDR(
get_region(), x, y );
149 return *
addr( x, y );
void prepare(int left, int top, int width, int height) const
Definition: VRegion8.h:82
VipsObject * get_object() const
Definition: VImage8.h:172
VipsPel * addr(int x, int y) const
Definition: VRegion8.h:120
Definition: VImage8.h:405
Definition: VRegion8.h:40
size_t stride() const
Definition: VRegion8.h:129
static VRegion new_from_image(VImage image)
Definition: VRegion.cpp:14
VipsPel operator[](size_t i) const
Definition: VRegion8.h:138
VRegion(VipsRegion *region, VSteal steal=STEAL)
Definition: VRegion8.h:48
VipsPel * addr() const
Definition: VRegion8.h:102
VipsPel * addr(size_t i) const
Definition: VRegion8.h:111
VipsRect valid() const
Definition: VRegion8.h:93
void prepare(const VipsRect *rect) const
Definition: VRegion8.h:72
VipsPel operator()(int x, int y) const
Definition: VRegion8.h:147
VipsRegion * get_region() const
Definition: VRegion8.h:63