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

unsigned int GBitmap::get_memory_usage ( void   )  const

Returns the number of bytes allocated for this image.

Definition at line 428 of file GBitmap.cpp.

  unsigned long usage = sizeof(GBitmap);
  if (bytes)
    usage += nrows * bytes_per_row + border;
  if (rle)
    usage += rlelength;
  return usage;

Generated by  Doxygen 1.6.0   Back to index