« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 15 for imagesy (0.002 sec.)
imagesy — 画像の高さを取得する | PHP 8.3 13915
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 ?> ...
https://man.mtool.work/php/8.3/function.imagesy.html
アルファチャネルを使用した、画像へのすかしの追加 | PHP 8.3 10449
アルファチャネルを使用した、画像へのすかしの追加 例1 アルファチャネルを使用した、画像へのすかしの追加 <?php // スタンプと、それをすかしとして適用する写真を読み込みます $stamp = imagecreatefrompng ( 'stamp.png' ); $im = imagecreatefromjpeg ( ... の余白を設定し、スタンプ画像の幅と高さを取得します $marge_right = 10 ; $marge_bottom = 10 ; $sx = imagesx ( $stamp ); $sy = imagesy ( $stamp ); // スタンプ画像を写真の上にコピーします。余白の値と // 写真の幅を元にスタンプの位置を決定します imagecopy ( $i ... m , $stamp , imagesx ( $im ) - $sx - $marge_right , imagesy ( $im ) - $sy - $marge_bottom , 0 , 0 , imagesx ( $stamp ), imagesy ( $stamp )); // 出力します header ( 'Content-type: ima ...
https://man.mtool.work/php/8.3/image.examples-watermark.html
imagecopymerge による半透明なすかしの作成 | PHP 8.3 10327
imagecopymerge() による半透明なすかしの作成 例1 imagecopymerge() による半透明なすかしの作成 <?php // スタンプと、それをすかしとして適用する写真を読み込みます $im = imagecreatefromjpeg ( 'photo.jpeg' ); // まず、スタンプ画像を GD で作成します ... の余白を設定し、スタンプ画像の幅と高さを取得します $marge_right = 10 ; $marge_bottom = 10 ; $sx = imagesx ( $stamp ); $sy = imagesy ( $stamp ); // スタンプを、50% の不透明度で写真に重ねます imagecopymerge ( $im , $stamp , imagesx ( $im ) - $sx - $marge_r ... ight , imagesy ( $im ) - $sy - $marge_bottom , 0 , 0 , imagesx ( $stamp ), imagesy ( $stamp ), 50 ); // 画像をファイルに保存します imagep ...
https://man.mtool.work/php/8.3/image.examples.merged-watermark.html
imagefilter — 画像にフィルタを適用する | PHP 8.3 9178
imagefilter (PHP 5, PHP 7, PHP 8) imagefilter — 画像にフィルタを適用する 説明 function imagefilter ( GdImage $image , int $filter , array | int | float | bool ...$args ): bool imagefilter() は、指定したフィルタ filter を image に適用します。 ... r' )) { return imagefilter ( $im , IMG_FILTER_NEGATE ); } for( $x = 0 ; $x < imagesx ( $im ); ++ $x ) { for( $y = 0 ; $y < imagesy ( $im ); ++ $y ) { $index = imagecolorat ( $im , $x , $y ); $rgb = imagecolorsforindex ( $index ); $color = imagecolorallo ... Create the image instance we want to show the // differences on $output = imagecreatetruecolor ( imagesx ( $logo1 ) * 2 , imagesy ( $logo1 )); // Apply pixelation to each instance, with a block // size of 3 imagefilter ( $logo1 , IMG_FILTER_PIXELATE , ... ); // Merge the differences onto the output image imagecopy ( $output , $logo1 , 0 , 0 , 0 , 0 , imagesx ( $logo1 ) - 1 , imagesy ( $logo1 ) - 1 ); imagecopy ( $output , $logo2 , imagesx ( $logo2 ), 0 , 0 , 0 , imagesx ( $logo2 ) - 1 , imagesy ( $logo2 ...
https://man.mtool.work/php/8.3/function.imagefilter.html
imageistruecolor — 画像が truecolor かどうか調べる | PHP 8.3 9178
imageistruecolor (PHP 4 >= 4.3.2, PHP 5, PHP 7, PHP 8) imageistruecolor — 画像が truecolor かどうか調べる 説明 function imageistruecolor ( GdImage $image ): bool imageistruecolor() は、 image が truecolor 画像かどうか調べます。 パラメータ i ... geistruecolor ( $im )) { // 新しい true color 画像のインスタンスを作成します $tc = imagecreatetruecolor ( imagesx ( $im ), imagesy ( $im )); // ピクセルをコピーします imagecopy ( $tc , $im , 0 , 0 , 0 , 0 , imagesx ( $im ), imagesy ( $im )); $im = $tc ; ...
https://man.mtool.work/php/8.3/function.imageistruecolor.html
imagepalettetotruecolor — パレット形式の画像を true color に変換する | PHP 8.3 8951
imagepalettetotruecolor (PHP 5 >= 5.5.0, PHP 7, PHP 8) imagepalettetotruecolor — パレット形式の画像を true color に変換する 説明 function imagepalettetotruecolor ( GdImage $image ): bool imagecreate() のような関数で作ったパレット形式の画像を ... totruecolor (& $src ) { if( imageistruecolor ( $src )) { return( true ); } $dst = imagecreatetruecolor ( imagesx ( $src ), imagesy ( $src )); imagecopy ( $dst , $src , 0 , 0 , 0 , 0 , imagesx ( $src ), imagesy ( $src )); $src = $dst ; return( true ); } ...
https://man.mtool.work/php/8.3/function.imagepalettetotruecolor.html
imagesx — 画像の幅を取得する | PHP 8.3 8133
imagesx (PHP 4, PHP 5, PHP 7, PHP 8) imagesx — 画像の幅を取得する 説明 function imagesx ( GdImage $image ): int 指定した画像オブジェクト image の幅を返します。 パラメータ image imagecreatetruecolor() のような画像作成関数が返す GdImage オブジ ... $img ); // 300 ?> 参考 imagecreatetruecolor() - TrueColor イメージを新規に作成する getimagesize() - 画像の大きさを取得する imagesy() - 画像の高さを取得する 他のマニュアルの関連ページ Docker docker image Docker docker image inspect Docker docker image ta ...
https://man.mtool.work/php/8.3/function.imagesx.html
imagettfbbox — TypeType フォントを使用したテキストの bounding box を生成する | ... 8133
imagettfbbox (PHP 4, PHP 5, PHP 7, PHP 8) imagettfbbox — TypeType フォントを使用したテキストの bounding box を生成する 説明 function imagettfbbox ( float $size , float $angle , string $font_filename , string $string , array $options = [] ): ... rsion ()); // X 座標と Y 座標 $x = $bbox [ 0 ] + ( imagesx ( $im ) / 2 ) - ( $bbox [ 4 ] / 2 ) - 25 ; $y = $bbox [ 1 ] + ( imagesy ( $im ) / 2 ) - ( $bbox [ 5 ] / 2 ) - 5 ; // 書き込みます imagettftext ( $im , 10 , 45 , $x , $y , $black , $font , 'Power ... キストに続ける座標を設定します $x = $bbox [ 0 ] + ( imagesx ( $im ) / 2 ) - ( $bbox [ 4 ] / 2 ) + 10 ; $y = $bbox [ 1 ] + ( imagesy ( $im ) / 2 ) - ( $bbox [ 5 ] / 2 ) - 5 ; // 書き込みます imagettftext ( $im , 10 , 45 , $x , $y , $black , $font , 'and Z ...
https://man.mtool.work/php/8.3/function.imagettfbbox.html
imagecolormatch — パレットイメージの色を True カラーイメージに近づける | PHP 8.... 7906
imagecolormatch (PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8) imagecolormatch — パレットイメージの色を True カラーイメージに近づける 説明 function imagecolormatch ( GdImage $image1 , GdImage $image2 ): true パレットイメージの色を True カラーイメージ ... color 画像とパレット画像を用意します $im1 = imagecreatefrompng ( './gdlogo.png' ); $im2 = imagecreate ( imagesx ( $im1 ), imagesy ( $im1 )); // いくつかの色を $im2 に追加します $colors = Array(); $colors [] = imagecolorallocate ( $im2 , 255 , 36 , 74 ) ...
https://man.mtool.work/php/8.3/function.imagecolormatch.html
imagecrop — 指定した矩形に画像をクロップする | PHP 8.3 7784
imagecrop (PHP 5 >= 5.5.0, PHP 7, PHP 8) imagecrop — 指定した矩形に画像をクロップする 説明 function imagecrop ( GdImage $image , array $rectangle ): GdImage | false 画像を指定した矩形範囲にクロップして、クロップ後の画像を返します。 パラメー ... を正方形にクロップする方法を示すものです。 <?php $im = imagecreatefrompng ( 'example.png' ); $size = min ( imagesx ( $im ), imagesy ( $im )); $im2 = imagecrop ( $im , [ 'x' => 0 , 'y' => 0 , 'width' => $size , 'height' => $size ]); if ( $im2 !== FALSE ) ...
https://man.mtool.work/php/8.3/function.imagecrop.html
PREV 1 2 NEXT