text
stringlengths
1
254
output
stringlengths
2
255
Prev
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
Warning
(PHP 4 = 4.1.0)
Prev
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
Prev
(PHP 3 = 3.0.13, PHP 4)
The imagegammacorrect() function applies gamma correction to a gd image stream (image) given an input gamma, the parameter inputgamma and an output gamma, the parameter outputgamma.
関数 ImageGammaCorrect() は、gdイメージストリー ム( im )にガンマ補正を適用します。この関数に は、入力ガンマ値、パラメータ inputgamma およ び出力ガンマ値、パラメータ outputgamma を指 定します。
Warning
(PHP 4 = 4.1.0)
The optional type parameter is either raw or compressed.
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
Warning
(PHP 4 = 4.1.0)
Prev
この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。
Prev
(PHP 3, PHP 4)
imagegif() creates the GIF file in filename from the image image.
imagegif() は画像 im から GIF ファイルfilenameを作成します。 引数 im は imagecreate() 関数 から返されたものです。
The image format will be GIF87a unless the image has been made transparent with imagecolortransparent(), in which case the image format will be GIF89a.
画像フォーマットは、 imagecolortransparent() を 用いて画像を透明化しない限り GIF87a となります。 透明化した場合の画像フォーマットは GIF89a となります。
By sending an image / gif content-type using header(), you can create a PHP script that outputs GIF images directly.
引数filenameはオプションで、省略した場合は、未加工の画像 ストリームが直接出力されます。 header() 関数を 用いて content-type image/gif を送出すれば、直接 GIF 画像を出力するPHPスクリプトを作成することができます。
The following code snippet allows you to write more portable PHP applications by auto-detecting the type of GD support which is available.
注意 GD ライブラリバージョン1.6以降で GIF サポートが完全に削除されたので、該当する 版の GD ライブラリではこの関数を使用することは できません。
if (imagetypes() IMG_GIF) {header ("Content-type: image / gif"); imagegif ($im);} elseif (imagetypes() IMG_JPG) {... etc.
注意 バージョン4.0.2以降および3.0.18以降では、種々のイメージ関数のサ ポートを調べるために function_exists() の代 わりに関数 imagetypes() を使用することが可能 です。
Prev
ImagePNG(), ImageWBMP(), ImageJPEG(), ImageTypes() も参照下さい。
imageinterlace() turns the interlace bit on or off.
(PHP 3, PHP 4)
If the interlace bit is set and the image is used as a JPEG image, the image is created as a progressive JPEG.
ImageInterlace() は、インターレースビットをon またはoffに切り替えます。interlaceが1の場合、イメージ im はインター レースとなり、0 であればインターレースビットはoffになります。
Prev
この関数は、その画像のインタレースビットがセットされているかどう かを返します。
imagejpeg() creates the JPEG file in filename from the image image.
(PHP 3 = 3.0.16, PHP 4)
The filename argument is optional, and if left off, the raw image stream will be output directly.
ImageJPEG() は画像 im から JPEG ファイルfilenameを作成します。引数 im は関数 imagecreate() の返り値です。
By sending an image / jpeg content-type using header(), you can create a PHP script that outputs JPEG images directly.
引数filenameはオプションで、指定を省略した場合、画像は標準出力に そのまま出力されます。引数qualityを指定する際に引数filenameの指定 を省略するには、単に空の文字列''を指定して下さい。 header() 関数でimage/jpeg content-typeを送信す ることにより、JPEG画像を直接出力するPHPスクリプトを作成することが 可能です。
quality is optional, and ranges from 0 (worst quality, smaller file) to 100 (best quality, biggest file).
注意 JPEGサポートはPHPがGD-1.8以降を用いてコンパイルされた場合のみ 利用可能です。
If you want to output Progressive JPEGs, you need to set interlacing on with imageinterlace().
quality はオプションであり、0(品質は最低で すが、ファイルはより小さい)から100(品質は最高ですが、ファイルは最 大)の範囲で指定します。デフォルトは100です。
Prev
ImagePNG(), ImageGIF(), ImageWBMP(), ImageTypes() も参照下さい。
Prev
(PHP 3, PHP 4)
imageline() draws a line from x1, y1 to x2, y2 (top left is 0, 0) in image im of color col.
ImageLine() は、画像 im 上に col 色で (x1, y1 )から (x2, y2 )に 直線を描画します。(左上が(0, 0)です。)
Prev
imagecreate() および imagecolorallocate() も参考にしてください。
Prev
(PHP 3, PHP 4)
imageloadfont() loads a user-defined bitmap font and returns an identifier for the font (that is always greater than 5, so it will not conflict with the built-in fonts).
ImageLoadFont() はユーザが定義したビットマップ フォントをロードし、フォントID(通常は5より大きいので、組込みフォ ントとは競合しません)を返します。
This means you should generate the font files on the same type of CPU as the machine you are running PHP on.
フォントファイル形式は現在はバイナリで、アーキクチャに依存します。 このため、PHPを実行するマシーンと同一の型のCPU上でフォントファイ ルを生成する必要があります。
byte 8-11
表 1フォントファイルのフォーマット
See also imagefontwidth() and imagefontheight().
ImageFontWidth() および ImageFontHeight() も参考にしてください。
Prev
(PHP 4 = 4.0.1)
imagepalettecopy() copies the palette from the source image to the destination image.
imagepalettecopy() は、 source イメージから destination イメージにパレットをコピーしま す。
(PHP 3 = 3.0.13, PHP 4)
(PHP 3 = 3.0.13, PHP 4)
?php $im = imagecreatefrompng ("test.png"); imagepng ($im);?
ImagePNG() は、GDイメージストリーム (im )をPNGフォーマットで標準出力(通常はブラ ウザ)に出力します。 filename を指定した場合 はそのファイルにイメージを出力します。
Prev
ImageGIF(), ImageWBMP(), ImageJPEG(), ImageTypes() も参照下さい。
Prev
(PHP 3, PHP 4)
imagepolygon() creates a polygon in image id. points is a PHP array containing the polygon's vertices, ie. points[0] = x0, points[1] = y0, points[2] = x1, points[3] = y1, etc. num_points is the total number of points (vertices).
ImagePolygon() は、画像 im 上に 多角形を生成します。 points は多角形の頂点からなるPHPの配列で、 points[0] = x0, points[1] = y0, points[2] = x1, points[3] = y1という風になっています。 num_oints は頂点の総数です。
Prev
imagecreate() も参考にしてください。
Prev
(PHP 3 = 3.0.9, PHP 4)
(PHP 3 = 3.0.9, PHP 4)
size はピクセル単位で表されます。
Space allows you to change the default value of a space in a font.
space によりフォントが占める空間のデフォル ト値を変更することが可能です。この値が元の値に付加されます。また、 負の値とすることも可能です。
Tightness allows you to control the amount of white space between characters.
tightness により文字間の空白の量を制御でき ます。この量は元の文字幅に追加され、負の値とすることも可能です。
This amount is added to the normal character width and can also be negative.
angle は度で表されます。
Parameters space and tightness are expressed in character space units, where 1 unit is 1 / 1000th of an em-square.
パラメータ space および tightness は文字間隔の単位、つまり、1単位 が文字矩形の 1/1000 で表されます。
Parameters space, tightness, and angle are optional.
パラメータ space, tightness, angle はオプションです。
If the angle is 0 degrees, you can expect the text to need 1 pixel more to every direction.
バウンディングボックスは文字メトリックスから得られる情報を用いて 計算されますが、残念なことに実際に描画される文字列の描画結果とは わずかに異なる傾向があります。角度が0度の場合、全ての方向に1ピク セル分多く必要であると予想することができます。
0
この関数は、次の要素を有する配列を返します。
See also imagepstext().
imagepstext() も参照下さい。
(PHP 3 = 3.0.9, PHP 4)
(PHP 3 = 3.0.9, PHP 4)
Note that the font you want to copy must be one obtained using imagepsloadfont(), not a font that is itself a copied one.
拡大・縮小、傾斜、文字エンコードベクトルの変更のようにフォントを 後で修正する必要があるが、同時に元のフォントも保存しておく必要があ る場合には、この関数を使用して下さい。 コピーするフォントは、コピーされたフォントではなく、 imagepsloadfont() を用いて得られたフォントであ る必要があることに注意してください。コピーする前に元のフォントの修 正を行うことが可能です。
If you use this function, you must free the fonts obtained this way yourself and in reverse order.
この関数を使用する場合、この手法で得たフォントを逆順に解放する必要 があります。 さもないとスクリプトはハングする可能性があります。
Otherwise the function returns FALSE and prints a message describing what went wrong.
全てが正常に動作した場合、有効なフォントIDが返され、後で使用するこ とが可能です。 それ以外の場合は FALSE を返し、エラー個所を示すメッセージが出力されます。
Prev
imageploadpsfont() も参照下さい。
(PHP 3 = 3.0.9, PHP 4)
(PHP 3 = 3.0.9, PHP 4)
As a PostScript fonts default vector lacks most of the character positions above 127, you 'll definitely want to change this if you use an other language than english.
ファイルから文字エンコードベクトルをロードし、変更します。 PostScript フォントのデフォルトベクトルは、127以上の位置には文字 がほとんどないので、英語以外の言語を使用する場合には恐らくこの部 分を変更したいと思うことでしょう。このファイルの正しいフォーマッ トは、T1libs のドキュメントに記述されています。T1libs にはすぐに 使用できるファイルとして IsoLatin1.enc および IsoLatin2.enc が 含まれています。
If you find yourself using this function all the time, a much better way to define the encoding is to set ps.default_encoding in the configuration file to point to the right encoding file and all fonts you load will automatically have the right encoding.
この関数を頻繁に用いている場合には、ずっと優れた方法として 設定ファイル で ps.default_encoding が正しいエンコードファイルを指すようにして エンコード法を定義する方法があります。この場合、自動的にロードさ れる全てのフォントは、正しいエンコードとなります。
Prev
(PHP 3 = 3.0.9, PHP 4)
Extend or condense a font (font_index), if the value of the extend parameter is less than one you will be condensing the font.
フォント( font_index )を展開または圧縮します。 パラメータ extend の値が1より小さい場合、 フォントの圧縮が行われます。
(PHP 3 = 3.0.9, PHP 4)
(PHP 3 = 3.0.9, PHP 4)
Prev
imagepsloadfont() も参照下さい。
(PHP 3 = 3.0.9, PHP 4)
(PHP 3 = 3.0.9, PHP 4)
Otherwise the function returns FALSE and prints a message describing what went wrong, which you cannot read directly, while the output type is image.
全て正常に処理された場合、有効なフォントIDが返され、後で使用するこ とができます。それ以外の場合、この関数は FALSE を返し、問題のある部 分を示すメッセージを出力します。
It worked !", $font, 32, $white, $black, 32, 32); imagepsfreefont ($font); imagejpeg ($im, "", 100); / /for best quality...your mileage may vary imagedestroy ($im);?
imagepsfreefont() も参照下さい。
Prev
(PHP 3 = 3.0.9, PHP 4)
Slant a font given by the font_index parameter with a slant of the value of the slant parameter.
パラメータ font_index で指定したフォント パラメータ slant を傾斜の値として傾けます。
(PHP 3 = 3.0.9, PHP 4)
(PHP 3 = 3.0.9, PHP 4)
Foreground is the color in which the text will be painted.
size はピクセル単位で表されます。
No pixels with the color background are actually painted, so the background image does not need to be of solid color.
foreground は、テキストが描画される色です。 background は、アンチエイリアス時にフェー ドアウトする色です。 background 色のピクセ ルは描画されないので、背景画像が無地である必要はありません。
This is different from the imagestring(), where x, y define the upper-right corner of the first character.
x, y で指定される座 標は、最初の文字の原点(または参照点)を定義します(おおよそ文字の左 下隅)。これは、 ImageString() 関数で、x,y が最 初の文字の右上隅を定義するのとは異なっています。動作に関して不明 な場合は、フォント及びその測り方に関する PostScipt ドキュメントを 参照下さい。
Space allows you to change the default value of a space in a font.
space によりフォントが占める空間のデフォル ト値を変更することが可能です。この値が元の値に付加されます。また、 負の値とすることも可能です。
Tightness allows you to control the amount of white space between characters.
tightness により文字間の空白の量を制御でき ます。この量は元の文字幅に追加され、負の値とすることも可能です。
Angle is in degrees.
angle は度で表されます。
Allowed values are 4 and 16.
antialias_steps によりアンチエイリアスを行 うテキストの色数を制御することが可能です。指定できるのは 4 および 16 です。 20 より小さな大きさのテキストには、見易くするために大き い方を推奨します。より大きなフォントでは、計算負荷がより少ない 4 を使用して下さい。
With bigger sizes, use 4.
パラメータ space および tightness は文字間隔の単位、つまり、1単位 が文字矩形の 1/1000 で表されます。
Parameters space and tightness are expressed in character space units, where 1 unit is 1 / 1000th of an em-square.
パラメータ space, tightness, angle, antialias はオプションです。
This function returns an array containing the following elements:
この関数は次の要素を有する配列を返します。
See also imagepsbbox().
imagepsbbox() も参照下さい。
(PHP 3, PHP 4)
(PHP 3, PHP 4)
0, 0 is the top left corner of the image.
ImageRectangle() は、画像 im 上に col 色で左上を (x1, y1 )、右下を (x2, y2 )とする矩形を 描画します。画像の左上角は(0,0)です。
Prev
(PHP 4 = 4.3.0)
Rotates the src_im image using a given angle in degree. bgd_color specifies the color of the uncovered zone after the rotation.
Rotates the src_im image using a given angle in degree. bgd_color specifies the color of the uncovered zone after the rotation.
Prev
(PHP 4 = 4.0.6)
imagesetbrush() sets the brush image to be used by all line drawing functions (such as imageline() and imagepolygon()) when drawing with the special colors IMG_COLOR_BRUSHED or IMG_COLOR_STYLEDBRUSHED.
ImageSetBrush() は、特別な色 IMG_COLOR_BRUSHED または IMG_COLOR_STYLEDBRUSHED で描画される際に (ImageLine() や ImagePolygon() のような) 全ての線描画関数で使用 されるブラシイメージを設定します。
You need not take special action when you are finished with a brush, but if you destroy the brush image, you must not use the IMG_COLOR_BRUSHED or IMG_COLOR_STYLEDBRUSHED colors until you have set a new brush image!
注意 ブラシの使用が終った際には、特別な処理は不要ですが、ブラシイメー ジを破棄する場合には、新たにブラシイメージを設定するまでは、色 IMG_COLOR_BRUSHED または IMG_COLOR_STYLEDBRUSHED を使用するべき ではありません。
Prev
注意 この関数は、PHP 4.0.6 で追加されました。
Prev
(PHP 3, PHP 4)
imagesetpixel() draws a pixel at x, y (top left is 0, 0) in image image of color col.
ImageSetPixel() は画像 im 上に col 色で座標 (x, y) (左上が0, 0) に点を描画します。
Prev
imagecreate() および imagecolorallocate() も参考にしてください。
Prev
(PHP 4 = 4.0.6)
imagesetstyle() sets the style to be used by all line drawing functions (such as imageline() and imagepolygon()) when drawing with the special color IMG_COLOR_STYLED or lines of images with color IMG_COLOR_STYLEDBRUSHED.
ImageSetStyle() は、特別な IMG_COLOR_STYLED または色を有するイメージの線 IMG_COLOR_STYLEDBRUSHED を描画する際に (ImageLine() と ImagePolygon() のような) 全ての線描画関数で使用されるスタイルを設定します。
Following example script draws a dashed line from upper left to lower right corner of the canvas:
パラメータ style はピクセルの配列です。以下 の例は、キャンバスの左上から右下隅に破線を描画するスクリプトです。
Note:
ImageSetBrush(), ImageLine() も参照下さい。
Prev
注意 この関数は、PHP 4.0.6で追加されました。
Prev
(PHP 4 = 4.0.6)
imagesetthickness() sets the thickness of the lines drawn when drawing rectangles, polygons, ellipses etc. etc. to thickness pixels.
ImageSetThickness() は、長方形、多角形、楕円等 を描画する際の線幅を thickness ピクセルに設 定します。
Prev
注意 この関数は PHP 4.0.6 で追加され、GD 2.0.1 以降を必要とします。
Prev
(PHP 4 = 4.0.6)