mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Fixing example description and PHP Notice (Undefined variable: column)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336042 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
e91739280c
commit
e46f07eb7d
1 changed files with 2 additions and 4 deletions
|
@ -80,7 +80,7 @@
|
|||
<example><!-- {{{ -->
|
||||
<title><methodname>Imagick::getPixelRegionIterator</methodname> example</title>
|
||||
<para>
|
||||
Iterate over the pixels in the top left of the image, changing every other one to be transparent black.
|
||||
Iterate over the pixels in the top left of the image, changing them to be black.
|
||||
</para>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
|
@ -90,10 +90,8 @@ $areaIterator = $im->getPixelRegionIterator(0, 0, 10, 10);
|
|||
|
||||
foreach ($areaIterator as $rowIterator) {
|
||||
foreach ($rowIterator as $pixel) {
|
||||
if ($column % 2) {
|
||||
// Paint every second pixel black
|
||||
// Paint every pixel black
|
||||
$pixel->setColor("rgba(0, 0, 0, 0)");
|
||||
}
|
||||
}
|
||||
$areaIterator->syncIterator();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue