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

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

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

Definition at line 568 of file GBitmap.h.

References uncompress().

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

Generated by  Doxygen 1.6.0   Back to index