News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

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 imagickpixeliterator readonly example


blog comments powered by Disqus

Similar Posts

Jan Lehnardt's Blog: Using the Zend Framework with Code Igniter (an alternative)

Symfony Blog: Symfony2: Getting Easier - Interactive Generators

Pierre-Alain Joye's Blog: how to do not work around filter (don't be lazy :)

PHPHacks.com: How to create an Ajax RSS reader with PHP

Hasin Hayder's Blog: WorldTimeEngine - How about making your own in PHP?


Community Events





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


version update interview install series composer package symfony library release voicesoftheelephpant opinion tool introduction framework community laravel security language podcast

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