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


"Natalie Leotta" <[EMAIL PROTECTED]> wrote in message
> Hello,
> I'm making an Image and I was wondering what the difference is between
> 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, some things cannot
> used with ImageCreateTrueColor, but it looks like some can only be used
> one.
> One thing I'm interested in is the constant IMG_COLOR_TRANSPARENT - can
> 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

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to