library/Garp/Image/Scaler.php
private function _paintCanvas(&$image) {
        if ($this->_params['type'] === IMAGETYPE_JPEG) {
            if (!$this->_params['crop']
                || !$this->_params['grow']
            ) {
                $this->_paintCanvasOpaque($image);
            }
        } else {
            $this->_paintCanvasTransparent($image);
        }
    }
private function _paintCanvas(&$image) {
        if ($this->_params['type'] === IMAGETYPE_JPEG) {
            if (!$this->_params['crop']
                || !$this->_params['grow']
            ) {
                $this->_paintCanvasOpaque($image);
            }
        } else {
            $this->_paintCanvasTransparent($image);
        }
    }
private function _paintCanvas ( & $ image ) { if ( $ this -> _params [ 'type' ] === IMAGETYPE_JPEG ) { if ( ! $ this -> _params [ 'crop' ] || ! $ this -> _params [ 'grow' ] ) { $ this -> _paintCanvasOpaque ( $ image ) ; } } else { $ this -> _paintCanvasTransparent ( $ image ) ; } }
Fills the canvas with the provided background color.

@param resource $image
@return void
Fills the canvas with the provided background color .