Searched refs:y_ratio (Results 1 - 1 of 1) sorted by relevance

/PHP_TRUNK/ext/gd/
H A Dgd.c4441 float x_ratio, y_ratio; local
4522 y_ratio = (float) org_height / (float) dest_height;
4524 if (x_ratio > 1 && y_ratio > 1) {
4525 if (y_ratio > x_ratio) {
4526 x_ratio = y_ratio;
4528 y_ratio = x_ratio;
4531 dest_height = (int) (org_height / y_ratio);
4534 y_ratio = (float) dest_height / (float) org_height;
4536 if (y_ratio < x_ratio) {
4537 x_ratio = y_ratio;
[all...]

Completed in 8 milliseconds