lib/ezpdf/classes/class.ezpdf.php
function ezShadedRectangle( $x1, $y1, $width, $height, $col1, $col2, $direction = 'vertical' )
    {
        $this->shadedRectangle( $x1, $y1, $width, $height, array( 'orientation' => $direction,
                                                                  'color0' => $col1,
                                                                  'color1' => $col2,
                                                                  'size' => array( 'x1' => $x1,
                                                                                   'y1' => $y1,
                                                                                   'width' => $width,
                                                                                   'height' => $height ) ) );
    }
function ezShadedRectangle( $x1, $y1, $width, $height, $col1, $col2, $direction = 'vertical' )
    {
        $this->shadedRectangle( $x1, $y1, $width, $height, array( 'orientation' => $direction,
                                                                  'color0' => $col1,
                                                                  'color1' => $col2,
                                                                  'size' => array( 'x1' => $x1,
                                                                                   'y1' => $y1,
                                                                                   'width' => $width,
                                                                                   'height' => $height ) ) );
    }
function ezShadedRectangle ( $ x1 , $ y1 , $ width , $ height , $ col1 , $ col2 , $ direction = 'vertical' ) { $ this -> shadedRectangle ( $ x1 , $ y1 , $ width , $ height , array ( 'orientation' => $ direction , 'color0' => $ col1 , 'color1' => $ col2 , 'size' => array ( 'x1' => $ x1 , 'y1' => $ y1 , 'width' => $ width , 'height' => $ height ) ) ) ; }
Draw a shaded rectangle

direction is optional and set to vertical by default

\param x1
\param y1
\param width
\param height
\param col1
\param col2
\param direction ('vertical', 'horizontal', or angle)
Draw a shaded rectangle