function polygon($points, $color, $width = null, $style = array(), $fill = false)
 {
     $this->_set_fill_color($color);
     $this->_set_stroke_color($color);
     // Adjust y values
     for ($i = 1; $i < count($points); $i += 2) {
         $points[$i] = $this->y($points[$i]);
     }
     $this->_pdf->polygon($points, count($points) / 2, $fill);
 }
 function polygon($points, $color, $width = null, $style = array(), $fill = false, $blend = "Normal", $opacity = 1.0)
 {
     $this->_set_fill_color($color);
     $this->_set_stroke_color($color);
     $this->_set_line_transparency($blend, $opacity);
     $this->_set_fill_transparency($blend, $opacity);
     if (!$fill && isset($width)) {
         $this->_set_line_style($width, "square", "miter", $style);
     }
     // Adjust y values
     for ($i = 1; $i < count($points); $i += 2) {
         $points[$i] = $this->y($points[$i]);
     }
     $this->_pdf->polygon($points, count($points) / 2, $fill);
 }