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

int zbar_symbol_get_loc_y ( const zbar_symbol_t symbol,
unsigned  index 
)

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

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

-1 if index is out of range

Definition at line 119 of file symbol.c.

References zbar_symbol_get_loc_y().

Referenced by zbar::Symbol::get_location_y(), zbar::Symbol::PointIterator::operator*(), and zbar_symbol_get_loc_y().

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


Generated by  Doxygen 1.6.0   Back to index