raful Mon Jan 21 13:04:37 2002 EDT
Added files:
/phpdoc/he/features images.xml
Log:
first version, I hope it's ok
Index: phpdoc/he/features/images.xml
+++ phpdoc/he/features/images.xml
<?xml version="1.0" encoding="iso-8859-8-i"?>
<!-- $Revision: 1.1 $ -->
<chapter id="features.images">
<title>����� ������ �� ������</title>
<simpara>
PHP �� ����� �� ������ �� ��� ����� HTML. ��� �� ���� ����� ����
���� ������ ������ ������ ����� �����, ������� �� gif, png, jpg,
wbmp, and xpm. ����� ���� ���, php ���� ��� ��� �� ����� �����
������ ������. ��� ���� ������ ����� �� PHP �� ������ ���������
�������, GD, ��� ��� �����. GD �-PHP ������ ����� ������ �����,
���� ������ ������ ���� ��� ����� �����. GD ����� ����� �������
������ GIF ������ 1.6.
</simpara>
<para>
<example>
<title>����� ���� PNG �-PHP</title>
<programlisting role="php">
<![CDATA[
<?php
Header("Content-type: image/png");
$string=implode($argv," ");
$im = imageCreateFromPng("images/button1.png");
$orange = ImageColorAllocate($im, 220, 210, 60);
$px = (imagesx($im)-7.5*strlen($string))/2;
ImageString($im,3,$px,9,$string,$orange);
ImagePng($im);
ImageDestroy($im);
?>
]]>
</programlisting>
</example>
������ ��� ����� ����� �� �� ���: <img
src="button.php?text"> ������� button.php ������ ����
�� ������� "text" ����� ���� �� ����� �����, ������ ����
��� "images/button1.png" ����� �� ������ �������. �� ���
���� ���� ������ ������ ������ ����� ����� ��� ��� ������ ����� ��
����� ��� ������. ����� ��� �� ������ ����� ������.
</para>
</chapter>
<!-- 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:"../../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
-->