Posted by brainflakes.org on 04/30/07 13:06
>
> you store it as:
>
> $string = 'abc123xyz';
>
> Which is roughly how a 2-dimensional array is internally stored by a C
> program.
As I said I've tried that, however using GD lib is actually 30-40%
faster then manipulating a string
"I figured the best way to do it would be to just "allocate" a memory
space of $width * $height bytes and copy the image into that, which I
guess is done by creating a string of that length. However even just
plotting to $string[$n++]=chr($val) (no co-ord calculations) is slower
then imagesetpixel() on an 8-bit image"
Navigation:
[Reply to this message]
|