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

const unsigned char * GBitmap::operator[] ( int  row  )  const [inline]

Returns a constant pointer to the first byte of row row#. This pointer can be used as an array to read the row elements.

Definition at line 585 of file GBitmap.h.

Referenced by rotate().

{
  if (!bytes) 
    ((GBitmap*)this)->uncompress();
  if (row<0 || row>=nrows) {
#ifndef NDEBUG
    if (zerosize < bytes_per_row + border)
      G_THROW( ERR_MSG("GBitmap.zero_small") );
#endif
    return zerobuffer + border;
  }
  return &bytes[row * bytes_per_row + border];
}


Generated by  Doxygen 1.6.0   Back to index