« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 8 of about 8 for imageline (0.003 sec.)
imageline — 直線を描画する | PHP 8.3 11748
imageline (PHP 4, PHP 5, PHP 7, PHP 8) imageline — 直線を描画する 説明 function imageline ( GdImage $image , int $x1 , int $y1 , int $x2 , int $y2 , int $color ): true 指定したふたつの点を結ぶ直線を描画します。 パラメータ image imagecreatet ... になりました。 これより前のバージョンでは、有効な gd resource が期待されていました。 例 例1 太い線を描画する <?php function imagelinethick ( $image , $x1 , $y1 , $x2 , $y2 , $color , $thick = 1 ) { /* この方法は直行する線の場合のみうまく動作します imageset ... thickness($image, $thick); return imageline($image, $x1, $y1, $x2, $y2, $color); */ if ( $thick == 1 ) { return imageline ( $image , $x1 , $y1 , $x2 , $y2 , $color ); ...
https://man.mtool.work/php/8.3/function.imageline.html
imagedashedline — 破線を描画する | PHP 8.3 10917
imagedashedline (PHP 4, PHP 5, PHP 7, PHP 8) imagedashedline — 破線を描画する 説明 function imagedashedline ( GdImage $image , int $x1 , int $y1 , int $x2 , int $y2 , int $color ): true これは古い関数です。代わりに imagesetstyle() と imageline ... G_COLOR_TRANSPARENT , IMG_COLOR_TRANSPARENT , IMG_COLOR_TRANSPARENT ); imagesetstyle ( $im , $style ); // 破線を描画します imageline ( $im , 50 , 25 , 50 , 75 , IMG_COLOR_STYLED ); // 画像を保存します imagepng ( $im , './imageline.png' ); ?> 参考 imageset ... style() - 線描画用のスタイルを設定する imageline() - 直線を描画する 他のマニュアルの関連ページ Python turtle Django tutorial06 ...
https://man.mtool.work/php/8.3/function.imagedashedline.html
imagesetstyle — 線描画用のスタイルを設定する | PHP 8.3 10917
imagesetstyle (PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8) imagesetstyle — 線描画用のスタイルを設定する 説明 function imagesetstyle ( GdImage $image , array $style ): bool imagesetstyle() は、特別な IMG_COLOR_STYLED または色を有するイメージの線 IM ... G_COLOR_STYLEDBRUSHED を描画する際に ( imageline() と imagepolygon() のような) 全ての線描画関数で使用されるスタイルを設定します。 パラメータ image imagecreatetruecolor() の ... を描画します */ $style = array( $red , $red , $red , $red , $red , $w , $w , $w , $w , $w ); imagesetstyle ( $im , $style ); imageline ( $im , 0 , 0 , 100 , 100 , IMG_COLOR_STYLED ); /* imagesetstyle を併用した imagesetbrush() を使用して happy face の線を描 ... = imagecolorallocate ( $brush , 255 , 255 , 255 ); imagecolortransparent ( $brush , $w2 ); imagesetbrush ( $im , $brush ); imageline ( $im , 100 , 0 , 0 , 100 , IMG_COLOR_STYLEDBRUSHED ); imagejpeg ( $im ); ?> 上の例の出力は、 たとえば以下のようになります ...
https://man.mtool.work/php/8.3/function.imagesetstyle.html
imagesetbrush — 線の描画用にブラシイメージを設定する | PHP 8.3 8874
imagesetbrush (PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8) imagesetbrush — 線の描画用にブラシイメージを設定する 説明 function imagesetbrush ( GdImage $image , GdImage $brush ): true imagesetbrush() は、特別な色 IMG_COLOR_BRUSHED または IMG_COLOR_S ... TYLEDBRUSHED で描画される際に ( imageline() や imagepolygon() のような) 全ての線描画関数で使用されるブラシイメージを設定します。 警告 ブラシの使用が終った際には特別 ... ngle ( $im , 0 , 0 , 99 , 99 , $white ); // ブラシを設定します imagesetbrush ( $im , $php ); // いくつかのブラシを重ねます imageline ( $im , 50 , 50 , 50 , 60 , IMG_COLOR_BRUSHED ); // 画像をブラウザに出力します header ( 'Content-type: image/png' ); image ...
https://man.mtool.work/php/8.3/function.imagesetbrush.html
imageantialias — アンチエイリアス機能を使用すべきかどうかを判断する | PHP 8.3 8513
imageantialias (PHP 4 >= 4.3.2, PHP 5, PHP 7, PHP 8) imageantialias — アンチエイリアス機能を使用すべきかどうかを判断する 説明 function imageantialias ( GdImage $image , bool $enable ): true 直線や多角形を高速に描画するためのアンチエイリアス ... ); $red_aa = imagecolorallocate ( $aa , 255 , 0 , 0 ); // 一方はアンチエイリアスを有効にした状態で 2 本の直線を描画します imageline ( $normal , 0 , 0 , 200 , 100 , $red ); imageline ( $aa , 0 , 0 , 200 , 100 , $red_aa ); // ふたつの画像を横に並べて出力し ...
https://man.mtool.work/php/8.3/function.imageantialias.html
GD および Image 関数 | PHP 8.3 7211
GD および Image 関数 目次 gd_info — 現在インストールされているGDライブラリに関する情報を取得する getimagesize — 画像の大きさを取得する getimagesizefromstring — 画像の大きさを文字列から取得する image_type_to_extension — 画像形式からファイルの ... g — 画像をブラウザあるいはファイルに出力する imagelayereffect — アルファブレンディングフラグを設定し、レイヤ効果を使用する imageline — 直線を描画する imageloadfont — 新しいフォントを読み込む imageopenpolygon — オープンポリゴンを描画する imagepalettecopy — ...
https://man.mtool.work/php/8.3/ref.image.html
画像処理 (GD) | PHP 8.3 7085
画像処理 (GD) はじめに PHPができることは、HTML出力を生成することだけではありません。PHP は、多くの異なるイメージ形式でイメージファイルを作成したり、操作 したりすることもできます。このイメージ形式には、 GIF , PNG , JPEG , WBMP および XPM が含 ... g — 画像をブラウザあるいはファイルに出力する imagelayereffect — アルファブレンディングフラグを設定し、レイヤ効果を使用する imageline — 直線を描画する imageloadfont — 新しいフォントを読み込む imageopenpolygon — オープンポリゴンを描画する imagepalettecopy — ...
https://man.mtool.work/php/8.3/book.image.html
リソース型の一覧 | PHP 8.3 6958
リソース型の一覧 以下にPHPのリソースを生成、使用、破棄するための関数の一覧を示します。 is_resource() によりある変数がリソースであるかど うかを調べることが可能です。また、 get_resource_type() は変数のリソース型を返します。 Resource Types リソ ... , imagefilledrectangle() , imagefilltoborder() , imagegif() , imagepng() , imagejpeg() , imagewbmp() , imageinterlace() , imageline() , imagepolygon() , imagerectangle() , imagerotate() , imagesetpixel() , imagestring() , imagestringup() , imagesx() , im ...
https://man.mtool.work/php/8.3/resource.html
PREV 1 NEXT