#include <VRegion8.h>
Public Member Functions | |
VRegion (VipsRegion *region, VSteal steal=STEAL) | |
VipsRegion * | get_region () const |
void | prepare (const VipsRect *rect) const |
void | prepare (int left, int top, int width, int height) const |
VipsRect | valid () const |
VipsPel * | addr () const |
VipsPel * | addr (size_t i) const |
VipsPel * | addr (int x, int y) const |
size_t | stride () const |
VipsPel | operator[] (size_t i) const |
VipsPel | operator() (int x, int y) const |
![]() | |
VObject (VipsObject *new_vobject, VSteal steal=STEAL) | |
VObject (const VObject &a) | |
VObject & | operator= (const VObject &a) |
VipsObject * | get_object () const |
bool | is_null () const |
Static Public Member Functions | |
static VRegion | new_from_image (VImage image) |
A region of an image. Can be used to access raw pixel data.
|
inlineexplicit |
|
inline |
Get pointer to the start of the region.
|
inline |
Get pointer at the given coordinates of the region.
|
inline |
Get pointer at the given index of the region.
|
inline |
Get a pointer to the underlying VipsRegion object.
Create a VRegion from an image.
|
inline |
Get VipsPel at the given coordinates of the region.
|
inline |
Get VipsPel at the given index of the region.
|
inline |
Prepare the region from VipsRect.
|
inline |
Prepare the region from rectangle coordinates.
|
inline |
Get the stride (bytes per row, including padding) of the region.
|
inline |
Get valid bounds of the region.