vips-cpp 8.16
libvips C++ binding
|
Loading...
Searching...
No Matches
VRegion Class Reference
#include <VRegion8.h>
Inheritance diagram for VRegion:
Collaboration diagram for VRegion:
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 |
Public Member Functions inherited from VObject | |
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) |
Detailed Description
A region of an image. Can be used to access raw pixel data.
Constructor & Destructor Documentation
◆ VRegion()
|
inlineexplicit |
Member Function Documentation
◆ addr() [1/3]
|
inline |
Get pointer to the start of the region.
◆ addr() [2/3]
|
inline |
Get pointer at the given coordinates of the region.
◆ addr() [3/3]
|
inline |
Get pointer at the given index of the region.
◆ get_region()
|
inline |
Get a pointer to the underlying VipsRegion object.
◆ new_from_image()
Create a VRegion from an image.
◆ operator()()
|
inline |
Get VipsPel at the given coordinates of the region.
◆ operator[]()
|
inline |
Get VipsPel at the given index of the region.
◆ prepare() [1/2]
|
inline |
Prepare the region from VipsRect.
◆ prepare() [2/2]
|
inline |
Prepare the region from rectangle coordinates.
◆ stride()
|
inline |
Get the stride (bytes per row, including padding) of the region.
◆ valid()
|
inline |
Get valid bounds of the region.
The documentation for this class was generated from the following files:
- /home/john/GIT/libvips/cplusplus/include/vips/VRegion8.h
- /home/john/GIT/libvips/cplusplus/VRegion.cpp
Generated by 1.9.8