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

/PHP_TRUNK/ext/gd/
H A Dgd.c4453 float x_ratio, y_ratio; local
4531 x_ratio = (float) org_width / (float) dest_width;
4534 if (x_ratio > 1 && y_ratio > 1) {
4535 if (y_ratio > x_ratio) {
4536 x_ratio = y_ratio;
4538 y_ratio = x_ratio;
4540 dest_width = (int) (org_width / x_ratio);
4543 x_ratio = (float) dest_width / (float) org_width;
4546 if (y_ratio < x_ratio) {
4547 x_ratio
[all...]

Completed in 20 milliseconds