WordPress函数 - _crop_image_resource()

_crop_image_resource( GD_Resource $img, float $x, float $y, float $w, float $h )


Parameters

$img

(GD_Resource) (Required)

$x

(float) (Required)

$y

(float) (Required)

$w

(float) (Required)

$h

(float) (Required)


Return

(GD_Resource)


Source

File: wp-admin/includes/image-edit.php

			case 'image/gif':
				return imagegif( $image, $filename );
			default:
				return false;
		}
	}
}

/**
 * Image preview ratio. Internal use only.

发表评论

© 2021 狸玖技术站 - 基于 WordPress