略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Gmagick::trimimage

2024-12-21

Gmagick::trimimage

(PECL gmagick >= Unknown)

Gmagick::trimimageRemove edges from the image

说明

public Gmagick::trimimage(float $fuzz): Gmagick

Remove edges that are the background color from the image.

参数

fuzz

By default target must match a particular pixel color exactly. However, in many cases two colors may differ by a small amount. The fuzz member of image defines how much tolerance is acceptable to consider two colors as the same. This parameter represents the variation on the quantum range.

返回值

The Gmagick object.

错误/异常

错误时抛出 GmagickException

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/gmagick.trimimage.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3