GC_Image_Editor::update_size()

最后更新于:2021-11-27 23:37:50

GC_Image_Editor::update_size( int$width=null, int$height=null)

Sets current image size.

参数

$width

(int) (Optional)

Default value: null

$height

(int) (Optional)

Default value: null

响应

(true)

源文件

文件: gc-includes/class-gc-image-editor.php

	protected function update_size( $width = null, $height = null ) {
		$this->size = array(
			'width'  => (int) $width,
			'height' => (int) $height,
		);
		return true;
	}