????JFIF??x?x????'
Server IP : 79.136.114.73 / Your IP : 18.218.131.147 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/doc/perlmagick/examples/demo/ |
Upload File : |
#!/usr/bin/perl # GD example using PerlMagick methods. use Image::Magick; # # Create a 300x300 white canvas. # $image=Image::Magick->new; $image->Set(size=>'300x300'); $image->Read('xc:white'); # # Draw shapes. # $tile=Image::Magick->new; $tile->Read('tile.gif'); $image->Draw(primitive=>'Polygon',tile=>$tile,fill=>'none', points=>'30,30 100,10 190,290 30,290'); $image->Draw(stroke=>'red',primitive=>'Ellipse',stroke=>'black',fill=>'red', strokewidth=>5,points=>'100,100 50,75 0,360'); $image->Draw(primitive=>'Polygon',fill=>'none',stroke=>'black',strokewidth=>5, points=>'30,30 100,10 190,290 30,290'); $image->FloodfillPaint(geometry=>'+132+62',fill=>'blue',bordercolor=>'black', invert=>'true'); # # Draw text. # $image->Annotate(fill=>'red',geometry=>'+150+20',font=>'Generic.ttf', pointsize=>18,text=>'Hello world!'); $image->Annotate(fill=>'blue',geometry=>'+150+38',font=>'Generic.ttf', pointsize=>14,text=>'Goodbye cruel world!'); $image->Annotate(fill=>'black',geometry=>'+280+120',font=>'Generic.ttf', pointsize=>14,text=>"I'm climbing the wall!",rotate=>90.0); # # Write image. # print "Write image...\n"; $image->Write('shapes.gif'); print "Display image...\n"; $image->Write('win:');