Iterates over all the pixels in an image that have the same color and are transitively adjacent. In other words, if you were to flood-fill a the specified point, this returns all the pixels that would be changed.
More...
#include <GRegion.h>
|
| | GRegionAreaIterator (GImage *pImage, int nSampleX, int nSampleY) |
| | The point (nSampleX, nSampleY) should be somewhere in the region The image pImage should be a region mask, such that all points in the same region have exactly the same pixel value. More...
|
| |
| | ~GRegionAreaIterator () |
| |
| bool | next (int *pX, int *pY) |
| | If it returns false, the current values are invalid and it's done. If it returns true, pX and pY will hold the coordinates of a pixel in the region. More...
|
| |
Iterates over all the pixels in an image that have the same color and are transitively adjacent. In other words, if you were to flood-fill a the specified point, this returns all the pixels that would be changed.
| GClasses::GRegionAreaIterator::GRegionAreaIterator |
( |
GImage * |
pImage, |
|
|
int |
nSampleX, |
|
|
int |
nSampleY |
|
) |
| |
The point (nSampleX, nSampleY) should be somewhere in the region The image pImage should be a region mask, such that all points in the same region have exactly the same pixel value.
| GClasses::GRegionAreaIterator::~GRegionAreaIterator |
( |
| ) |
|
| bool GClasses::GRegionAreaIterator::next |
( |
int * |
pX, |
|
|
int * |
pY |
|
) |
| |
If it returns false, the current values are invalid and it's done. If it returns true, pX and pY will hold the coordinates of a pixel in the region.
| int GClasses::GRegionAreaIterator::m_bottom |
|
protected |
| int GClasses::GRegionAreaIterator::m_left |
|
protected |
| unsigned int GClasses::GRegionAreaIterator::m_nRegion |
|
protected |
| GImage* GClasses::GRegionAreaIterator::m_pImage |
|
protected |
| int GClasses::GRegionAreaIterator::m_right |
|
protected |
| int GClasses::GRegionAreaIterator::m_top |
|
protected |
| int GClasses::GRegionAreaIterator::m_x |
|
protected |
| int GClasses::GRegionAreaIterator::m_y |
|
protected |