Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GD.pm: Color set with colorAllocate doesn't set correct color

Status
Not open for further replies.

utoyo

Technical User
Mar 5, 2005
123
US
I am opening an image with NewFromJpeg and then use $newcolor = $im->colorAllocate(X,Y,Z) to set the color. But when I use $newcolor with the polygon function, the color that is actually set is a color from the image (a color in a good amount of the image) and not the value I chose.

What could I be doing wrong? Can the colorAllocate function be used with truecolor images? If not, what should I be using?

Thanks in Advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top