Re: Manipulating binary data
- From: brainflakes.org@xxxxxxxxxxxxxx
- Date: 30 Apr 2007 06:06:54 -0700
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"
.
- References:
- Manipulating binary data
- From: brainflakes . org
- Re: Manipulating binary data
- From: Toby A Inkster
- Manipulating binary data
- Prev by Date: Re: RegEx - Chk for special chars
- Next by Date: Re: Unexpected absence of expected warning
- Previous by thread: Re: Manipulating binary data
- Next by thread: Re: Manipulating binary data
- Index(es):
Relevant Pages
|