Results of 1 - 10 of about 95 for imagecreatetruecolor (0.001 sec.)
- imagecreatetruecolor — TrueColor イメージを新規に作成する | PHP 8.3 12612
- imagecreatetruecolor (PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8) imagecreatetruecolor — TrueColor イメージを新規に作成する 説明 function imagecreatetruecolor ( int $width , int $height ): GdImage | false imagecreatetruecolor() は、指定した大きさの
... ていました。 例 例1 新規 GD イメージストリームの作成およびイメージの出力 <?php header ( 'Content-Type: image/png' ); $im = @ imagecreatetruecolor ( 120 , 20 ) or die( 'Cannot Initialize new GD image stream' ); $text_color = imagecolorallocate ( $im , 233 , 14 , 91 ); ...
-
https://man.mtool.work/php/8.3/function.imagecreatetruecolor.html
- imagepalettetotruecolor — パレット形式の画像を true color に変換する | PHP 8.3 10084
- imagepalettetotruecolor (PHP 5 >= 5.5.0, PHP 7, PHP 8) imagepalettetotruecolor — パレット形式の画像を true color に変換する 説明 function imagepalettetotruecolor ( GdImage $image ): bool imagecreate() のような関数で作ったパレット形式の画像を
... 、 imagecreatetruecolor() で作るような true color 形式に変換します。 パラメータ image imagecreatetruecolor() のような画像作成関数が返す GdImage オ ... tetotruecolor' )) { function imagepalettetotruecolor (& $src ) { if( imageistruecolor ( $src )) { return( true ); } $dst = imagecreatetruecolor ( imagesx ( $src ), imagesy ( $src )); imagecopy ( $dst , $src , 0 , 0 , 0 , 0 , imagesx ( $src ), imagesy ( $src )); $src ... ettetotruecolor ( $im ); $typeof (); ?> 上の例の出力は以下となります。 typeof($im) = palette typeof($im) = true color 参考 imagecreatetruecolor() - TrueColor イメージを新規に作成する imageistruecolor() - 画像が truecolor かどうか調べる 他のマニュアルの関連ページ Duc ...
-
https://man.mtool.work/php/8.3/function.imagepalettetotruecolor.html
- imagesx — 画像の幅を取得する | PHP 8.3 9795
- imagesx (PHP 4, PHP 5, PHP 7, PHP 8) imagesx — 画像の幅を取得する 説明 function imagesx ( GdImage $image ): int 指定した画像オブジェクト image の幅を返します。 パラメータ image imagecreatetruecolor() のような画像作成関数が返す GdImage オブジ
... ージョンでは、有効な gd resource が期待されていました。 例 例1 imagesx() の使用法 <?php // 300*200 の画像を作成します $img = imagecreatetruecolor ( 300 , 200 ); echo imagesx ( $img ); // 300 ?> 参考 imagecreatetruecolor() - TrueColor イメージを新規に作成する getimages ...
-
https://man.mtool.work/php/8.3/function.imagesx.html
- imagesy — 画像の高さを取得する | PHP 8.3 9795
- imagesy (PHP 4, PHP 5, PHP 7, PHP 8) imagesy — 画像の高さを取得する 説明 function imagesy ( GdImage $image ): int 指定した画像オブジェクト image の高さを返します。 パラメータ image imagecreatetruecolor() のような画像作成関数が返す GdImage オ
... ージョンでは、有効な gd resource が期待されていました。 例 例1 imagesy() の使用法 <?php // 300*200 の画像を作成します $img = imagecreatetruecolor ( 300 , 200 ); echo imagesy ( $img ); // 200 ?> 参考 imagecreatetruecolor() - TrueColor イメージを新規に作成する getimages ...
-
https://man.mtool.work/php/8.3/function.imagesy.html
- imageantialias — アンチエイリアス機能を使用すべきかどうかを判断する | PHP 8.3 9057
- imageantialias (PHP 4 >= 4.3.2, PHP 5, PHP 7, PHP 8) imageantialias — アンチエイリアス機能を使用すべきかどうかを判断する 説明 function imageantialias ( GdImage $image , bool $enable ): true 直線や多角形を高速に描画するためのアンチエイリアス
... ポーネントをサポートしていないため、アルファコンポーネントに 基づいたアンチエイリアス手法は使用できません。 パラメータ image imagecreatetruecolor() のような画像作成関数が返す GdImage オブジェクト。 enable アンチエイリアスを有効にするかどうか。 戻り値 常に true を返しま ... した。 例 例1 2 本の直線のうち一方にアンチエイリアスを有効にする <?php // アンチエイリアス画像と通常の画像を用意します $aa = imagecreatetruecolor ( 400 , 100 ); $normal = imagecreatetruecolor ( 200 , 100 ); // アンチエイリアスを有効にします imageantialias ( $aa , true ... を出力します header ( 'Content-type: image/png' ); imagepng ( $aa ); ?> 上の例の出力は、 たとえば以下のようになります。 参考 imagecreatetruecolor() - TrueColor イメージを新規に作成する 他のマニュアルの関連ページ Linux JM pom(6) Linux JM grodvi(1) Docker docker image L ...
-
https://man.mtool.work/php/8.3/function.imageantialias.html
- imageistruecolor — 画像が truecolor かどうか調べる | PHP 8.3 9057
- imageistruecolor (PHP 4 >= 4.3.2, PHP 5, PHP 7, PHP 8) imageistruecolor — 画像が truecolor かどうか調べる 説明 function imageistruecolor ( GdImage $image ): bool imageistruecolor() は、 image が truecolor 画像かどうか調べます。 パラメータ i
... mage imagecreatetruecolor() のような画像作成関数が返す GdImage オブジェクト。 戻り値 image が truecolor の場合に true 、 それ以外の場合に false を返 ... true color 画像か否かを調べます if(! imageistruecolor ( $im )) { // 新しい true color 画像のインスタンスを作成します $tc = imagecreatetruecolor ( imagesx ( $im ), imagesy ( $im )); // ピクセルをコピーします imagecopy ( $tc , $im , 0 , 0 , 0 , 0 , imagesx ( $im ), im ... $tc ; $tc = NULL ; // あるいは imagepalettetotruecolor() を使います } // 画像のインスタンスに対する操作を続けます ?> 参考 imagecreatetruecolor() - TrueColor イメージを新規に作成する imagepalettetotruecolor() - パレット形式の画像を true color に変換する 他のマニュア ...
-
https://man.mtool.work/php/8.3/function.imageistruecolor.html
- imagesetpixel — 点を生成する | PHP 8.3 8755
- imagesetpixel (PHP 4, PHP 5, PHP 7, PHP 8) imagesetpixel — 点を生成する 説明 function imagesetpixel ( GdImage $image , int $x , int $y , int $color ): true imagesetpixel() は、指定した座標にピクセルを描画します。 パラメータ image imagecreatetruecolor
... いました。 例 例1 imagesetpixel() の例 A random drawing that ends with a regular picture. <?php $x = 200 ; $y = 200 ; $gd = imagecreatetruecolor ( $x , $y ); $corners [ 0 ] = array( 'x' => 100 , 'y' => 10 ); $corners [ 1 ] = array( 'x' => 0 , 'y' => 190 ); $corners [ ... ]) / 2 ; } header ( 'Content-Type: image/png' ); imagepng ( $gd ); ?> 上の例の出力は、 たとえば以下のようになります。 参考 imagecreatetruecolor() - TrueColor イメージを新規に作成する imagecolorallocate() - 画像で使用する色を作成する imagecolorat() - ピクセルの色のイ ...
-
https://man.mtool.work/php/8.3/function.imagesetpixel.html
- imagewbmp — 画像をブラウザあるいはファイルに出力する | PHP 8.3 8755
- 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() は、指
... 定した image を WBMP にして出力あるいは保存します。 パラメータ image imagecreatetruecolor() のような画像作成関数が返す GdImage オブジェクト。 file ファイル保存先のパスあるいはオープン中のリソース (この関数が値を戻 ... foreground_color は、 nullable になりました。 例 例1 WBMP 画像の出力 <?php // 空の画像を作成してテキストを追加します $im = imagecreatetruecolor ( 120 , 20 ); $text_color = imagecolorallocate ( $im , 233 , 14 , 91 ); imagestring ( $im , 1 , 5 , 5 , 'A Simple Text Str ... mp' ); // 画像を出力します imagewbmp ( $im ); ?> 例2 WBMP 画像の保存 <?php // 空の画像を作成してテキストを追加します $im = imagecreatetruecolor ( 120 , 20 ); $text_color = imagecolorallocate ( $im , 233 , 14 , 91 ); imagestring ( $im , 1 , 5 , 5 , 'A Simple Text Str ...
-
https://man.mtool.work/php/8.3/function.imagewbmp.html
- imagejpeg — 画像をブラウザあるいはファイルに出力する | PHP 8.3 8610
- imagejpeg (PHP 4, PHP 5, PHP 7, PHP 8) imagejpeg — 画像をブラウザあるいはファイルに出力する 説明 function imagejpeg ( GdImage $image , resource | string | null $file = null , int $quality = -1 ): bool imagejpeg() は、画像 image から JPEG フ
... ァイルを作成します。 パラメータ image imagecreatetruecolor() のような画像作成関数が返す GdImage オブジェクト。 file ファイル保存先のパスあるいはオープン中のリソース (この関数が値を戻 ... or をスローするようになりました。 例 例1 JPEG 画像のブラウザへの出力 <?php // 空の画像を作成し、テキストを追加します $im = imagecreatetruecolor ( 120 , 20 ); $text_color = imagecolorallocate ( $im , 233 , 14 , 91 ); imagestring ( $im , 1 , 5 , 5 , 'A Simple Text Str ... 力は、 たとえば以下のようになります。 例2 JPEG 画像のファイルへの保存 <?php // 空の画像を作成し、テキストを追加します $im = imagecreatetruecolor ( 120 , 20 ); $text_color = imagecolorallocate ( $im , 233 , 14 , 91 ); imagestring ( $im , 1 , 5 , 5 , 'A Simple Text Str ...
-
https://man.mtool.work/php/8.3/function.imagejpeg.html
- imagedashedline — 破線を描画する | PHP 8.3 8307
- 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() と imagel
... ine() の組み合せを使用してください。0, 0 は画像の左上の角です。 パラメータ image imagecreatetruecolor() のような画像作成関数が返す GdImage オブジェクト。 x1 1 つ目の点の x 座標。 y1 1 つ目の点の y 座標。 x2 2 つ目の点の x 座 ... ョンでは、有効な gd resource が期待されていました。 例 例1 imagedashedline() の例 <?php // 100x100 の画像を作成します $im = imagecreatetruecolor ( 100 , 100 ); $white = imagecolorallocate ( $im , 0xFF , 0xFF , 0xFF ); // 縦の破線を描画します imagedashedline ( $im , 5 ... 出力は、 たとえば以下のようになります。 例2 imagedashedline() のもうひとつの使用法 <?php // 100x100 の画像を作成します $im = imagecreatetruecolor ( 100 , 100 ); $white = imagecolorallocate ( $im , 0xFF , 0xFF , 0xFF ); // 独自のスタイルの作成: 最初の 4 ピクセルを白色、 ...
-
https://man.mtool.work/php/8.3/function.imagedashedline.html