Results of 1 - 10 of about 26 for imagefilledrectangle (0.001 sec.)
- imagefilledrectangle — 塗りつぶした矩形を描画する | PHP 8.3 16217
- imagefilledrectangle (PHP 4, PHP 5, PHP 7, PHP 8) imagefilledrectangle — 塗りつぶした矩形を描画する 説明 function imagefilledrectangle ( GdImage $image , int $x1 , int $y1 , int $x2 , int $y2 , int $color ): true 色 color で塗りつぶした矩形
... ラスのインスタンスを期待するようになりました。 これより前のバージョンでは、有効な gd resource が期待されていました。 例 例1 imagefilledrectangle() の例 <?php // 55x30 の画像を作成します $im = imagecreatetruecolor ( 55 , 30 ); $white = imagecolorallocate ( $im , 255 , ... 255 , 255 ); // 白の矩形を描画します imagefilledrectangle ( $im , 4 , 4 , 50 , 25 , $white ); // 画像を保存します imagepng ( $im , './imagefilledrectangle.png' ); ?> 上の例の出力は ...
-
https://man.mtool.work/php/8.3/function.imagefilledrectangle.html
- imagecopymerge による半透明なすかしの作成 | PHP 8.3 9703
- imagecopymerge() による半透明なすかしの作成 例1 imagecopymerge() による半透明なすかしの作成 <?php // スタンプと、それをすかしとして適用する写真を読み込みます $im = imagecreatefromjpeg ( 'photo.jpeg' ); // まず、スタンプ画像を GD で作成します
... $stamp = imagecreatetruecolor ( 100 , 70 ); imagefilledrectangle ( $stamp , 0 , 0 , 99 , 69 , 0x0000FF ); imagefilledrectangle ( $stamp , 9 , 9 , 90 , 60 , 0xFFFFFF ); imagestring ( $stam ...
-
https://man.mtool.work/php/8.3/image.examples.merged-watermark.html
- imagepalettecopy — あるイメージから他のイメージにパレットをコピーする | PHP 8.3 8364
- imagepalettecopy (PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8) imagepalettecopy — あるイメージから他のイメージにパレットをコピーする 説明 function imagepalettecopy ( GdImage $dst , GdImage $src ): void imagepalettecopy() は、パレットを src から dst
... パレットをコピーしたので、 // imagecolorallocate() をもう一度使わなくても // 画像 1 に割り当てられた緑色を使うことができます imagefilledrectangle ( $palette2 , 0 , 0 , 99 , 99 , $green ); // 画像をブラウザに出力します header ( 'Content-type: image/png' ); imagepng ( $ ...
-
https://man.mtool.work/php/8.3/function.imagepalettecopy.html
- imagesetthickness — 線描画用の線幅を設定する | PHP 8.3 8215
- imagesetthickness (PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8) imagesetthickness — 線描画用の線幅を設定する 説明 function imagesetthickness ( GdImage $image , int $thickness ): true imagesetthickness() は、長方形、多角形、弧などを描画する際の線幅を
... orallocate ( $im , 0xFF , 0xFF , 0xFF ); $black = imagecolorallocate ( $im , 0x00 , 0x00 , 0x00 ); // 背景を白に設定します imagefilledrectangle ( $im , 0 , 0 , 199 , 99 , $white ); // 線幅を 5 に設定します imagesetthickness ( $im , 5 ); // 矩形を描画します imagerect ...
-
https://man.mtool.work/php/8.3/function.imagesetthickness.html
- imagealphablending — イメージのブレンドモードを設定する | PHP 8.3 8067
- imagealphablending (PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8) imagealphablending — イメージのブレンドモードを設定する 説明 function imagealphablending ( GdImage $image , bool $enable ): true imagealphablending() によりTrueColorイメージに 二つの異
... etruecolor ( 100 , 100 ); // アルファブレンディングをオンにします imagealphablending ( $im , true ); // 正方形を描画します imagefilledrectangle ( $im , 30 , 30 , 70 , 70 , imagecolorallocate ( $im , 255 , 0 , 0 )); // 出力します header ( 'Content-Type: image/png' ); ...
-
https://man.mtool.work/php/8.3/function.imagealphablending.html
- imagecolortransparent — 透明色を定義する | PHP 8.3 8067
- imagecolortransparent (PHP 4, PHP 5, PHP 7, PHP 8) imagecolortransparent — 透明色を定義する 説明 function imagecolortransparent ( GdImage $image , ? int $color = null ): int 指定した画像 image 上の透明色を設定したり、取得したりします。 パラ
... gecolorallocate ( $im , 0 , 0 , 0 ); // 背景を透明にします imagecolortransparent ( $im , $black ); // 赤い矩形を描画します imagefilledrectangle ( $im , 4 , 4 , 50 , 25 , $red ); // 画像を保存します imagepng ( $im , './imagecolortransparent.png' ); ?> 上の例の出力は、 ...
-
https://man.mtool.work/php/8.3/function.imagecolortransparent.html
- imagecreatefromgif — 新しい画像をファイルあるいは URL から作成する | PHP 8.3 8067
- imagecreatefromgif (PHP 4, PHP 5, PHP 7, PHP 8) imagecreatefromgif — 新しい画像をファイルあるいは URL から作成する 説明 function imagecreatefromgif ( string $filename ): GdImage | false imagecreatefromgif() は、 指定したファイル名の画像を表
... truecolor ( 150 , 30 ); $bgc = imagecolorallocate ( $im , 255 , 255 , 255 ); $tc = imagecolorallocate ( $im , 0 , 0 , 0 ); imagefilledrectangle ( $im , 0 , 0 , 150 , 30 , $bgc ); /* エラーメッセージを出力します */ imagestring ( $im , 1 , 5 , 5 , 'Error loading ' . $ ...
-
https://man.mtool.work/php/8.3/function.imagecreatefromgif.html
- imagecreatefromjpeg — 新しい画像をファイルあるいは URL から作成する | PHP 8.3 8067
- imagecreatefromjpeg (PHP 4, PHP 5, PHP 7, PHP 8) imagecreatefromjpeg — 新しい画像をファイルあるいは URL から作成する 説明 function imagecreatefromjpeg ( string $filename ): GdImage | false imagecreatefromjpeg() は引数 filename から得られる画
... truecolor ( 150 , 30 ); $bgc = imagecolorallocate ( $im , 255 , 255 , 255 ); $tc = imagecolorallocate ( $im , 0 , 0 , 0 ); imagefilledrectangle ( $im , 0 , 0 , 150 , 30 , $bgc ); /* エラーメッセージを出力します */ imagestring ( $im , 1 , 5 , 5 , 'Error loading ' . $ ...
-
https://man.mtool.work/php/8.3/function.imagecreatefromjpeg.html
- imagecreatefrompng — 新しい画像をファイルあるいは URL から作成する | PHP 8.3 8067
- imagecreatefrompng (PHP 4, PHP 5, PHP 7, PHP 8) imagecreatefrompng — 新しい画像をファイルあるいは URL から作成する 説明 function imagecreatefrompng ( string $filename ): GdImage | false imagecreatefrompng() は引数 filename から得られる画像を
... truecolor ( 150 , 30 ); $bgc = imagecolorallocate ( $im , 255 , 255 , 255 ); $tc = imagecolorallocate ( $im , 0 , 0 , 0 ); imagefilledrectangle ( $im , 0 , 0 , 150 , 30 , $bgc ); /* エラーメッセージを出力します */ imagestring ( $im , 1 , 5 , 5 , 'Error loading ' . $ ...
-
https://man.mtool.work/php/8.3/function.imagecreatefrompng.html
- imagecreatefromwbmp — 新しい画像をファイルあるいは URL から作成する | PHP 8.3 8067
- imagecreatefromwbmp (PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8) imagecreatefromwbmp — 新しい画像をファイルあるいは URL から作成する 説明 function imagecreatefromwbmp ( string $filename ): GdImage | false imagecreatefromwbmp() は、指定したファイル
... truecolor ( 150 , 30 ); $bgc = imagecolorallocate ( $im , 255 , 255 , 255 ); $tc = imagecolorallocate ( $im , 0 , 0 , 0 ); imagefilledrectangle ( $im , 0 , 0 , 150 , 30 , $bgc ); /* エラーメッセージを出力します */ imagestring ( $im , 1 , 5 , 5 , 'Error loading ' . $ ...
-
https://man.mtool.work/php/8.3/function.imagecreatefromwbmp.html