Logo Search packages:      
Sourcecode: zbar version File versions  Download package

int zbar_symbol_get_loc_x ( const zbar_symbol_t symbol,
unsigned  index 
)

retrieve location polygon x-coordinates. points are specified by 0-based index.

Returns:
the x-coordinate for a point in the location polygon.

-1 if index is out of range

Definition at line 110 of file symbol.c.

References zbar_symbol_get_loc_x().

Referenced by zbar::Symbol::get_location_x(), zbar::Symbol::PointIterator::operator*(), and zbar_symbol_get_loc_x().

{
    if(idx < sym->npts)
        return(sym->pts[idx].x);
    else
        return(-1);
}


Generated by  Doxygen 1.6.0   Back to index