Re: ImageCreate v. ImageCreateTrueColor

From: Date: Mon, 22 Apr 2002 21:24:05 +0000
Subject: Re: ImageCreate v. ImageCreateTrueColor
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-94071@lists.php.net to get a copy of this message
ImageCreate() creates a palette based image. The numbers of colors is thus limited to 256. Where as the function name suggests ImageCreateTrueColor() creates a true color image. You will have to test out the functions you want to use with these two. There is no better solution. good luck Paradox. "Natalie Leotta" <LeottaN@ims.nci.nih.gov> wrote in message news:7546CB15C0A1D311BF0D0004AC4C4B0C024ABF8D@SSIMSEXCHNG... > Hello, > > I'm making an Image and I was wondering what the difference is between these > two Image constructors. I need to find a way to make dotted and dashed > lines (according to different patterns I've been given) and I want the > sections between the dots to be transparent. I'm planning on using the > ImageSetStyle function. From what I read on PHP.net, some things cannot be > used with ImageCreateTrueColor, but it looks like some can only be used that > one. > > One thing I'm interested in is the constant IMG_COLOR_TRANSPARENT - can this > be used with ImageCreate? > > Is there a reason I should use one of the constructors over the other? > > Thanks! > > -Natalie > > > Natalie S. Leotta > Information Management Services, Inc. > (301) 680-9770 > LeottaN@ims.nci.nih.gov > > >

« previous php.general (#94071) next »