Logo Search packages:      
Sourcecode: djvulibre version File versions

int GRect::area (  )  const [inline]

Returns the area of the rectangle.

Definition at line 327 of file GRect.h.

References isempty(), xmax, xmin, ymax, and ymin.

Referenced by DjVuTXT::find_text_in_rect().

{
  return isempty() ? 0 : (xmax-xmin)*(ymax-ymin);
}


Generated by  Doxygen 1.6.0   Back to index