mirror of
https://github.com/php/doc-ja.git
synced 2026-03-25 15:42:08 +01:00
## 翻訳内容 ### reference/image(34件)— return type アノテーション修正 - reference/image/functions/imageresolution.xml — 戻り値型を `array|bool` から `array|true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagealphablending.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imageantialias.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagearc.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagechar.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagecharup.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagecolordeallocate.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagecolormatch.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagecopy.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagecopymerge.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagecopymergegray.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagecopyresampled.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagecopyresized.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagedashedline.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagedestroy.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imageellipse.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagefill.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagefilledarc.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagefilledellipse.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagefilledrectangle.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagefilltoborder.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imageflip.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagegammacorrect.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagelayereffect.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imageline.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagerectangle.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagesavealpha.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagesetbrush.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagesetclip.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagesetpixel.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagesetthickness.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagesettile.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagestring.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 - reference/image/functions/imagestringup.xml — 戻り値型を `bool` から `true` に修正 1. php/doc-en@fcd9214 ### 独立ファイル - reference/array/functions/array-multisort.xml — 戻り値型を `bool` から `true` に変更、8.5.0 changelog 追加 1. php/doc-en@5b76466 - reference/fileinfo/functions/finfo-close.xml — 戻り値型を `true` に変更、NOP化・非推奨の changelog 追加 1. php/doc-en@fcd9214 2. php/doc-en@34bd6f0 3. php/doc-en@5b76466 - reference/ftp/functions/ftp-set-option.xml — 戻り値型を `true` に変更、errors セクション追加、8.5.0 changelog 追加 1. php/doc-en@fcd9214 2. php/doc-en@5b76466 - reference/sem/functions/shm-detach.xml — 戻り値型を `bool` から `true` に変更、8.5.0 changelog 追加 1. php/doc-en@5b76466 - reference/pcntl/functions/pcntl-exec.xml — 戻り値型を `bool` から `false` に修正、エンティティエンコーディング修正 1. php/doc-en@fcd9214 - reference/libxml/functions/libxml-set-external-entity-loader.xml — 戻り値型を `bool` から `true` に変更、8.5.0 changelog 追加 1. php/doc-en@5b76466
156 lines
4.0 KiB
XML
156 lines
4.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: fcd9214294f88b05862a538c6dd94c7872420139 Maintainer: hirokawa Status: ready -->
|
|
<!-- CREDITS: shimooka -->
|
|
<refentry xml:id="function.imagerectangle" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>imagerectangle</refname>
|
|
<refpurpose>矩形を描画する</refpurpose>
|
|
</refnamediv>
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>true</type><methodname>imagerectangle</methodname>
|
|
<methodparam><type>GdImage</type><parameter>image</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>x1</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>y1</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>x2</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>y2</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>color</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>imagerectangle</function> は、指定した座標から始まる矩形を作成します。
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
&gd.image.description;
|
|
<varlistentry>
|
|
<term><parameter>x1</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
左上の x 座標。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>y1</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
左上の y 座標。
|
|
0, 0 が画像の左上隅を表します。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>x2</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
右下の x 座標。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>y2</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
右下の y 座標。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>color</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
&gd.identifier.color;
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
&return.true.always;
|
|
</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;
|
|
<para>
|
|
<example>
|
|
<title>シンプルな <function>imagerectangle</function> の例</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
// 200 x 200 の画像を作成します
|
|
$canvas = imagecreatetruecolor(200, 200);
|
|
|
|
// 色を割り当てます
|
|
$pink = imagecolorallocate($canvas, 255, 105, 180);
|
|
$white = imagecolorallocate($canvas, 255, 255, 255);
|
|
$green = imagecolorallocate($canvas, 132, 135, 28);
|
|
|
|
// 3 つの矩形をそれぞれの色で描画します
|
|
imagerectangle($canvas, 50, 50, 150, 150, $pink);
|
|
imagerectangle($canvas, 45, 60, 120, 100, $white);
|
|
imagerectangle($canvas, 100, 120, 75, 160, $green);
|
|
|
|
// 出力します
|
|
header('Content-Type: image/jpeg');
|
|
imagejpeg($canvas);
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs.similar;
|
|
<mediaobject>
|
|
<alt>出力例 : シンプルな imagerectangle() の例</alt>
|
|
<imageobject>
|
|
<imagedata fileref="en/reference/image/figures/imagerectangle.jpg"/>
|
|
</imageobject>
|
|
</mediaobject>
|
|
</example>
|
|
</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
|
|
-->
|