original_string: public function insert_bitmap($row, $col, $bitmap, $x = 0, $y = 0, $scale_x = 1, $scale_y = 1) {
          $objDrawing = new PHPExcel_Worksheet_Drawing();
          $objDrawing->setPath($bitmap);
          $objDrawing->setCoordinates(PHPExcel_Cell::stringFromColumnIndex($col) . ($row+1));
          $objDrawing->setOffsetX($x);
          $objDrawing->setOffsetY($y);
          $objDrawing->setWorksheet($this->worksheet);
          if ($scale_x != 1) {
              $objDrawing->setResizeProportional(false);
              $objDrawing->getWidth($objDrawing->getWidth()*$scale_x);
          }
          if ($scale_y != 1) {
              $objDrawing->setResizeProportional(false);
              $objDrawing->setHeight($objDrawing->getHeight()*$scale_y);
          }
      }
code: public function insert_bitmap($row, $col, $bitmap, $x = 0, $y = 0, $scale_x = 1, $scale_y = 1) {
          $objDrawing = new PHPExcel_Worksheet_Drawing();
          $objDrawing->setPath($bitmap);
          $objDrawing->setCoordinates(PHPExcel_Cell::stringFromColumnIndex($col) . ($row+1));
          $objDrawing->setOffsetX($x);
          $objDrawing->setOffsetY($y);
          $objDrawing->setWorksheet($this->worksheet);
          if ($scale_x != 1) {
              $objDrawing->setResizeProportional(false);
              $objDrawing->getWidth($objDrawing->getWidth()*$scale_x);
          }
          if ($scale_y != 1) {
              $objDrawing->setResizeProportional(false);
              $objDrawing->setHeight($objDrawing->getHeight()*$scale_y);
          }
      }
code_tokens: public function insert_bitmap ( $ row , $ col , $ bitmap , $ x = 0 , $ y = 0 , $ scale_x = 1 , $ scale_y = 1 ) { $ objDrawing = new PHPExcel_Worksheet_Drawing ( ) ; $ objDrawing -> setPath ( $ bitmap ) ; $ objDrawing -> setCoordinates ( PHPExcel_Cell :: stringFromColumnIndex ( $ col ) . ( $ row + 1 ) ) ; $ objDrawing -> setOffsetX ( $ x ) ; $ objDrawing -> setOffsetY ( $ y ) ; $ objDrawing -> setWorksheet ( $ this -> worksheet ) ; if ( $ scale_x != 1 ) { $ objDrawing -> setResizeProportional ( false ) ; $ objDrawing -> getWidth ( $ objDrawing -> getWidth ( ) * $ scale_x ) ; } if ( $ scale_y != 1 ) { $ objDrawing -> setResizeProportional ( false ) ; $ objDrawing -> setHeight ( $ objDrawing -> getHeight ( ) * $ scale_y ) ; } }
docstring: Insert an image in a worksheet.
  
  @param integer $row     The row we are going to insert the bitmap into
  @param integer $col     The column we are going to insert the bitmap into
  @param string  $bitmap  The bitmap filename
  @param integer $x       The horizontal position (offset) of the image inside the cell.
  @param integer $y       The vertical position (offset) of the image inside the cell.
  @param integer $scale_x The horizontal scale
  @param integer $scale_y The vertical scale
docstring_tokens: Insert an image in a worksheet .