imagefilltoborder 区域填充到指定颜色的边界为止

发表日期:2021-07-01 08:55:59 | 来源: | | 浏览(441) 分类:GD 和图像处理 函数

imagefilltoborder

(PHP 4, PHP 5, PHP 7, PHP 8)

imagefilltoborder区域填充到指定颜色的边界为止

说明

imagefilltoborder(
    resource $image,
    int $x,
    int $y,
    int $border,
    int $color
): bool

imagefilltoborder()xy(图像左上角为 0, 0)点开始用 color 颜色执行区域填充,直到碰到颜色为 border 的边界为止。【注:边界内的所有颜色都会被填充。如果指定的边界色和该点颜色相同,则没有填充。如果图像中没有该边界色,则整幅图像都会被填充。】

集速网 copyRight © 2015-2022 宁ICP备15000399号-1 宁公网安备 64010402001209号
与其临渊羡鱼,不如退而结网
欢迎转载、分享、引用、推荐、收藏。