Re: [PROPOSAL] Package 'ImageText'

From: Date: Sat, 11 Oct 2003 11:15:43 +0000
Subject: Re: [PROPOSAL] Package 'ImageText'
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-22586@lists.php.net to get a copy of this message
On 11 Oct 2003 at 13:03, Pierre-Alain Joye wrote: > On Sat, 11 Oct 2003 00:14:52 +0200 > "Stefan Neufeind" <stefan@neufeind.net> wrote: > > > Hmm - you should consider using certain alpha-values for the > > shadows. GD2 has support for this. > > Alpha? Alpha can be used to draw the shadow, but the shadow itself > need more than only an alpha channel to be drawn :-) Tobi wrote that he wants to simply draw a shadow by using a lighter color (e.g. grey, when text is black). But I suggested not to have "hard" shadows but think of adding alpha-values to his shadow-colors ... hope now it's clear! > > There are two things on my mind: > > a) First I'd like to propose writing text from left-to-right or > > easily from top-to-down (which should be doable). b) You can draw > > text onto a new GD2-canvas, and rotate it by an arbitrary angle > > using: > > http://de3.php.net/manual/en/function.imagerotate.php afaik. > > And using a transparent background for the newly created gd2- canvas > > it might be doable to paste that text over the original image, > > right? Haven't tried, but should work. > > I do not like this idea. The 2st reason is FT2 already support rotated > text draw. Drawing hor/ver text and then rotate them gives a lower > quality than using directly the native FT2 functions. Btw, I wrote the > imagerotate function, so it's not like I do not know it ;-) Okay, blame me :-) Didn't know FT2 supports arbitrary rotation. From Tobi's mail I suspected this was one of his problems with rotation. Stefan

« previous php.pear.dev (#22586) next »