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

void GRect::scale ( float  xfactor,
float  yfactor 

Multiplies xmin, xmax by xfactor and ymin, ymax by yfactor and scales the rectangle

Definition at line 206 of file GRect.cpp.

References xmax, xmin, ymax, and ymin.

      xmin = (int)(((float)xmin) * xfactor);
      ymin = (int)(((float)ymin) * yfactor);
      xmax = (int)(((float)xmax) * xfactor);
      ymax = (int)(((float)ymax) * yfactor);

Generated by  Doxygen 1.6.0   Back to index