Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [iMagic] Czarne tło w efekcie polaroid
bim2
post
Post #1





Grupa: Zarejestrowani
Postów: 1 873
Pomógł: 152
Dołączył: 9.04.2006
Skąd: Berlin

Ostrzeżenie: (0%)
-----


Witam.

Mam taki oto sobie skypt:
  1. <?php
  2. /* Create the object and create the image */
  3. $im = new Imagick( 'chev7_orig.png' );
  4. /* Create a new ImagickDraw object
  5.    This is used to set polaroid properties */
  6. $draw = new ImagickDraw();
  7. /* Set the fill color to light blue */
  8.  
  9. $draw->setFillColor( new ImagickPixel( 'light blue' ) );
  10. /* Create the polaroid image */
  11. $im->polaroidImage( $draw, 20 );
  12. /* Output */
  13. header( "Content-Type: image/png" );
  14. echo $im;
  15. ?>

Wszystko działa, tylko, że tło mi się czarne robi, a nie powinno. Testuje to na localhoscie (xampp). Ma ktoś jakieś pomysły?

Mam wersje 2.1.0-rc3


--------------------
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 05:52