Jump to content

[SOLVED] Creating a WHITE background with imagecreate()..


galvin

Recommended Posts

imagecreate() creates an image identifier, like a resource stream.  It's a "black" background because that's the standard "nothing is added to the image yet" background.  There's no way to change that initial color.  What you would instead do is use something like imagefill to floodfill the image.  Or maybe use imagefilledrectangle

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.