Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. <?php
  2. $im = imagecreate( 600, 600 );
  3. $background= imagecolorallocate( $im, 25, 25, 75 );
  4. imagefill( $im, 0,0, $background );
  5. $white= imagecolorallocate( $im, 255, 255, 255 );
  6.  
  7. $a= array( 100, 200 );
  8. $b= array( 200, 176 );
  9. $c= array( 300, '' ); // This is to be calculated
  10.  
  11. imageline( $im, $a[0], $a[1], $c[0], $c[1], $white );
  12.  
  13. header("Content-Type: image/jpeg"); imagejpeg($im); exit();
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement