Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. $big_img = 'images/big_img.jpg';
  2. $little_img = 'images/identite.jpg';
  3. $big = self::create_image($big_img);
  4. $little = self::create_image($little_img);
  5. if(!empty($big) || !empty($little)){
  6.  
  7. $result = imagecreatetruecolor(100, 100);
  8. $degre = -30;
  9. $top = 25;
  10. $left = 50;
  11.  
  12. $color= imagecolorallocate($result, 163, 166, 7);
  13. imagealphablending($little, true);
  14. imagesavealpha($little, true);
  15. $transColor = imagecolorallocatealpha($little, 255, 255, 255, 127);
  16. $rotate = imagerotate($little, $degre, $transColor,0);
  17.  
  18. imagecolorexactalpha($rotate, 255, 255, 255, 0);
  19. imagecopy($big,$rotate,$top,$left,0,0, imagesx($rotate), imagesy($rotate));
  20. self::text_display($big, $text,$color);
  21.  
  22. imagepng($big,'images/test.png');
  23. imagedestroy($big);
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement