public function caption($caption, $font_size, $image = NULL, $x = NULL, $y = NULL) {
Czy w przypadu nie spełnienia się warunku isset($image) w $img będzie znajdowała się kopia $this->image, czy referencja do tego pola ?
public function caption($caption, $font_size, $image = NULL, $x = NULL, $y = NULL) {
$im = @imagecreatetruecolor(120, 20) $im2 = $im; $text_color = imagecolorallocate($im, 233, 14, 91); imagestring($im2, 1, 5, 5, 'A Simple Text String', $text_color); imagestring($im2, 1, 5, 5, 'A Simple Text String blabla', $text_color); imagepng($im); imagedestroy($im);
$zm=2; $zm2 = 2;
private function get_width($image) { return ($image == $this->image) ? $this->width : imagesx($image); }
$width = $this->get_width($img); $height = $this->get_height($img);