src/ccstruct/blobs.cpp
void TESSLINE::Scale(float factor) {
  EDGEPT *pt = loop;
  do {
    pt->pos.x = static_cast<int>(floor(pt->pos.x * factor + 0.5));
    pt->pos.y = static_cast<int>(floor(pt->pos.y * factor + 0.5));
    pt = pt->next;
  } while (pt != loop);
  SetupFromPos();
}
// Scales by the given factor in place.
Scales by the given factor in place.
Scales by the given factor in place .
void TESSLINE::Scale(float factor) {
  EDGEPT *pt = loop;
  do {
    pt->pos.x = static_cast<int>(floor(pt->pos.x * factor + 0.5));
    pt->pos.y = static_cast<int>(floor(pt->pos.y * factor + 0.5));
    pt = pt->next;
  } while (pt != loop);
  SetupFromPos();
}
void TESSLINE :: Scale ( float factor ) { EDGEPT * pt = loop ; do { pt -> pos . x = static_cast < int > ( floor ( pt -> pos . x * factor + 0.5 ) ) ; pt -> pos . y = static_cast < int > ( floor ( pt -> pos . y * factor + 0.5 ) ) ; pt = pt -> next ; } while ( pt != loop ) ; SetupFromPos ( ) ; }
Scales by the given factor in place.
Scales by the given factor in place .