src/ImboClient/Http/ImageUrl.php
public function histogram($scale = null, $ratio = null, $red = null, $green = null, $blue = null) {
        $params = array();

        if ($scale) {
            $params[] = 'scale=' . (int) $scale;
        }

        if ($ratio) {
            $params[] = 'ratio=' . (float) $ratio;
        }

        if ($red) {
            $params[] = 'red=' . $red;
        }

        if ($green) {
            $params[] = 'green=' . $green;
        }

        if ($blue) {
            $params[] = 'blue=' . $blue;
        }

        return $this->addTransformation('histogram' . ($params ? ':' . implode(',', $params) : ''));
    }
public function histogram($scale = null, $ratio = null, $red = null, $green = null, $blue = null) {
        $params = array();

        if ($scale) {
            $params[] = 'scale=' . (int) $scale;
        }

        if ($ratio) {
            $params[] = 'ratio=' . (float) $ratio;
        }

        if ($red) {
            $params[] = 'red=' . $red;
        }

        if ($green) {
            $params[] = 'green=' . $green;
        }

        if ($blue) {
            $params[] = 'blue=' . $blue;
        }

        return $this->addTransformation('histogram' . ($params ? ':' . implode(',', $params) : ''));
    }
public function histogram ( $ scale = null , $ ratio = null , $ red = null , $ green = null , $ blue = null ) { $ params = array ( ) ; if ( $ scale ) { $ params [ ] = 'scale=' . ( int ) $ scale ; } if ( $ ratio ) { $ params [ ] = 'ratio=' . ( float ) $ ratio ; } if ( $ red ) { $ params [ ] = 'red=' . $ red ; } if ( $ green ) { $ params [ ] = 'green=' . $ green ; } if ( $ blue ) { $ params [ ] = 'blue=' . $ blue ; } return $ this -> addTransformation ( 'histogram' . ( $ params ? ':' . implode ( ',' , $ params ) : '' ) ) ; }
Add a histogram transformation

@param int $scale The amount to scale the histogram
@param float $ratio The ratio to use when calculating the height of the image
@param string $red The color to use when drawing the graph for the red channel
@param string $green The color to use when drawing the graph for the green channel
@param string $blue The color to use when drawing the graph for the blue channel
@return self
Add a histogram transformation