-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm using php gd lib 5.2.13 and tried to make a picture with imagettftext ($image, $color and $font are defined of course).
imagettftext($image, 12, 90, 10, 20, $black, $font, "This.is_a test 123");
//image, font size, angle, x value, y value, color, font, text
As you can see I want the angle to…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi,
this is the script i made
// Create image
$img = imagecreatetruecolor($w, $h);
// Transparent image
$white = imagecolorallocate($img,255,255,255);
imagefilledrectangle($img,0,0,$w,$h,$white);
imagecolortransparent($img, $white);
//imagealphablending( $img, true );
//imagesavealpha( $img…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am currently looking into color manipulation / selection etc and have come acroos the following piece of code. I was wondering of someone could tell me what the following piece of code is doing and break it down for me thanks!
$newVal = round(round(($rgb['red'] / 0x33)) * 0x33);
In particluar…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I want to skew an image into a trapezoidal shape. The left and right edges need to be straight up and down; the top and left edges need to be angular. I have no idea what the best way to do this is.
I'm using GD Library and PHP. Can anyone point me in the right direction?
Thanks,
Jason
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am looking to find a why to calculate a suitable background colour and a colour for the text that would go over the top, obviously I need to take into account readability and accessibility.
I would need to pick the two colours from the array, the colours are stored in their hex representations…
>>> More