svn: /phpdoc/ru/trunk/reference/image/functions/ imagecolorresolve.xml
| From: | Max Chaban | Date: | Fri, 18 Nov 2011 10:54:37 +0000 |
| Subject: | svn: /phpdoc/ru/trunk/reference/image/functions/ imagecolorresolve.xml | ||
| Groups: | php.doc.ru | ||
| Request: | Send a blank email to doc-ru+get-3204@lists.php.net to get a copy of this message | ||
mch Fri, 18 Nov 2011 10:54:37 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=319462
Log:
Added unreviewed translation by Anonymous 12274.
Changed paths:
A phpdoc/ru/trunk/reference/image/functions/imagecolorresolve.xml
Added: phpdoc/ru/trunk/reference/image/functions/imagecolorresolve.xml
===================================================================
--- phpdoc/ru/trunk/reference/image/functions/imagecolorresolve.xml (rev 0)
+++ phpdoc/ru/trunk/reference/image/functions/imagecolorresolve.xml 2011-11-18 10:54:37 UTC (rev
319462)
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision$ -->
+<!-- EN-Revision: 309972 Maintainer: mch Status: ready -->
+<!-- Reviewed: no -->
+<refentry xml:id="function.imagecolorresolve" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+ <refname>imagecolorresolve</refname>
+ <refpurpose>Получает идентификатор конкретного цвета
или его ближайший аналог</refpurpose>
+ </refnamediv>
+ <refsect1 role="description">
+ &reftitle.description;
+ <methodsynopsis>
+ <type>int</type><methodname>imagecolorresolve</methodname>
+
<methodparam><type>resource</type><parameter>image</parameter></methodparam>
+
<methodparam><type>int</type><parameter>red</parameter></methodparam>
+
<methodparam><type>int</type><parameter>green</parameter></methodparam>
+
<methodparam><type>int</type><parameter>blue</parameter></methodparam>
+ </methodsynopsis>
+ <para>
+ Эта функция обязательно вернет идентификатор цвета
+ для выбранного цвета, либо ближайшую возможную
+ его альтернативу.
+ </para>
+ <para>&gd.image.colors;</para>
+ </refsect1>
+ <refsect1 role="parameters">
+ &reftitle.parameters;
+ <para>
+ <variablelist>
+ &gd.image.description;
+ <varlistentry>
+ <term><parameter>red</parameter></term>
+ <listitem>
+ <para>&gd.value.red;</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>green</parameter></term>
+ <listitem>
+ <para>&gd.value.green;</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><parameter>blue</parameter></term>
+ <listitem>
+ <para>&gd.value.blue;</para>
+ </listitem>
+ </varlistentry>
+ </variablelist>
+ </para>
+ </refsect1>
+ <refsect1 role="returnvalues">
+ &reftitle.returnvalues;
+ <para>
+ Возвращает цветовой идентификатор.
+ </para>
+ </refsect1>
+ <refsect1 role="examples">
+ &reftitle.examples;
+ <example>
+ <title>Использование <function>imagecoloresolve</function> для
получения цветов из изображения.</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+// загрузить изображение
+$im = imagecreatefromgif('phplogo.gif');
+
+// получить ближайшие цвета на изображении
+$colors = array();
+$colors[] = imagecolorresolve($im, 255, 255, 255);
+$colors[] = imagecolorresolve($im, 0, 0, 200);
+
+// вывод
+print_r($colors);
+
+imagedestroy($im);
+?>
+]]>
+ </programlisting>
+ &example.outputs.similar;
+ <screen>
+<![CDATA[
+Array
+(
+ [0] => 89
+ [1] => 85
+)
+]]>
+ </screen>
+ </example>
+ </refsect1>
+ <refsect1 role="seealso">
+ &reftitle.seealso;
+ <para>
+ <simplelist>
+ <member><function>imagecolorclosest</function></member>
+ </simplelist>
+ </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
+-->
Property changes on: phpdoc/ru/trunk/reference/image/functions/imagecolorresolve.xml
___________________________________________________________________
Added: svn:keywords
+ Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL
Added: svn:eol-style
+ native