mirror of
https://github.com/php/doc-ja.git
synced 2026-04-26 17:38:12 +02:00
bede85bf76
## 翻訳内容 ### 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
189 lines
4.9 KiB
XML
189 lines
4.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: fcd9214294f88b05862a538c6dd94c7872420139 Maintainer: hirokawa Status: ready -->
|
|
<!-- CREDITS: shimooka,mumumu -->
|
|
<refentry xml:id="function.imagedashedline" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>imagedashedline</refname>
|
|
<refpurpose>破線を描画する</refpurpose>
|
|
</refnamediv>
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>true</type><methodname>imagedashedline</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>imagesetstyle</function> と
|
|
<function>imageline</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>imagedashedline</function> の例</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
// 100x100 の画像を作成します
|
|
$im = imagecreatetruecolor(100, 100);
|
|
$white = imagecolorallocate($im, 0xFF, 0xFF, 0xFF);
|
|
|
|
// 縦の破線を描画します
|
|
imagedashedline($im, 50, 25, 50, 75, $white);
|
|
|
|
// 画像を保存します
|
|
imagepng($im, './dashedline.png');
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs.similar;
|
|
<mediaobject>
|
|
<alt>出力例 : imagedashedline()</alt>
|
|
<imageobject>
|
|
<imagedata fileref="en/reference/image/figures/imagedashedline.png"/>
|
|
</imageobject>
|
|
</mediaobject>
|
|
</example>
|
|
<example>
|
|
<title><function>imagedashedline</function> のもうひとつの使用法</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
// 100x100 の画像を作成します
|
|
$im = imagecreatetruecolor(100, 100);
|
|
$white = imagecolorallocate($im, 0xFF, 0xFF, 0xFF);
|
|
|
|
// 独自のスタイルの作成: 最初の 4 ピクセルを白色、
|
|
// 次の 4 ピクセルを透明とし、破線風の効果を作成します
|
|
$style = Array(
|
|
$white,
|
|
$white,
|
|
$white,
|
|
$white,
|
|
IMG_COLOR_TRANSPARENT,
|
|
IMG_COLOR_TRANSPARENT,
|
|
IMG_COLOR_TRANSPARENT,
|
|
IMG_COLOR_TRANSPARENT
|
|
);
|
|
|
|
imagesetstyle($im, $style);
|
|
|
|
// 破線を描画します
|
|
imageline($im, 50, 25, 50, 75, IMG_COLOR_STYLED);
|
|
|
|
// 画像を保存します
|
|
imagepng($im, './imageline.png');
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<simplelist>
|
|
<member><function>imagesetstyle</function></member>
|
|
<member><function>imageline</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
|
|
-->
|