1
0
mirror of https://github.com/php/doc-ja.git synced 2026-04-30 03:23:23 +02:00
Files
archived-doc-ja/reference/image/functions/imagegetclip.xml
T
2021-05-25 00:12:09 +09:00

127 lines
3.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 593ea510e853ff034e03f78a4be0daa41661c9d4 Maintainer: mumumu Status: ready -->
<refentry xml:id="function.imagegetclip" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>imagegetclip</refname>
<refpurpose>長方形を切り取り、画像として取得する</refpurpose>
</refnamediv>
<refsect1 role="description"><!-- {{{ -->
&reftitle.description;
<methodsynopsis>
<type>array</type><methodname>imagegetclip</methodname>
<methodparam><type>GdImage</type><parameter>image</parameter></methodparam>
</methodsynopsis>
<para>
<function>imagegetclip</function> 関数は、現在切り取っている長方形を取得します。
つまり、ピクセルが存在しない状態でなければ描画されます。
</para>
</refsect1><!-- }}} -->
<refsect1 role="parameters"><!-- {{{ -->
&reftitle.parameters;
<variablelist>
&gd.image.description;
</variablelist>
</refsect1><!-- }}} -->
<refsect1 role="returnvalues"><!-- {{{ -->
&reftitle.returnvalues;
<para>
この関数は、切り取っている長方形の座標を配列で返し、
次のエントリを持ちます:
<itemizedlist>
<listitem>
<simpara>左上のx座標</simpara>
</listitem>
<listitem>
<simpara>左上のx座標</simpara>
</listitem>
<listitem>
<simpara>右下のx座標</simpara>
</listitem>
<listitem>
<simpara>右下のy座標</simpara>
</listitem>
</itemizedlist>
</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;
<example xml:id="imagegetclip.example.basic"><!-- {{{ -->
<title><function>imagegetclip</function> の例</title>
<para>
切り取る範囲を設定し、長方形のクリップを取得します。
</para>
<programlisting role="php">
<![CDATA[
<?php
$im = imagecreate(100, 100);
imagesetclip($im, 10,10, 89,89);
print_r(imagegetclip($im));
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
Array
(
[0] => 10
[1] => 10
[2] => 89
[3] => 89
)
]]>
</screen>
</example><!-- }}} -->
</refsect1><!-- }}} -->
<refsect1 role="seealso"><!-- {{{ -->
&reftitle.seealso;
<simplelist>
<member><function>imagesetclip</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
-->