原型

_flip_image_resource( GD_Resource $img, boolean $horz, boolean $vert )

参数

$img (GD_Resource) (Required)

$horz (boolean) (Required)

$vert (boolean) (Required)

返回值

(GD_Resource)  

源文件

路径:wp-admin/includes/image-edit.php

<?php
...
}
/**
 * Image preview ratio. Internal use only.
 *
 * @since 2.9.0
 *
 * @ignore
 * @param int $w Image width in pixels.
 * @param int $h Image height in pixels.
 * @return float|int Image preview ratio.
 */
function _image_get_preview_ratio($w, $h) {
	$max = max($w, $h);
	return $max > 400 ? (400 / $max) : 1;
}
/**
...
?>

其他

英文文档:https://developer.wordpress.org/reference/functions/_flip_image_resource/