« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 56 for imagecolorallocate (0.002 sec.)
imagecolorallocate — 画像で使用する色を作成する | PHP 8.3 14483
imagecolorallocate (PHP 4, PHP 5, PHP 7, PHP 8) imagecolorallocate — 画像で使用する色を作成する 説明 function imagecolorallocate ( GdImage $image , int $red , int $green , int $blue ): int | false 指定した RGB を配色とする色の ID を返します ... 。 imagecolorallocate() は image で表される画像上で使用する各々の色を作成する際にコールする必要があります。 注意 : imagecolorallocate() の最初の ... ラスのインスタンスを期待するようになりました。 これより前のバージョンでは、有効な gd resource が期待されていました。 例 例1 imagecolorallocate() の例 <?php $im = imagecreate ( 100 , 100 ); // 背景色を赤にします $background = imagecolorallocate ( $im , 255 , 0 , 0 ) ... ; // その他の色を設定します $white = imagecolorallocate ( $im , 255 , 255 , 255 ); $black = imagecolorallocate ( $im , 0 , 0 , 0 ); // 十六進で指定します $white = imagecoloralloc ...
https://man.mtool.work/php/8.3/function.imagecolorallocate.html
imagefilledarc — 楕円弧を描画し、塗りつぶす | PHP 8.3 10991
imagefilledarc (PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8) imagefilledarc — 楕円弧を描画し、塗りつぶす 説明 function imagefilledarc ( GdImage $image , int $center_x , int $center_y , int $width , int $height , int $start_angle , int $end_angle , ... eight 弧の高さ。 start_angle 弧の開始角度。 end_angle 弧の終了角度。 0° は三時の方向で、そこから時計回りに数えます。 color imagecolorallocate() で作成された色識別子。 style 次の選択肢のビット和。 IMG_ARC_PIE IMG_ARC_CHORD IMG_ARC_NOFILL IMG_ARC_EDGED IMG_ARC_PIE お ... 3D 風のパイを作成する <?php // 画像を作成します $image = imagecreatetruecolor ( 100 , 100 ); // 色を割り当てます $white = imagecolorallocate ( $image , 0xFF , 0xFF , 0xFF ); $gray = imagecolorallocate ( $image , 0xC0 , 0xC0 , 0xC0 ); $darkgray = imagecolorallocat ... e ( $image , 0x90 , 0x90 , 0x90 ); $navy = imagecolorallocate ( $image , 0x00 , 0x00 , 0x80 ); $darknavy = imagecolorallocate ( $image , 0x00 , 0x00 , 0x50 ); $red = imagecolorallocate ...
https://man.mtool.work/php/8.3/function.imagefilledarc.html
imagefilltoborder — 特定色で塗りつぶす | PHP 8.3 9975
imagefilltoborder (PHP 4, PHP 5, PHP 7, PHP 8) imagefilltoborder — 特定色で塗りつぶす 説明 function imagefilltoborder ( GdImage $image , int $x , int $y , int $border_color , int $color ): true imagefilltoborder() は、 border_color で指定し ... olor() のような画像作成関数が返す GdImage オブジェクト。 x 開始位置の x 座標。 y 開始位置の y 座標。 border_color 境界色。 imagecolorallocate() で作成された色識別子。 color 塗りつぶし色。 imagecolorallocate() で作成された色識別子。 戻り値 常に true を返します。 変 ... ルを作成し、背景を白に設定します $im = imagecreatetruecolor ( 100 , 100 ); imagefilledrectangle ( $im , 0 , 0 , 100 , 100 , imagecolorallocate ( $im , 255 , 255 , 255 )); // 黒い線で楕円を描画します imageellipse ( $im , 50 , 50 , 50 , 50 , imagecolorallocate ( $im ... , 0 , 0 , 0 )); // 枠線と塗りつぶしの色を設定します $border = imagecolorallocate ( $im , 0 , 0 , 0 ); $fill = imagecolorallocate ( $im , 255 , 0 , 0 ); // 選択した部分を塗りつぶします imagefilltoborder ( ...
https://man.mtool.work/php/8.3/function.imagefilltoborder.html
imagearc — 部分楕円を描画する | PHP 8.3 9415
imagearc (PHP 4, PHP 5, PHP 7, PHP 8) imagearc — 部分楕円を描画する 説明 function imagearc ( GdImage $image , int $center_x , int $center_y , int $width , int $height , int $start_angle , int $end_angle , int $color ): true imagearc() は、指 ... 高さ。 start_angle 始点の角度。 end_angle 終点の角度。 0° は 3 時の位置で、そこから時計回りの方向に円弧が描かれます。 color imagecolorallocate() で作成された色識別子。 戻り値 常に true を返します。 変更履歴 バージョン 説明 8.0.0 image は、 GdImage クラスのインスタン ... ) による円の描画 <?php // 200*200 の画像を作成します $img = imagecreatetruecolor ( 200 , 200 ); // 色を設定します $white = imagecolorallocate ( $img , 255 , 255 , 255 ); $red = imagecolorallocate ( $img , 255 , 0 , 0 ); $green = imagecolorallocate ( $img , 0 , 255 ... , 0 ); $blue = imagecolorallocate ( $img , 0 , 0 , 255 ); // 頭を描きます imagearc ( $img , 100 , 100 , 200 , 200 , 0 , 360 , $white ); // 口を描きます imag ...
https://man.mtool.work/php/8.3/function.imagearc.html
imagecolormatch — パレットイメージの色を True カラーイメージに近づける | PHP 8.... 9046
imagecolormatch (PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8) imagecolormatch — パレットイメージの色を True カラーイメージに近づける 説明 function imagecolormatch ( GdImage $image1 , GdImage $image2 ): true パレットイメージの色を True カラーイメージ ... 2 = imagecreate ( imagesx ( $im1 ), imagesy ( $im1 )); // いくつかの色を $im2 に追加します $colors = Array(); $colors [] = imagecolorallocate ( $im2 , 255 , 36 , 74 ); $colors [] = imagecolorallocate ( $im2 , 40 , 0 , 240 ); $colors [] = imagecolorallocate ( $im2 ... , 82 , 100 , 255 ); $colors [] = imagecolorallocate ( $im2 , 84 , 63 , 44 ); // これらの色を true color 画像にマッチさせます imagecolormatch ( $im1 , $im2 ); ?> 参考 imagecre ...
https://man.mtool.work/php/8.3/function.imagecolormatch.html
imagerectangle — 矩形を描画する | PHP 8.3 8958
imagerectangle (PHP 4, PHP 5, PHP 7, PHP 8) imagerectangle — 矩形を描画する 説明 function imagerectangle ( GdImage $image , int $x1 , int $y1 , int $x2 , int $y2 , int $color ): true imagerectangle() は、指定した座標から始まる矩形を作成しま ... 画像作成関数が返す GdImage オブジェクト。 x1 左上の x 座標。 y1 左上の y 座標。 x2 右下の x 座標。 y2 右下の y 座標。 color imagecolorallocate() で作成された色識別子。 戻り値 常に true を返します。 変更履歴 バージョン 説明 8.0.0 image は、 GdImage クラスのインスタン ... gle() の例 <?php // 200 x 200 の画像を作成します $canvas = imagecreatetruecolor ( 200 , 200 ); // 色を割り当てます $pink = imagecolorallocate ( $canvas , 255 , 105 , 180 ); $white = imagecolorallocate ( $canvas , 255 , 255 , 255 ); $green = imagecolorallocate ( $c ...
https://man.mtool.work/php/8.3/function.imagerectangle.html
imagecolordeallocate — イメージの色リソースを解放する | PHP 8.3 8678
imagecolordeallocate (PHP 4, PHP 5, PHP 7, PHP 8) imagecolordeallocate — イメージの色リソースを解放する 説明 function imagecolordeallocate ( GdImage $image , int $color ): true imagecolorallocate() または imagecolorallocatealpha() で確保され ... これより前のバージョンでは、有効な gd resource が期待されていました。 例 例1 imagecolordeallocate() の使用法 <?php $white = imagecolorallocate ( $im , 255 , 255 , 255 ); imagecolordeallocate ( $im , $white ); ?> 参考 imagecolorallocate() - 画像で使用する色を作成する ... imagecolorallocatealpha() - 画像で使用する色を透過度を指定して作成する 他のマニュアルの関連ページ Docker docker image ...
https://man.mtool.work/php/8.3/function.imagecolordeallocate.html
imagewbmp — 画像をブラウザあるいはファイルに出力する | PHP 8.3 8590
imagewbmp (PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8) imagewbmp — 画像をブラウザあるいはファイルに出力する 説明 function imagewbmp ( GdImage $image , resource | string | null $file = null , ? int $foreground_color = null ): bool imagewbmp() は、指 ... null を設定したりした場合は、画像ストリームを直接出力します。 foreground_color このパラメータで、 前景の色を指定できます。 imagecolorallocate() で 取得した ID を使用してください。デフォルトの前景色は黒です。 戻り値 成功した場合に true を、失敗した場合に false を返 ... 例1 WBMP 画像の出力 <?php // 空の画像を作成してテキストを追加します $im = imagecreatetruecolor ( 120 , 20 ); $text_color = imagecolorallocate ( $im , 233 , 14 , 91 ); imagestring ( $im , 1 , 5 , 5 , 'A Simple Text String' , $text_color ); // content type ヘッダを設 ... 例2 WBMP 画像の保存 <?php // 空の画像を作成してテキストを追加します $im = imagecreatetruecolor ( 120 , 20 ); $text_color = imagecolorallocate ( $im , 233 , 14 , 91 ); imagestring ( $im , 1 , 5 , 5 , 'A Simple Text String' , $text_color ); // 画像を保存します image ...
https://man.mtool.work/php/8.3/function.imagewbmp.html
imagefill — 塗り潰す | PHP 8.3 8310
imagefill (PHP 4, PHP 5, PHP 7, PHP 8) imagefill — 塗り潰す 説明 function imagefill ( GdImage $image , int $x , int $y , int $color ): true 指定した座標 (左上が 0, 0 です) から、指定した色 color で image を塗りつぶします。 パラメータ image ... color() のような画像作成関数が返す GdImage オブジェクト。 x 開始位置の x 座標。 y 開始位置の y 座標。 color 塗りつぶし色。 imagecolorallocate() で作成された色識別子。 戻り値 常に true を返します。 変更履歴 バージョン 説明 8.0.0 image は、 GdImage クラスのインスタン ... 待されていました。 例 例1 imagefill() の例 <?php $im = imagecreatetruecolor ( 100 , 100 ); // 背景色を赤に設定します $red = imagecolorallocate ( $im , 255 , 0 , 0 ); imagefill ( $im , 0 , 0 , $red ); header ( 'Content-type: image/png' ); imagepng ( $im ); ?> 上の例 ... の出力は、 たとえば以下のようになります。 参考 imagecolorallocate() - 画像で使用する色を作成する 他のマニュアルの関連ページ Docker docker image Python colorsys Python turtle Docker docker ...
https://man.mtool.work/php/8.3/function.imagefill.html
imagelayereffect — アルファブレンディングフラグを設定し、レイヤ効果を使用する |... 8310
imagelayereffect (PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8) imagelayereffect — アルファブレンディングフラグを設定し、レイヤ効果を使用する 説明 function imagelayereffect ( GdImage $image , int $effect ): true アルファブレンディングフラグを設定し、 ... を準備します $im = imagecreatetruecolor ( 100 , 100 ); // 背景を設定します imagefilledrectangle ( $im , 0 , 0 , 100 , 100 , imagecolorallocate ( $im , 220 , 220 , 220 )); // オーバーレイアルファブレンディングフラグを適用します imagelayereffect ( $im , IMG_EFFECT_OV ... ERLAY ); // 2 つのグレーの楕円を描画します imagefilledellipse ( $im , 50 , 50 , 40 , 40 , imagecolorallocate ( $im , 100 , 255 , 100 )); imagefilledellipse ( $im , 50 , 50 , 50 , 80 , imagecolorallocate ( $im , 100 , 100 , 255 )); ... imagefilledellipse ( $im , 50 , 50 , 80 , 50 , imagecolorallocate ( $im , 255 , 100 , 100 )); // 出力します header ( 'Content-type: image/png' ); imagepng ( $im ); ?> 上の例の出力は、 たと ...
https://man.mtool.work/php/8.3/function.imagelayereffect.html
PREV 1 2 3 4 5 6 NEXT