News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
Mikko Koppanen's Blog:
ImagickPixelIterator is not read-only after all...
November 15, 2007 @ 09:38:00

Mikko Koppanen is back with a tip for users of the ImagickPixelIterator functionality of Imagick - it's not read-only after all.

A few days ago I got a help request from a user: "How do you change pixel color during the iteration with ImagickPixelIterator". My initial response was that ImagickPixelIterator is read-only. Well, I have to admit I was wrong. After searching trough ImageMagick docs I stumbled across an example and noticed that PixelIterator (and therefor ImagickPixelIterator) is not read-only after all.

He illustrates with a code example, one showing how to make the object from an image and how to update every second pixel to be black. Source and result images are also included.

0 comments voice your opinion now!
imagickpixeliterator readonly example code imagickpixeliterator readonly example code



Similar Posts

Richard Lord's Blog: PHP Password Security

Adam Harvey's Blog: $pear->list

Nexen.net: Sudoku in PHP

Knut Urdalen's Blog: ORM the manual way

Kevin van Zonneveld's Blog: Convert anything to Tree Structures in PHP


Community Events











Don't see your event here?
Let us know!


job security package PHP5 conference releases zend zendframework release application code mysql book example cakephp framework developer database ajax PEAR

All content copyright, 2008 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework