|
|
 |
PHP graphics object
date posted 23rd January 2003 22:05
This is a multi-part message in MIME format.
------=_NextPart_000_004E_01C2C32B.DC006A60
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hey kids
Bit of an obscure question maybe... but what the hell.
PHP graphics object thingy...
I need to recreate some silly drawing from a pile of vectors taken from =
flash and save it as a PNG. All well and good, but the flash files were =
drawn with a circular brush thickness that varies in size. I can get =
all this going no problem - but when I use the PHP graphics doobrey to =
recreate the image to save it, the lines come out all crappy as the =
imageline method draws pathetically when the thickness is increased with =
the imagesetthickness method. My problem is I really need it to draw =
lines with a circular brush.
All very well I thought - I'll use the imagesetbrush method to use a wee =
filled-in-circle image generated on the fly to draw them like that.
But it looks like a server killer. God knows why - I suspect I'm doing =
something idiotic. But it might just be that drawing loads of lines =
with an image as a brush is going to slow things down too much.
I won't post the code yet as I'd have to muck around with it to get it =
in a sensible format to post, but this is just a 'feeler' to see if =
anyone has any experience with this kind of thing.
Any takers?
Cheers,
Dan.
------=_NextPart_000_004E_01C2C32B.DC006A60
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hey kids
Bit of an obscure question maybe... but =
what the=20
hell.
PHP graphics object =
thingy...
I need to recreate some silly drawing =
from a pile=20
of vectors taken from flash and save it as a PNG. All =
well and good,=20
but the flash files were drawn with a circular brush thickness that =
varies in=20
size. I can get all this going no problem - but when I use the PHP =
graphics doobrey to recreate the image to save it, the lines come out =
all crappy=20
as the imageline method draws=20
pathetically when the thickness is increased with the imagesetthickness=20
method. My problem is I really need it to draw lines with a =
circular=20
brush.
All very well I thought - I'll use the imagesetbrush method to =
use a=20
wee filled-in-circle image generated on the fly to draw them like =
that.
But it looks like a server killer. God knows why - I =
suspect I'm=20
doing something idiotic. But it might just be that drawing loads =
of lines=20
with an image as a brush is going to slow things down too much.
I won't post the code yet as I'd have to muck around with it to get =
it in a=20
sensible format to post, but this is just a 'feeler' to see if anyone =
has any=20
experience with this kind of thing.
Any takers?
Cheers,
Dan.
------=_NextPart_000_004E_01C2C32B.DC006A60--
|
 |
|