documentation for drawFromPNG
Hi. i just found after wondering why my drawFromPNG does never work like from the examples. Until i found that the example in the documtation has an error there.
the source code sould be
Code:
/* Turn off shadow */
$myPicture->setShadow(FALSE);
$myPicture->drawFromPNG(180,50,"resources/hologram.png");
/* Enable shadow */
$myPicture->setShadow(TRUE,array("X"=>1,"Y"=>1,"R"=>0,"G"=>0,"B"=>0,"Alpha"=>70));
$myPicture->drawFromPNG(400,50,"resources/blocnote.png");
and not like
Code:
$myPicture->drawFromPNG("resources/blocnote.png",400,50);