Results of 1 - 10 of about 16 for imagesx (0.001 sec.)
- imagesx — 画像の幅を取得する | PHP 8.3 13949
- 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 ?> ...
-
https://man.mtool.work/php/8.3/function.imagesx.html
- アルファチャネルを使用した、画像へのすかしの追加 | PHP 8.3 10431
- アルファチャネルを使用した、画像へのすかしの追加 例1 アルファチャネルを使用した、画像へのすかしの追加 <?php // スタンプと、それをすかしとして適用する写真を読み込みます $stamp = imagecreatefrompng ( 'stamp.png' ); $im = imagecreatefromjpeg (
... hoto.jpeg' ); // スタンプの余白を設定し、スタンプ画像の幅と高さを取得します $marge_right = 10 ; $marge_bottom = 10 ; $sx = imagesx ( $stamp ); $sy = imagesy ( $stamp ); // スタンプ画像を写真の上にコピーします。余白の値と // 写真の幅を元にスタンプの位置を ... 決定します imagecopy ( $im , $stamp , imagesx ( $im ) - $sx - $marge_right , imagesy ( $im ) - $sy - $marge_bottom , 0 , 0 , imagesx ( $stamp ), imagesy ( $stamp )); // ...
-
https://man.mtool.work/php/8.3/image.examples-watermark.html
- imagecopymerge による半透明なすかしの作成 | PHP 8.3 10310
- imagecopymerge() による半透明なすかしの作成 例1 imagecopymerge() による半透明なすかしの作成 <?php // スタンプと、それをすかしとして適用する写真を読み込みます $im = imagecreatefromjpeg ( 'photo.jpeg' ); // まず、スタンプ画像を GD で作成します
... , 0x0000FF ); // スタンプの余白を設定し、スタンプ画像の幅と高さを取得します $marge_right = 10 ; $marge_bottom = 10 ; $sx = imagesx ( $stamp ); $sy = imagesy ( $stamp ); // スタンプを、50% の不透明度で写真に重ねます imagecopymerge ( $im , $stamp , images ... x ( $im ) - $sx - $marge_right , imagesy ( $im ) - $sy - $marge_bottom , 0 , 0 , imagesx ( $stamp ), imagesy ( $stamp ), 50 ); // 画像をファイルに保存します imagepng ( $im , 'photo_stamp.png' ); ?> この例は、 im ...
-
https://man.mtool.work/php/8.3/image.examples.merged-watermark.html
- imagefilter — 画像にフィルタを適用する | PHP 8.3 9738
- imagefilter (PHP 5, PHP 7, PHP 8) imagefilter — 画像にフィルタを適用する 説明 function imagefilter ( GdImage $image , int $filter , array | int | float | bool ...$args ): bool imagefilter() は、指定したフィルタ filter を image に適用します。
... te ( $im ) { if( function_exists ( 'imagefilter' )) { 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 = imagecolo ... ompng ( './php.png' ); // 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 ... ILTER_PIXELATE , 3 , true ); // 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 ...
-
https://man.mtool.work/php/8.3/function.imagefilter.html
- imageistruecolor — 画像が truecolor かどうか調べる | PHP 8.3 9149
- imageistruecolor (PHP 4 >= 4.3.2, PHP 5, PHP 7, PHP 8) imageistruecolor — 画像が truecolor かどうか調べる 説明 function imageistruecolor ( GdImage $image ): bool imageistruecolor() は、 image が truecolor 画像かどうか調べます。 パラメータ i
... を調べます if(! imageistruecolor ( $im )) { // 新しい true color 画像のインスタンスを作成します $tc = imagecreatetruecolor ( imagesx ( $im ), imagesy ( $im )); // ピクセルをコピーします imagecopy ( $tc , $im , 0 , 0 , 0 , 0 , imagesx ( $im ), imagesy ( $i ...
-
https://man.mtool.work/php/8.3/function.imageistruecolor.html
- imagepalettetotruecolor — パレット形式の画像を true color に変換する | PHP 8.3 8906
- imagepalettetotruecolor (PHP 5 >= 5.5.0, PHP 7, PHP 8) imagepalettetotruecolor — パレット形式の画像を true color に変換する 説明 function imagepalettetotruecolor ( GdImage $image ): bool imagecreate() のような関数で作ったパレット形式の画像を
... ction 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 = $dst ; ...
-
https://man.mtool.work/php/8.3/function.imagepalettetotruecolor.html
- imagesy — 画像の高さを取得する | PHP 8.3 8092
- imagesy (PHP 4, PHP 5, PHP 7, PHP 8) imagesy — 画像の高さを取得する 説明 function imagesy ( GdImage $image ): int 指定した画像オブジェクト image の高さを返します。 パラメータ image imagecreatetruecolor() のような画像作成関数が返す GdImage オ
... $img ); // 200 ?> 参考 imagecreatetruecolor() - TrueColor イメージを新規に作成する getimagesize() - 画像の大きさを取得する imagesx() - 画像の幅を取得する 他のマニュアルの関連ページ Docker docker image Docker docker image inspect Docker docker image tag ...
-
https://man.mtool.work/php/8.3/function.imagesy.html
- imagettfbbox — TypeType フォントを使用したテキストの bounding box を生成する | ... 8092
- 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 = [] ):
... します $bbox = imagettfbbox ( 10 , 45 , $font , 'Powered by PHP ' . phpversion ()); // X 座標と Y 座標 $x = $bbox [ 0 ] + ( imagesx ( $im ) / 2 ) - ( $bbox [ 4 ] / 2 ) - 25 ; $y = $bbox [ 1 ] + ( imagesy ( $im ) / 2 ) - ( $bbox [ 5 ] / 2 ) - 5 ; // 書き込 ... ( 10 , 45 , $font , 'and Zend Engine ' . zend_version ()); // 最初のテキストに続ける座標を設定します $x = $bbox [ 0 ] + ( imagesx ( $im ) / 2 ) - ( $bbox [ 4 ] / 2 ) + 10 ; $y = $bbox [ 1 ] + ( imagesy ( $im ) / 2 ) - ( $bbox [ 5 ] / 2 ) - 5 ; // 書き込 ...
-
https://man.mtool.work/php/8.3/function.imagettfbbox.html
- PHP による PNG の生成 | PHP 8.3 7971
- PHP による PNG の生成 例1 PHP による PNG の生成 <?php header ( "Content-type: image/png" ); $string = $_GET [ 'text' ]; $im = imagecreatefrompng ( "images/button1.png" ); $orange = imagecolorallocate ( $im , 220 , 210 , 60 ); $px = ( imagesx
...
-
https://man.mtool.work/php/8.3/image.examples-png.html
- imagecolormatch — パレットイメージの色を True カラーイメージに近づける | PHP 8.... 7849
- imagecolormatch (PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8) imagecolormatch — パレットイメージの色を True カラーイメージに近づける 説明 function imagecolormatch ( GdImage $image1 , GdImage $image2 ): true パレットイメージの色を True カラーイメージ
... の例 <?php // true color 画像とパレット画像を用意します $im1 = imagecreatefrompng ( './gdlogo.png' ); $im2 = imagecreate ( imagesx ( $im1 ), imagesy ( $im1 )); // いくつかの色を $im2 に追加します $colors = Array(); $colors [] = imagecolorallocate ( $im2 ...
-
https://man.mtool.work/php/8.3/function.imagecolormatch.html