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

void GBitmap::fill ( unsigned char  value  ) 

Initializes all the GBitmap pixels to value value#.

Definition at line 1467 of file GBitmap.cpp.

References columns(), monitor(), and rows().

  GMonitorLock lock(monitor());
  for(unsigned int y=0; y<rows(); y++)
      unsigned char* bm_y = (*this)[y];
      for(unsigned int x=0; x<columns(); x++)
        bm_y[x] = value;

Generated by  Doxygen 1.6.0   Back to index