private void read ( int bit , int row , int col ) { int value = gridReader . readBit ( row , col ) ; if ( value == - 1 ) { // The requested region is outside the image. A partial QR code can be read so let's just // assign it a value of zero and let error correction handle this value = 0 ; } bits . set ( bit , value ) ; }
Reads a bit from the image .