mirror of
https://github.com/php/doc-ja.git
synced 2026-03-24 15:12:22 +01:00
## 翻訳内容 ### language/predefined/attribute(1件) - language/predefined/attribute/construct.xml — Attribute::__construct() の $flags に定数タグ追加 1. php/doc-en@0eb433f ### パラメータ名修正(7件) - reference/funchand/functions/forward-static-call-array.xml — synopsis/description のパラメータ名一致修正 1. php/doc-en@c6fb604 - reference/image/functions/imageinterlace.xml — パラメータ名修正 (interlace → enable) 1. php/doc-en@c6fb604 - reference/calendar/functions/jdmonthname.xml — パラメータ名修正 (jday → julian_day) 1. php/doc-en@c6fb604 - reference/ps/functions/ps-begin-pattern.xml — パラメータ名修正 (x-step/y-step → xstep/ystep) 1. php/doc-en@c6fb604 - reference/ps/functions/ps-set-info.xml — パラメータ名修正 (p → psdoc, val → value) 1. php/doc-en@c6fb604 - reference/ps/functions/ps-open-image.xml — パラメータ名 typo 修正 (lenght → length) 1. php/doc-en@c6fb604 - reference/oci8/functions/oci-free-descriptor.xml — パラメータ名修正 (descriptor → lob) 1. php/doc-en@c6fb604 ### パラメータ型・名前の同期(9件) - reference/zlib/functions/gzfile.xml — use_include_path の型を int→bool に変更、changelog 追加 1. php/doc-en@aa120f3 - reference/zlib/functions/gzopen.xml — use_include_path の型を int→bool に変更、changelog 追加 1. php/doc-en@aa120f3 - reference/zlib/functions/readgzfile.xml — use_include_path の型を int→bool に変更、changelog 追加 1. php/doc-en@aa120f3 - reference/pcntl/functions/pcntl-setcpuaffinity.xml — パラメータ名変更 (pid→process_id, hmask→cpu_ids) 1. php/doc-en@aa120f3 - reference/pcntl/functions/pcntl-getcpuaffinity.xml — パラメータ名変更 (pid→process_id)、戻り値型修正 1. php/doc-en@aa120f3 - reference/zlib/functions/deflate_init.xml — options パラメータの型に object を追加 1. php/doc-en@aa120f3 - reference/zlib/functions/inflate_init.xml — options パラメータの型に object を追加 1. php/doc-en@aa120f3 - reference/ldap/functions/ldap-get-option.xml — ldap パラメータを nullable に変更、changelog 追加 1. php/doc-en@aa120f3 - reference/openssl/functions/openssl-cms-encrypt.xml — cipher_algo の型に string を追加、changelog 追加 1. php/doc-en@aa120f3 ### reference/soap, openssl(7件) - reference/soap/soapfault/construct.xml — パラメータ名修正 + lang パラメータ追加 1. php/doc-en@9a8c593 2. php/doc-en@d9cfd78 - reference/soap/soapserver/fault.xml — lang パラメータ追加 1. php/doc-en@9a8c593 - reference/soap/soapclient/dorequest.xml — uriParserClass パラメータ追加 1. php/doc-en@9a8c593 - reference/openssl/functions/openssl-sign.xml — padding パラメータ追加 1. php/doc-en@9a8c593 - reference/openssl/functions/openssl-verify.xml — padding パラメータ追加 1. php/doc-en@9a8c593 - reference/openssl/functions/openssl-private-decrypt.xml — digest_algo パラメータ追加、OEAP→OAEP typo修正 1. php/doc-en@9a8c593 2. php/doc-en@8108ac2 - reference/openssl/functions/openssl-public-encrypt.xml — digest_algo パラメータ追加、OEAP→OAEP typo修正 1. php/doc-en@9a8c593 2. php/doc-en@8108ac2
174 lines
4.7 KiB
XML
174 lines
4.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: c6fb604f39a0fa7bf1ae872064b2a3a24f23d855 Maintainer: takagi Status: ready -->
|
|
<refentry xml:id="function.ps-begin-pattern" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>ps_begin_pattern</refname>
|
|
<refpurpose>新しいパターンを開始する</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type class="union"><type>int</type><type>false</type></type><methodname>ps_begin_pattern</methodname>
|
|
<methodparam><type>resource</type><parameter>psdoc</parameter></methodparam>
|
|
<methodparam><type>float</type><parameter>width</parameter></methodparam>
|
|
<methodparam><type>float</type><parameter>height</parameter></methodparam>
|
|
<methodparam><type>float</type><parameter>xstep</parameter></methodparam>
|
|
<methodparam><type>float</type><parameter>ystep</parameter></methodparam>
|
|
<methodparam><type>int</type><parameter>painttype</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
新しいパターンを開始します。パターンとは、
|
|
領域を塗りつぶすための描画データを含むページのようなものです。
|
|
<function>ps_setcolor</function> をコールする際に
|
|
<literal>pattern</literal> に色空間を指定すると、
|
|
これは色のように使用されます。
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>psdoc</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
<function>ps_new</function> が返す、postscript
|
|
ファイルのリソース ID。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>width</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
ピクセル単位のパターンの幅。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>height</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
ピクセル単位のパターンの高さ。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>xstep</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
パターンを水平方向に並べる際のピクセル単位の間隔。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>ystep</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
パターンを垂直方向に並べる際のピクセル単位の間隔。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>painttype</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
1 あるいは 2 でなければなりません。
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
パターンの ID を返します。&return.falseforfailure;。
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>パターンの作成および使用</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$ps = ps_new();
|
|
|
|
if (!ps_open_file($ps, "pattern.ps")) {
|
|
print "PostScript ファイルをオープンできません\n";
|
|
exit;
|
|
}
|
|
|
|
ps_set_parameter($ps, "warning", "true");
|
|
ps_set_info($ps, "Creator", "pattern.php");
|
|
ps_set_info($ps, "Author", "Uwe Steinmann");
|
|
ps_set_info($ps, "Title", "Pattern example");
|
|
|
|
|
|
$pspattern = ps_begin_pattern($ps, 10.0, 10.0, 10.0, 10.0, 1);
|
|
ps_setlinewidth($ps, 0.2);
|
|
ps_setcolor($ps, "stroke", "rgb", 0.0, 0.0, 1.0, 0.0);
|
|
ps_moveto($ps, 0, 0);
|
|
ps_lineto($ps, 7, 7);
|
|
ps_stroke($ps);
|
|
ps_moveto($ps, 0, 7);
|
|
ps_lineto($ps, 7, 0);
|
|
ps_stroke($ps);
|
|
ps_end_pattern($ps);
|
|
|
|
ps_begin_page($ps, 596, 842);
|
|
ps_setcolor($ps, "both", "pattern", $pspattern, 0.0, 0.0, 0.0);
|
|
ps_rect($ps, 50, 400, 200, 200);
|
|
ps_fill($ps);
|
|
ps_end_page($ps);
|
|
|
|
ps_close($ps);
|
|
ps_delete($ps);
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>ps_end_pattern</function></member>
|
|
<member><function>ps_setcolor</function></member>
|
|
<member><function>ps_shading_pattern</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
|
|
-->
|
|
|