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

void GBitmap::init ( const GBitmap ref,
int  border = 0 

Initializes this GBitmap with the contents of the GBitmap ref#. The optional argument border# specifies the size of the optional border of white pixels surrounding the image.

Definition at line 229 of file GBitmap.cpp.

References grays, init(), minborder(), monitor(), ncolumns, and nrows.

  GMonitorLock lock(monitor());
  if (this != &ref) 
      GMonitorLock lock(ref.monitor());
      init(ref.nrows, ref.ncolumns, aborder);
      grays = ref.grays;
      unsigned char *row = bytes_data+border;
      for (int n=0; n<nrows; n++, row+=bytes_per_row)
      memcpy( (void*)row, (void*)ref[n],  ncolumns );
  else if (aborder > border)

Generated by  Doxygen 1.6.0   Back to index