编程学问
  • 文章
  • 问题
  • 读书
  • 关于
  • 登录
  • « UI\Draw\Brush\Gradient::delStop
  • UI\Draw\Brush\LinearGradient »
  • PHP Manual
  • UI\Draw\Brush\Gradient
  • Stop Manipulation

UI\Draw\Brush\Gradient::setStop

(PHP 7, UI 2.0.0)

UI\Draw\Brush\Gradient::setStop — Stop Manipulation

说明

public UI\Draw\Brush\Gradient::setStop ( int $index , float $position , UI\Draw\Color $color ) : bool
public UI\Draw\Brush\Gradient::setStop ( int $index , float $position , int $color ) : bool

参数

index

The index of the stop to set

position

The position for the stop

color

The color for the stop, may be UI\Draw\Color or RRGGBBAA

返回值

Indication of success

相关文章
php ui draw matrixphp ui area draw callbackphp ui draw brush gradient stop manipulationphp ui draw brush gradient stop manipulationphp ui draw brush gradient stop manipulationphp ui draw brush lineargradient construct a linear gradientphp ui draw brush radialgradient construct a new radial gradientphp ui draw brush construct a new brushphp ui draw brush get colorphp ui draw brush set colorphp ui draw color color manipulationphp ui draw color color manipulationphp ui draw matrix skew matrixphp ui draw matrix translate matrixphp ui draw path draw a rectanglephp ui draw pen matrix transformphp ui draw pen draw text at pointphp ui draw stroke construct a new strokephp ui draw text font descriptor weight detectionphp ui draw text font construct a new font
关注编程学问公众号
编程学问网 湘ICP备20001732号