mirror of
https://github.com/php/doc-tr.git
synced 2026-03-23 23:02:09 +01:00
94 lines
2.6 KiB
XML
94 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
||
<!-- EN-Revision: fa0c88f1e36a3f28b4fcee0b2d1e188b54e0c44b Maintainer: nilgun Status: ready -->
|
||
<refentry xmlns="http://docbook.org/ns/docbook" xml:id="imagickpixeliterator.getnextiteratorrow">
|
||
<refnamediv>
|
||
<refname>ImagickPixelIterator::getNextIteratorRow</refname>
|
||
<refpurpose>Piksel yineleyicinin sonraki satırını döndürür</refpurpose>
|
||
</refnamediv>
|
||
|
||
<refsect1 role="description">
|
||
&reftitle.description;
|
||
<methodsynopsis>
|
||
<modifier>public</modifier>
|
||
<type>array</type><methodname>ImagickPixelIterator::getNextIteratorRow</methodname>
|
||
<void/>
|
||
</methodsynopsis>
|
||
<para>
|
||
Sonraki satırı piksel yineleyicideki piksel kalemlerinden oluşan bir dizi
|
||
olarak döndürür.
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="returnvalues">
|
||
&reftitle.returnvalues;
|
||
<para>
|
||
Sonraki satırı <classname>ImagickPixel</classname> nesnelerinden oluşan
|
||
bir dizi olarak döndürür. Bir hata durumunda bir
|
||
<classname>ImagickPixelIteratorException</classname> yavrulanır.
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="examples">
|
||
&reftitle.examples;
|
||
<para>
|
||
<example>
|
||
<title>- <function>ImagickPixelIterator::getNextIteratorRow</function> örneği</title>
|
||
<programlisting role="php">
|
||
<![CDATA[
|
||
<?php
|
||
function getNextIteratorRow($imagePath) {
|
||
$imagick = new \Imagick(realpath($imagePath));
|
||
$imageIterator = $imagick->getPixelIterator();
|
||
|
||
$count = 0;
|
||
while ($pixels = $imageIterator->getNextIteratorRow()) {
|
||
if (($count % 3) == 0) {
|
||
/* Satırdaki piksellere döngü */
|
||
foreach ($pixels as $column => $pixel) {
|
||
/** @var $pixel \ImagickPixel */
|
||
if ($column % 2) {
|
||
/* Her ikinci pikseli siyah yap */
|
||
$pixel->setColor("rgba(0, 0, 0, 0)");
|
||
}
|
||
}
|
||
/* Yineleyiciyi eşle, her yinelemede bunu yapmak önemli */
|
||
$imageIterator->syncIterator();
|
||
}
|
||
|
||
$count += 1;
|
||
}
|
||
|
||
header("Content-Type: image/jpg");
|
||
echo $imagick;
|
||
}
|
||
|
||
?>
|
||
]]>
|
||
</programlisting>
|
||
</example>
|
||
</para>
|
||
</refsect1>
|
||
|
||
</refentry>
|
||
|
||
<!-- Keep this comment at the end of the file
|
||
Local variables:
|
||
mode: sgml
|
||
sgml-omittag:t
|
||
sgml-shorttag:t
|
||
sgml-minimize-attributes:nil
|
||
sgml-always-quote-attributes:t
|
||
sgml-indent-step:1
|
||
sgml-indent-data:t
|
||
indent-tabs-mode:nil
|
||
sgml-parent-document:nil
|
||
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
||
sgml-exposed-tags:nil
|
||
sgml-local-catalogs:nil
|
||
sgml-local-ecat-files:nil
|
||
End:
|
||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||
vim: et tw=78 syn=sgml
|
||
vi: ts=1 sw=1
|
||
-->
|