text
stringlengths 1
254
| output
stringlengths 2
255
|
---|---|
imagesettile() sets the tile image to be used by all region filling functions (such as imagefill() and imagefilledpolygon()) when filling with the special color IMG_COLOR_TILED.
|
ImageSetTile() は、特別な色 IMG_COLOR_TILED を指定して塗りつぶされた場合に、 (ImageFill() や ImageFilledPolygon() のような) 領域塗りつぶし関数で使用されるタイルイメージを設定します。
|
Any GD image can be used as a tile, and by setting the transparent color index of the tile image with imagecolortransparent(), a tile allows certain parts of the underlying area to shine through can be created.
|
タイルは、領域を塗りつぶすために繰り返し使用されるイメージです。 全てのGDイメージをタイルとして使用可能で、 ImageColorTransparent() によりタイルの透過色ID を設定することにより、その一部から下の部分が透けて見えるようなタ イルを作成することが可能です。
|
You need not take special action when you are finished with a tile, but if you destroy the tile image, you must not use the IMG_COLOR_TILED color until you have set a new tile image!
|
注意 タイルの使用が終った際には、特別な処理は不要ですが、タイルイメー ジを破棄する場合には、新たにタイルイメージを設定するまでは、色 IMG_COLOR_TILEDを使用するべきません。
|
Prev
|
注意 この関数は、PHP 4.0.6で追加されました。
|
(PHP 3, PHP 4)
|
(PHP 3, PHP 4)
|
If font is 1, 2, 3, 4 or 5, a built-in font is used.
|
ImageString() は、画像 im に col 色で座標( x, y) (左上が0, 0)に文字列 s を描画します。 font が1, 2, 3, 4, 5 の場合、組込みフォントが使用されます。
|
Prev
|
imageloadfont() も参考にしてください。
|
(PHP 3, PHP 4)
|
(PHP 3, PHP 4)
|
If font is 1, 2, 3, 4 or 5, a built-in font is used.
|
ImageStringUp() は、画像 im 上に座標( x, y )から (左上が0, 0)、 col 色で垂直に文字列 s を描画します。 font が1, 2, 3, 4, 5の場合は組込みフォント が使用されます。
|
Prev
|
imageloadfont() も参考にしてください。
|
Prev
|
(PHP 3, PHP 4)
|
imagesx() returns the width of the image identified by image.
|
ImageSX() は im をIDとする 画像の幅を返します。
|
Prev
|
imagecreate() および imagesy() も参考にしてください。
|
Prev
|
(PHP 3, PHP 4)
|
imagesy() returns the height of the image identified by image.
|
ImageSY() は im で識別される 画像の高さを返します。
|
Prev
|
imagecreate() および imagesx() も参考にしてください。
|
imagetruecolortopalette() imagetruecolortopalette() converts a truecolor image to a palette image.
|
(PHP 4 = 4.0.6)
|
dither indicates if the image should be dithered - if it is TRUE then dithering will be used which will result in a more speckled image but with better color approximation.
|
dither は、イメージにディザーをかけること を指定します。これが、 TRUE の場合、ディザーが行われ、出力はぼやけ ますが、色の近似はより良くなります。
|
Note:
|
ncolors には、パレットに保持される最大の色 数を設定します。
|
Prev
|
注意 この関数はPHP 4.0.6で追加され、GD 2.0.1を必要とします。
|
Prev
|
(PHP 3 = 3.0.1, PHP 4)
|
This function calculates and returns the bounding box in pixels for a TrueType text.
|
この関数はTrueTypeテキストのbounding boxをピクセル単位で計算して 返します。
|
The font size in pixels.
|
測定する文字列。
|
0
|
ピクセル単位のフォントの大きさ。
|
lower right corner, X position
|
TrueTypeフォントファイルの名称。(URLも可。)
|
lower right corner, Y position
|
測定する text の角度(度単位)。
|
This function requires both the GD library and the FreeType library.
|
本関数はGDライブラリとFreetypeライブラリの両方が必要です。
|
Prev
|
ImageTTFText() も参考にしてください。
|
Prev
|
(PHP 3, PHP 4)
|
imagettftext() draws the string text in the image identified by image, starting at coordinates x, y (top left is 0, 0), at an angle of angle in color col, using the TrueType font file identified by fontfile.
|
ImageTTFTextは画像 im 上に 座標( x,y )(左上が(0, 0))から 角度 angle 、色 col で文字列 text を 描画します。TrueTypeフォントを fontfile で 指定します。
|
The coordinates given by x, y will define the basepoint of the first character (roughly the lower-left corner of the character).
|
(x, y )で指定する 座標は、最初の文字のベースポイント(ほぼ文字の左下角)を定義します。 この仕様は、(x,y)が最初の文字の右上角を定義する ImageString() と異なっています。
|
angle is in degrees, with 0 degrees being left-to-right reading text (3 o'clock direction), and higher values representing a counter-clockwise rotation. (i.e., a value of 90 would result in bottom-to-top reading text).
|
angle の単位は角度で、0度は左から 右にテキストを読む方向(3時の方向)になります。 0より大きな値は、反時計廻りの回転を表現します。 (即ち、90という値は下から上にテキストを読む方向になります。)
|
fontfile is the path to the TrueType font you wish to use.
|
fontfile は、使用する TrueType フォントのパスです。
|
Col is the color index.
|
text はテキスト文字列であり、 フォントの 255 番目までの文字をアクセスするために (#123; という形式の) UTF-8 文字列を使うことができます。
|
imagettftext() returns an array with 8 elements representing four points making the bounding box of the text.
|
col はカラーインデックスです。 カラー¤ンデックスに負の数を使用した場合、アンチエイリアス機能が オフになります。
|
The points are relative to the text regardless of the angle, so "upper left" means in the top left-hand corner when you see the text horizontallty.
|
ImageTTFText() は、text のbounding boxを 構成する4点を表す8個の要素を有する配列を返します。 返される点は左上、右上、右下、左下の順番となります。 点の座標は、角度によらず text に関する相対座標として表されます。 つまり、"左上"は、text を水平に見た場合の左上の隅を表します。
|
Example 1. imagettftext() example
|
以下の例題スクリプトは、400x30ピクセルの黒地に Arialフォントを 用いて、白字で"Testing..."と書かれたGIFを作成します。
|
Omega: amp; #937 ;"); imagejpeg($im); imagedestroy($im);?
|
例 1ImageTTFText
|
See also imagettfbbox().
|
この関数はGDライブラリと FreeType ライブラリの両方が必要です。
|
Home
|
ImageTTFBBox() も参照下さい。
|
(PHP 3 CVS only, PHP 4 = 4.0.2)
|
(PHP 3 CVS only, PHP 4 = 4.0.2)
|
The following bits are returned, IMG_GIF _BAR_ IMG_JPG _BAR_ IMG_PNG _BAR_ IMG_WBMP.
|
この関数は、PHPにリンクされているGDのバージョンでサポートされてい るイメージの形式に対応するビットフィールドを返します。次のビッ トが返されます。 IMG_GIF _BAR_ IMG_JPG _BAR_ IMG_PNG _BAR_ IMG_WBMP 例えば、PNGのサポートを確認するには、 次のようにします。
|
?php if (imagetypes() IMG_PNG) {echo "PNG Support is enabled";}?
|
例 1ImageTypes
|
Prev
|
(PHP 4 = 4.3.0)
|
The image_type_to_mime_type() function will determine the Mime-Type for an IMAGETYPE constant.
|
The image_type_to_mime_type() function will determine the Mime-Type for an IMAGETYPE constant.
|
?php header ("Content-type: ".image_type_to_mime_type (IMAGETYPE_PNG));?
|
例 1image_type_to_mime_type (file)
|
This function does not require the GD image library.
|
注意 This function does not require the GD image library.
|
Prev
|
See also getimagesize(), exif_imagetype(), exif_read_data() and exif_thumbnail().
|
(PHP 3 = 3.0.15, PHP 4 = 4.0.1)
|
(PHP 3 = 3.0.15, PHP 4 = 4.0.1)
|
The image argument is the return from the imagecreate() function.
|
ImageWBMP() は、イメージ im から filename に WBMP ファイルを作成します。引数 im は、 ImageCreate() 関 数の返り値です。
|
By sending an image / vnd.wap.wbmp content-type using header(), you can create a PHP script that outputs WBMP images directly.
|
引数 filename はオプションであり、省略された場合には、イメージス トリームがそのまま直接出力されます。 header() 関数により、content-type image/vnd.wap.wbmp を 送信することにより、WBMPイメージを直接出力するPHPスクリプトを作成 することが可能です。
|
Using the optional foreground parameter, you can set the foreground color.
|
注意 WBMP サポートは、PHPをGD-1.8以降と組み合わせてコンパイルした場 合にのみ利用可能です。
|
See also image2wbmp(), imagepng(), imagegif(), imagejpeg(), imagetypes().
|
ImagePNG(), ImageGIF(), ImageJPEG(), ImageTypes() も参照下さい。
|
(PHP 3, PHP 4)
|
(PHP 3, PHP 4)
|
Returns a quoted-printable string.
|
(RFC2045, section 6.7 に基づき)8bit 文字列をquoted-printable文字列に変換します。
|
Prev
|
quoted-printable文字列を返します。
|
IMAP, POP3 and NNTP functions
|
imap_qprint() も参照下さい。
|
(PHP 3 = 3.0.12, PHP 4)
|
(PHP 3 = 3.0.12, PHP 4)
|
When imap_alerts() is called, the alert stack is subsequently cleared.
|
この関数は、直近に imap_alerts() をコールして 以来、またはページ処理を開始して以来生成された 全 IMAP 警告メッセー ジの配列を得ます。 imap_alerts() がコールされた 場合、カレントのスタックは、処理後にクリアされます。IMAP 規約では、 これらのメッセージをユーザに渡すことが規定されています。
|
Prev
|
(PHP 3, PHP 4)
|
Returns TRUE on sucess, FALSE on error.
|
成功すると TRUE 、失敗すると FALSE を返します。
|
If the optional options is specified, writes the options to that mailbox also.
|
imap_append() は、文字列メッセージを指定した メールボックス mbox に追加します。 オプションの flags が指定された場合、 flags もそのメールボックスに書きこまれます。
|
Example 1. imap_append() example
|
Cyrus IMAP サーバーと通信する際には、改行コードとして "\n" の替わ りに"\r\n" と使用する必要があります。さもなくば、操作は失敗します。
|
Home
|
例 1 imap_append() の例
|
(PHP 3, PHP 4)
|
(PHP 3, PHP 4)
|
The decoded message is returned as a string.
|
imap_base64() 関数は、BASE64 でエンコードされ たテキストをデコードします。( RFC2045, Section 6.8を参照下 さい。)デコードされたメッセージは文字列として返されます。
|
Prev
|
imap_binary() も参照下さい。
|
(PHP 3 = 3.0.2, PHP 4)
|
(PHP 3 = 3.0.2, PHP 4)
|
Returns a base64 string.
|
(RFC2045 ,Section 6.8に 基づき)8ビット文字列をbase64文字列に変換します。
|
Prev
|
base64 文字列を返します。
|
imap_base64
|
imap_base64() も参照下さい。
|
Prev
|
(PHP 3, PHP 4)
|
imap_body() returns the body of the message, numbered msg_number in the current mailbox.
|
imap_body() は、現在のメールボックスにある msg_number 番目のメッセージの本文を返します。 オプションの flags はビットマスクであり、 以下の要素の組み合わせとなってます。
|
The optional flags are a bit mask with one or more of the following:
|
FT_UID - msgno はUIDです
|
FT_PEEK - Do not set the \Seen flag if not already set
|
FT_PEEK - 既に設定されていない場合、\Seen フラグを設定しない
|
FT_INTERNAL - The return string is in internal format, will not canonicalize to CRLF.
|
FT_INTERNAL - 内部フォーマットで文字列を返す。CRLF には適用されない。
|
To extract single parts of a multipart MIME-encoded message you have to use imap_fetchstructure() to analyze its structure and imap_fetchbody() to extract a copy of a single body component.
|
imap_body() は、メッセージボディーと全く同じコ ピーのみを返します。マルチパートMIMEエンコードされたメッセージの 一部を展開するには、その構造を解析するために imap_fetch_structure() を使用し、単一のボディー 要素のコピーを展開する際には、 imap_fetchbody() を使用する必要があります。
|
Warning
|
(PHP 3 = 3.0.4, PHP 4)
|
Prev
|
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
|
(PHP 3, PHP 4)
|
(PHP 3, PHP 4)
|
Returns FALSE on failure.
|
現在のメールボックスに関する情報を返します。失敗した場合は、 FALSE を返します。
|
Date - last change of mailbox contents
|
imap_check()() 関数は、サーバ上の現在のメールボックス のステータスをチェックし、その情報を以下のプロパティを有するオブジェクト として返します。
|
POP3, IMAP, NNTP
|
Date - メールボックスの内容の最終変更日
|
Nmsgs - number of messages in the mailbox
|
Driver - メールボックスにアクセスする際に使用するプロトコル: POP3, IMAP, NNTP
|
Prev
|
Mailbox - メールボックスの名前
|
imap_bodystruct
|
Nmsgs - メールボックス内のメッセージの数
|
imap_clearflag_full
|
Recent - メールボックス内の新規メッセージの数
|
(PHP 3 = 3.0.3, PHP 4)
|
(PHP 3 = 3.0.3, PHP 4)
|
The flags which you can unset are "\\Seen", "\\Answered", "\\Flagged", "\\Deleted", and "\\Draft" (as defined by RFC2060).
|
この関数は、指定したシーケンスのメッセージのフラグからに指定したフラグ を削除します。設定可能なフラグは、(RFC2060で定義された) "\\Seen", "\\Answered", "\\Flagged", "\\Deleted", "\\Draft", "\\Recent" です。
|
The options are a bit mask with one or more of the following:
|
オプションはビットマスクであり、以下の組み合わせとなります。
|
Prev
|
ST_UID シーケンス引数はシーケンス番号の代わりに UID を含みます
|
(PHP 3, PHP 4)
|
(PHP 3, PHP 4)
|
Takes an optional flag CL_EXPUNGE, which will silently expunge the mailbox before closing, removing all messages marked for deletion.
|
IMAP ストリームをクローズします。 オプション flag にCL_EXPUNGEを指定した場合、 メールボックスを閉じる前に暗黙のうちに 削除マークがついた全てのメッセージが削除されます。
|
Prev
|
(PHP 3, PHP 4)
|
imap_createmailbox() creates a new mailbox specified by mbox.
|
imap_createmailbox() は mbox で指定された新しいメールボックスを作成します。この名前に国際化文 字を含む場合には、 imap_utf7_encode() でエンコー ドする必要があります。
|
Returns TRUE on success and FALSE on error.
|
成功すると TRUE 、失敗すると FALSE を返します。
|
Example 1. imap_createmailbox() example
|
mbox の名前のフォーマット形式に関しては imap_renamemailbox(), imap_deletemailbox(), imap_open() も参照下さい。
|
Home
|
例 1 imap_createmailbox() の例
|
Messages marked for deletion will stay in the mailbox until either imap_expunge() is called or imap_close() is called with the optional parameter CL_EXPUNGE.
|
(PHP 3, PHP 4)
|
POP3 mailboxes do not have their message flags saved between connections, so imap_expunge() must be called during the same connection in order for messages marked for deletion to actually be purged.
|
TRUE を返します。
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.