Definition: The ImageColorAllocate () function is used in PHP to set the color for an image you are creating with the GD Library. It's parameters are:
Â
The color values range from 0 to 255. If you are unfamiliar with choosing colors in this way this is a useful site that can help.
Also Known As: Image Create True Color, PHP Image Create True Color
Examples:
Â
- The image
- Red Value
- Green Value
- Blue Value
The color values range from 0 to 255. If you are unfamiliar with choosing colors in this way this is a useful site that can help.
Also Known As: Image Create True Color, PHP Image Create True Color
Examples:
<?phpheader ("Content-type: image/png");$handle = ImageCreate (130, 50) or die ("Cannot Create image");$bg_color = ImageColorAllocate ($handle, 255, 111, 0);ImagePng ($handle);?>
SHARE