mirror of
https://github.com/php/doc-tr.git
synced 2026-03-24 15:22:23 +01:00
166 lines
4.3 KiB
XML
166 lines
4.3 KiB
XML
<?xml version='1.0' encoding='utf-8'?>
|
||
<!-- EN-Revision: 213fbd9440a224f9c1da4942c85124ce0c120c52 Maintainer: nilgun Status: ready -->
|
||
<refentry xml:id="function.imageconvolution" xmlns="http://docbook.org/ns/docbook">
|
||
<refnamediv>
|
||
<refname>imageconvolution</refname>
|
||
<refpurpose>Bir konum ve katsayı ile 3x3'lük bir evrişim matrisini
|
||
uygular</refpurpose>
|
||
</refnamediv>
|
||
|
||
<refsect1 role="description">
|
||
&reftitle.description;
|
||
<methodsynopsis>
|
||
<type>bool</type><methodname>imageconvolution</methodname>
|
||
<methodparam><type>GdImage</type><parameter>görüntü</parameter></methodparam>
|
||
<methodparam><type>array</type><parameter>matris</parameter></methodparam>
|
||
<methodparam><type>float</type><parameter>bölen</parameter></methodparam>
|
||
<methodparam><type>float</type><parameter>konum</parameter></methodparam>
|
||
</methodsynopsis>
|
||
<para>
|
||
Bir konum ve katsayı ile 3x3'lük bir evrişim matrisini uygular.
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="parameters">
|
||
&reftitle.parameters;
|
||
<para>
|
||
<variablelist>
|
||
&gd.image.description;
|
||
<varlistentry>
|
||
<term><parameter>matris</parameter></term>
|
||
<listitem>
|
||
<para>
|
||
Bir 3x3 matris: üç gerçel sayı içeren üç diziden oluşmuş bir dizi.
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
<varlistentry>
|
||
<term><parameter>bölen</parameter></term>
|
||
<listitem>
|
||
<para>
|
||
Normalleştirme için kullanılan evrişim sonucu böleni.
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
<varlistentry>
|
||
<term><parameter>konum</parameter></term>
|
||
<listitem>
|
||
<para>
|
||
Renk konumu.
|
||
</para>
|
||
</listitem>
|
||
</varlistentry>
|
||
</variablelist>
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="returnvalues">
|
||
&reftitle.returnvalues;
|
||
<para>
|
||
&return.success;
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="changelog">
|
||
&reftitle.changelog;
|
||
<informaltable>
|
||
<tgroup cols="2">
|
||
<thead>
|
||
<row>
|
||
<entry>&Version;</entry>
|
||
<entry>&Description;</entry>
|
||
</row>
|
||
</thead>
|
||
<tbody>
|
||
&gd.changelog.image-param;
|
||
</tbody>
|
||
</tgroup>
|
||
</informaltable>
|
||
</refsect1>
|
||
|
||
<refsect1 role="examples">
|
||
&reftitle.examples;
|
||
<para>
|
||
<example>
|
||
<title>- PHP.net logosuna kabartma etkisi vermek</title>
|
||
<programlisting role="php">
|
||
<![CDATA[
|
||
<?php
|
||
$image = imagecreatefromgif('http://www.php.net/images/php.gif');
|
||
|
||
$emboss = array(array(2, 0, 0), array(0, -1, 0), array(0, 0, -1));
|
||
imageconvolution($image, $emboss, 1, 127);
|
||
|
||
header('Content-Type: image/png');
|
||
imagepng($image, null, 9);
|
||
?>
|
||
]]>
|
||
</programlisting>
|
||
&example.outputs;
|
||
<mediaobject>
|
||
<alt>Örnek çıktısı : PHP.net logosunu kabartmak</alt>
|
||
<imageobject>
|
||
<imagedata fileref="en/reference/image/figures/imageconvolution_emboss.png"/>
|
||
</imageobject>
|
||
</mediaobject>
|
||
</example>
|
||
<example>
|
||
<title>- Gauss bulanıklığı</title>
|
||
<programlisting role="php">
|
||
<![CDATA[
|
||
<?php
|
||
$image = imagecreatetruecolor(180,40);
|
||
|
||
// Görüntüye bir yazı yazıp görüntüyü bulanıklaştıralım
|
||
imagestring($image, 5, 10, 8, 'Gaussian Blur Text', 0x00ff00);
|
||
$gaussian = array(array(1.0, 2.0, 1.0), array(2.0, 4.0, 2.0), array(1.0, 2.0, 1.0));
|
||
imageconvolution($image, $gaussian, 16, 0);
|
||
|
||
// Karşılaştırma için aynı metni tekrar yazalım
|
||
imagestring($image, 5, 10, 18, 'Gaussian Blur Text', 0x00ff00);
|
||
|
||
header('Content-Type: image/png');
|
||
imagepng($image, null, 9);
|
||
?>
|
||
]]>
|
||
</programlisting>
|
||
&example.outputs;
|
||
<mediaobject>
|
||
<alt>Örnek çıktısı : Gauss bulanıklığı</alt>
|
||
<imageobject>
|
||
<imagedata fileref="en/reference/image/figures/imageconvolution_gaussian.png"/>
|
||
</imageobject>
|
||
</mediaobject>
|
||
</example>
|
||
</para>
|
||
</refsect1>
|
||
|
||
<refsect1 role="seealso">
|
||
&reftitle.seealso;
|
||
<simplelist>
|
||
<member><function>imagefilter</function></member>
|
||
</simplelist>
|
||
</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
|
||
-->
|