We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Just for the sharing:
If you want to write semi-transparent text, instead of passing hexa color to write(), you can pass an imagecolorallocatealpha ressource:
imagecolorallocatealpha
Classic text:
$image->write( 'myfont.ttf', 'mytext', 10, 290, '10', '0', '666666', 'left' );
Transparent text (with custom opacity from 0 to 127):
$opacity = 100; // from 0 to 127 $image->write( 'myfont.ttf', 'mytext', 10, 290, '10', '0', imagecolorallocatealpha(imagecreatetruecolor(IMAGE_WIDTH, IMAGE_HEIGHT), 0, 0, 0, $opacity), 'left' );
See imagecolorallocatealpha()
Hope this will help some people.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Just for the sharing:
If you want to write semi-transparent text, instead of passing hexa color to write(), you can pass an
imagecolorallocatealpha
ressource:Classic text:
Transparent text (with custom opacity from 0 to 127):
See imagecolorallocatealpha()
Hope this will help some people.
The text was updated successfully, but these errors were encountered: