svn: /phpdoc/de/trunk/reference/image/functions/ imagesavealpha.xml

[email protected] (Christoph Michael Becker)
Newsgroups php.doc.de
Message-ID <[email protected]>
cmb                                      Sun, 03 Feb 2019 16:03:16 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=346691

Log:
Translate imagesavealpha.xml

Changed paths:
    A   phpdoc/de/trunk/reference/image/functions/imagesavealpha.xml

Added: phpdoc/de/trunk/reference/image/functions/imagesavealpha.xml
===================================================================
--- phpdoc/de/trunk/reference/image/functions/imagesavealpha.xml	                        (rev 0)
+++ phpdoc/de/trunk/reference/image/functions/imagesavealpha.xml	2019-02-03 16:03:16 UTC (rev 346691)
@@ -0,0 +1,114 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- $Revision: 339875 $ -->
+<!-- EN-Revision: 339875 Maintainer: cmb Status: ready -->
+
+<refentry xml:id="function.imagesavealpha" xmlns="http://docbook.org/ns/docbook">
+ <refnamediv>
+  <refname>imagesavealpha</refname>
+  <refpurpose>Ob beim Speichern von PNG-Bildern vollständige Alphakanal-Information erhalten wird</refpurpose>
+ </refnamediv>
+
+ <refsect1 role="description">
+  &reftitle.description;
+  <methodsynopsis>
+   <type>bool</type><methodname>imagesavealpha</methodname>
+   <methodparam><type>resource</type><parameter>image</parameter></methodparam>
+   <methodparam><type>bool</type><parameter>saveflag</parameter></methodparam>
+  </methodsynopsis>
+  <para>
+   <function>imagesavealpha</function> setzt das Flag, das bestimmt, ob beim Speichern
+   von PNG-Bildern vollständige Alphakanal-Information (im Gegensatz zu Einfarb-Transparenz)
+   erhalten wird.
+  </para>
+  <para>
+   Alphablending muss deaktiviert sein (<code>imagealphablending($im, false)</code>),
+   um den Alphakanal überhaupt zu erhalten.
+  </para>
+ </refsect1>
+
+ <refsect1 role="parameters">
+  &reftitle.parameters;
+  <para>
+   <variablelist>
+    &gd.image.description;
+    <varlistentry>
+     <term><parameter>saveflag</parameter></term>
+     <listitem>
+      <para>
+       Ob der Alphakanal gespeichert werden soll, oder nicht. Die Voreinstellung ist &false;.
+      </para>
+     </listitem>
+    </varlistentry>
+   </variablelist>
+  </para>
+ </refsect1>
+
+ <refsect1 role="returnvalues">
+  &reftitle.returnvalues;
+  <para>
+   &return.success;
+  </para>
+ </refsect1>
+
+ <refsect1 role="examples">
+  &reftitle.examples;
+  <para>
+   <example>
+    <title>Grundlegende <function>imagesavealpha</function> Verwendung</title>
+    <programlisting role="php">
+<![CDATA[
+<?php
+// Lade ein PNG-Bild mit Alphakanal
+$png = imagecreatefrompng('./alphachannel_example.png');
+
+// Deaktiviere das Alphablending
+imagealphablending($png, false);
+
+// Führe die gewünschten Operationen durch
+
+// Setze das Alphakanal-Flag
+imagesavealpha($png, true);
+
+// Gibt das Bild zum Browser aus
+header('Content-Type: image/png');
+
+imagepng($png);
+imagedestroy($png);
+?>
+]]>
+    </programlisting>
+   </example>
+  </para>
+ </refsect1>
+
+ <refsect1 role="seealso">
+  &reftitle.seealso;
+  <para>
+   <simplelist>
+    <member><function>imagealphablending</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
+-->
+
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.