Logo Search packages:      
Sourcecode: djvulibre version File versions

void GRect::scale ( float  factor  ) 

Multiplies xmin, ymin, xmax, ymax by factor and scales the rectangle

Definition at line 197 of file GRect.cpp.

References xmax, xmin, ymax, and ymin.

{
      xmin = (int)(((float)xmin) * factor);
      ymin = (int)(((float)ymin) * factor);
      xmax = (int)(((float)xmax) * factor);
      ymax = (int)(((float)ymax) * factor);
}


Generated by  Doxygen 1.6.0   Back to index