Re: [PHP] imagecreate inside an object

2010-08-19 Thread Ashley Sheridan
On Fri, 2010-08-20 at 00:44 +0200, Lorenzo Marussi wrote: > hello list, > > I'm trying to manage a image resouce inside a method, but > unsuccessfully... > > In detail, that's some code snippets: > > the class and the method: > > class.php > > class canvas{ > > function makeImage($imageW

[PHP] imagecreate inside an object

2010-08-19 Thread Lorenzo Marussi
hello list, I'm trying to manage a image resouce inside a method, but unsuccessfully... In detail, that's some code snippets: the class and the method: class.php class canvas{ function makeImage($imageWidth = 850){ $im = imagecreate(110, 20) or die("Cannot Initialize new GD image