There is a rather useful GD2+ manipulation class that extends the basic functionality of GD spreading through various sites (resourceindex.com, phpclasses.org, phpfreaks.com and phpbuilder.com.
) - main page:
http://www.teckis.com/compiled_files/img_create.php
The drop-shadow effect could do with some work - when I get the time and motivation
if you wanted the rgb of a pixel, you could use
PHP Code:
// $this->r = image height
for( $this->dy = 0; $this->dy <= $this->r; $this->dy++ )
{
// this->q = image width
for( $this->dx = 0; $this->dx <= $this->q; $this->dx++ )
{
$this->pxrgb = imagecolorat($this->t, $this->dx, $this->dy);
$this->rgb = ImageColorsforIndex( $this->t, $this->pxrgb );
// leaves $this->rgb['red'] = the red value etc - 'green' - 'blue'
$this->setcol = ImageColorAllocate( $this->t, $this->newcol, $this->newcol, $this->newcol );
imagesetpixel( $this->t, $this->dx, $this->dy, $this->setcol );
}
}
might give you a hint of functions to use for a procedural approach anyway.