mirror of
https://github.com/php/doc-de.git
synced 2026-03-29 10:42:12 +02:00
fixed svn properties git-svn-id: https://svn.php.net/repository/phpdoc/de/trunk@283888 c90b9560-bf6c-de11-be94-00142212c4b1
74 lines
2.3 KiB
XML
74 lines
2.3 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision$ -->
|
|
<!-- splitted from ./de/functions/image.xml, last change in rev 1.2 -->
|
|
<!-- last change to 'imagecreate' in en/ tree in rev 1.36 -->
|
|
<!-- EN-Revision: n/a Maintainer: nobody Status: ready -->
|
|
<!-- OLD-Revision: 1.26/EN.1.36 -->
|
|
<refentry xml:id="function.imagecreate" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>imagecreate</refname>
|
|
<refpurpose>Erzeugt ein neues Bild</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>Beschreibung:</title>
|
|
<methodsynopsis>
|
|
<type>resource</type><methodname>imagecreate</methodname>
|
|
<methodparam><type>int</type><parameter>x_size</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>y_size</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>ImageCreate</function> gibt den Zeiger auf ein neues
|
|
Bild zurück. Dieser Zeiger stellt ein leeres Bild mit der Größe
|
|
<parameter>x_size</parameter> und <parameter>y_size</parameter>
|
|
dar.
|
|
</para>
|
|
<para>
|
|
Es wird empfohlen, die Funktion <function>imagecreatetruecolor</function>
|
|
zu verwenden.
|
|
</para>
|
|
<para>
|
|
<example>
|
|
<title>
|
|
Erzeugung eines neuen GD-Bild-Streams und Ausgabe des Bildes:
|
|
</title>
|
|
<programlisting role="php">
|
|
<?php
|
|
header ("Content-type: image/png");
|
|
$im = @ImageCreate (50, 100)
|
|
or die ("Kann keinen neuen GD-Bild-Stream erzeugen");
|
|
$background_color = ImageColorAllocate ($im, 255, 255, 255);
|
|
$text_color = ImageColorAllocate ($im, 233, 14, 91);
|
|
ImageString ($im, 1, 5, 5, "Ein Test-String", $text_color);
|
|
ImagePNG ($im);
|
|
?>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
<para>
|
|
Siehe auch <function>imagedestroy</function> und
|
|
<function>imagecreatetruecolor</function>.
|
|
</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:"../../../../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
|
|
-->
|