[PHP] imageColorAllocate problem

2008-06-02 Thread Jo Ann Comito
Hi phpers, I'm having a strange problem. My goal is to be able to generate navigation buttons on the fly. I had this working -- I could pass variable text, size and font information to the php page that generates the image and all worked as expected--png files were created, stored and dis

[PHP] ImageColorAllocate Problem

2004-07-31 Thread Kevin
Hi there, I am having a problem in ImageColorAllocate function. I am using this function in a loop. After some number of looping the function starts returning -1 value. I am attaching my code below. Can any one help me with this? Thanks for reading this far. Kevin. -- PHP General Mailing Lis

Re: [PHP] ImageColorAllocate() Problem

2003-10-02 Thread Jed R. Brubaker
Worked perfectly - thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ImageColorAllocate() Problem

2003-10-02 Thread Tom Rogers
Hi, Friday, October 3, 2003, 4:23:27 PM, you wrote: JRB> I am having a bizzare problem with the imagecolorallocate() function. Maybe JRB> all of you can help me! JRB> Here is the code: JRB> $hex1 = "0x".$color{0}.$color{1}; JRB> $hex2 = "0x".$color{2}.$color{3}; JRB> $hex3 = "0x".$color{4}.$colo

RE: [PHP] ImageColorAllocate() Problem

2003-10-02 Thread Martin Towell
EMAIL PROTECTED] Sent: Friday, 3 October 2003 4:23 PM To: [EMAIL PROTECTED] Subject: [PHP] ImageColorAllocate() Problem I am having a bizzare problem with the imagecolorallocate() function. Maybe all of you can help me! Here is the code: $hex1 = "0x".$color{0}.$color{1}; $hex2 = "0x

[PHP] ImageColorAllocate() Problem

2003-10-02 Thread Jed R. Brubaker
I am having a bizzare problem with the imagecolorallocate() function. Maybe all of you can help me! Here is the code: $hex1 = "0x".$color{0}.$color{1}; $hex2 = "0x".$color{2}.$color{3}; $hex3 = "0x".$color{4}.$color{5}; $color = ImageColorAllocate($im, $hex1, $hex2, $hex3); Simple enough! $colo

RE: [PHP] imagecolorallocate / imagesetpixel / palette size?

2001-02-12 Thread Brian V Bonini
That's because it was originally designed for gif's. Gif's only have a 256 color palette.. > -Original Message- > From: Dan Harrington [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 12, 2001 12:30 PM > To: Matt McClanahan > Cc: [EMAIL

RE: [PHP] imagecolorallocate / imagesetpixel / palette size?

2001-02-12 Thread Dan Harrington
TED]] Sent: Monday, February 12, 2001 10:16 AM To: Dan Harrington Cc: [EMAIL PROTECTED] Subject: Re: [PHP] imagecolorallocate / imagesetpixel / palette size? On Sun, Feb 11, 2001 at 01:40:11AM -0700, Dan Harrington wrote: (snip) > Its like the "palette" only holds 256 pixels or somet

Re: [PHP] imagecolorallocate / imagesetpixel / palette size?

2001-02-12 Thread Matt McClanahan
On Sun, Feb 11, 2001 at 01:40:11AM -0700, Dan Harrington wrote: (snip) > Its like the "palette" only holds 256 pixels or something, what's > the deal with that? > > Anyone experienced this before? I've looked through the GD library > documentation > at boutell.com, i've looked through php.net,

[PHP] imagecolorallocate / imagesetpixel / palette size?

2001-02-11 Thread Dan Harrington
Here is something weird going on. Why is it that imagecolorallocate dies after 256 colors have been allocated? Note, this doesn't matter if you write a jpg or png, it all produces the same result (see attached graphic). Yes, the colors are randomly made, and they all go in a straight, diagonal

[PHP] Imagecolorallocate

2001-02-09 Thread Dan Harrington
Hello everyone, Alright, what's wrong with this script? I just get one big blank image. I want the script to sequentially pull up each pixel off the template image, and copy them pixel by pixel to the second image. Actually, what I want to do is to process the pixels BEFORE I write them, but th