create white image with php

Viewed 11740

I trying create empty white image with php, this s my code

$bg = imagecreatetruecolor(120, 20);

imagejpeg($bg,"test/myimg.jpg",100);

but this created black image and I want create white, please tell how to set image for example white color?

1 Answers
Related