« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 10 of about 14 for wbmp (0.001 sec.)
imagewbmp — 画像をブラウザあるいはファイルに出力する | PHP 8.3 12060
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 オブジェクト。 f ... より前のバージョンでは、有効な gd resource が期待されていました。 8.0.0 foreground_color は、 nullable になりました。 例 例1 WBMP 画像の出力 <?php // 空の画像を作成してテキストを追加します $im = imagecreatetruecolor ( 120 , 20 ); $text_color = imagecol ... ng ( $im , 1 , 5 , 5 , 'A Simple Text String' , $text_color ); // content type ヘッダを設定します - ここでは image/vnd.wap.wbmp // ヒント: image_type_to_mime_type() で content-types を取得します header ( 'Content-Type: image/vnd.wap.wbmp' ); // 画像を ...
https://man.mtool.work/php/8.3/function.imagewbmp.html
jpeg2wbmp — JPEG画像をWBMP画像に変換する | PHP 8.3 11675
jpeg2wbmp (PHP 4 >= 4.0.5, PHP 5, PHP 7) jpeg2wbmp — JPEG画像をWBMP画像に変換する 警告 この関数は PHP 7.2.0 で 非推奨 になり、PHP 8.0.0 で 削除 されました。この関数に頼らないことを強く推奨します。 説明 function jpeg2wbmp ( string $jpegname ... , string $wbmpname , int $dest_height , int $dest_width , int $threshold ): bool JPEG画像をWBMP画像に変換します。 パラメータ jpegname JPE ... G画像ファイルのパス wbmpname 出力先のWBMPファイルのパス dest_height 出力画像の高さ dest_width 出力画像の幅 threshold しきい値の値。0から8までの値を ... 場合に false を返します。 警告 しかしながら、libgd がイメージの出力に失敗した場合、この関数は true を返します。 例 例1 jpeg2wbmp() の例 <?php // Path to the target jpeg $path = './test.jpg' ; // Get the image sizes $image = getimagesize ( $path ); // ...
https://man.mtool.work/php/8.3/function.jpeg2wbmp.html
png2wbmp — PNG画像をWBMP画像に変換する | PHP 8.3 11675
png2wbmp (PHP 4 >= 4.0.5, PHP 5, PHP 7) png2wbmp — PNG画像をWBMP画像に変換する 警告 この関数は PHP 7.2.0 で 非推奨 になり、PHP 8.0.0 で 削除 されました。この関数に頼らないことを強く推奨します。 説明 function png2wbmp ( string $pngname , str ... ing $wbmpname , int $dest_height , int $dest_width , int $threshold ): bool PNG画像をWBMP画像に変換します。 パラメータ pngname PNG画 ... 像ファイル wbmpname 出力先のWBMPファイルのパス dest_height 出力画像の高さ dest_width 出力画像の幅 threshold しきい値の値。0から8までの値を ... た場合に false を返します。 警告 しかしながら、libgd がイメージの出力に失敗した場合、この関数は true を返します。 例 例1 png2wbmp() の例 <?php // Path to the target png $path = './test.png' ; // Get the image sizes $image = getimagesize ( $path ); // C ...
https://man.mtool.work/php/8.3/function.png2wbmp.html
imagecreatefromwbmp — 新しい画像をファイルあるいは URL から作成する | PHP 8.3 9872
imagecreatefromwbmp (PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8) imagecreatefromwbmp — 新しい画像をファイルあるいは URL から作成する 説明 function imagecreatefromwbmp ( string $filename ): GdImage | false imagecreatefromwbmp() は、指定したファイル ... 名から 得られたイメージを表すイメージ ID を返します。 注意 : WBMP画像は、Windows bitmp ではなく、ワイヤレスビットマップです。 Windows bitmap は、 imagecreatefrombmp() 関数を使って読み込むこ ... パー には、さまざまなラッパーの機能やその使用法、 提供される定義済み変数などの情報がまとめられています。 パラメータ filename WBMP 画像へのパス。 戻り値 成功した場合に画像オブジェクト、エラー時に false を返します。 変更履歴 バージョン 説明 8.0.0 成功時に ... 関数は GDImage クラスのインスタンスを返すようになりました。 これより前のバージョンでは、 resource を返していました。 例 例1 WBMP の作成時のエラーを処理する例 <?php function LoadWBMP ( $imgname ) { /* オープンします */ $im = @ imagecreatefromwbmp ( $im ...
https://man.mtool.work/php/8.3/function.imagecreatefromwbmp.html
gd_info — 現在インストールされているGDライブラリに関する情報を取得する | PHP 8.... 8647
gd_info (PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8) gd_info — 現在インストールされているGDライブラリに関する情報を取得する 説明 function gd_info (): array インストールされている GD ライブラリのバージョンとスペックに関する情報を取得します。 パラメ ... JPEG Support bool 値。 JPEG サポートが含まれている場合に true PNG Support bool 値。 PNG サポートが含まれている場合に true WBMP Support bool 値。 WBMP サポートが含まれている場合に true XBM Support bool 値。 XBM サポートが含まれている場合に true WebP ... Support"]=> bool(true) ["GIF Create Support"]=> bool(false) ["JPEG Support"]=> bool(false) ["PNG Support"]=> bool(true) ["WBMP Support"]=> bool(true) ["XBM Support"]=> bool(false) ["WebP Support"]=> bool(false) ["AVIF Support"]=> bool(false) } 参考 ... に出力する imagejpeg() - 画像をブラウザあるいはファイルに出力する imagegif() - 画像をブラウザあるいはファイルに出力する imagewbmp() - 画像をブラウザあるいはファイルに出力する imagewebp() - WebP 画像をブラウザあるいはファイルに出力する imageavif() - 画像 ...
https://man.mtool.work/php/8.3/function.gd-info.html
image_type_to_mime_type — getimagesize, exif_read_data, exif_thumbnail, exif_im... 8262
image_type_to_mime_type (PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8) image_type_to_mime_type — getimagesize, exif_read_data, exif_thumbnail, exif_imagetypeから返される 画像形式のMIMEタイプを取得する 説明 function image_type_to_mime_type ( int $ima ... tream IMAGETYPE_JB2 application/octet-stream IMAGETYPE_SWC application/x-shockwave-flash IMAGETYPE_IFF image/iff IMAGETYPE_WBMP image/vnd.wap.wbmp IMAGETYPE_XBM image/xbm IMAGETYPE_ICO image/vnd.microsoft.icon IMAGETYPE_WEBP image/webp IMAGETYPE_AVIF ...
https://man.mtool.work/php/8.3/function.image-type-to-mime-type.html
image2wbmp — 画像をブラウザあるいはファイルに出力する | PHP 8.3 8262
image2wbmp (PHP 4 >= 4.0.5, PHP 5, PHP 7) image2wbmp — 画像をブラウザあるいはファイルに出力する 警告 この関数は PHP 7.3.0 で 非推奨 になり、PHP 8.0.0 で 削除 されました。この関数に頼らないことを強く推奨します。 説明 function image2wbmp ( re ... source $image , string $filename = ? , int $foreground = ? ): bool image2wbmp() は、イメージ im から filename に WBMP ファイルを作成します。 パラメータ image imagecreatetruecolor() のような、 画像を生 ... 場合に false を返します。 警告 しかしながら、libgd がイメージの出力に失敗した場合、この関数は true を返します。 例 例1 image2wbmp() の例 <?php $file = 'php.png' ; $image = imagecreatefrompng ( $file ); header ( 'Content-Type: ' . image_type_to_mime_typ ... e ( IMAGETYPE_WBMP )); image2wbmp ( $image ); // ストリームを直接出力します。 ?> 参考 imagewbmp() - 画像をブラウザあるいはファイルに出力する ...
https://man.mtool.work/php/8.3/function.image2wbmp.html
画像処理 (GD) | PHP 8.3 7982
画像処理 (GD) はじめに PHPができることは、HTML出力を生成することだけではありません。PHP は、多くの異なるイメージ形式でイメージファイルを作成したり、操作 したりすることもできます。このイメージ形式には、 GIF , PNG , JPEG , WBMP および XPM が含 ... ーマット 読み込みのサポート 書き込みのサポート 注意 JPEG true true PNG true true GIF true true XBM true true XPM true false WBMP true true WebP true true BMP true true PHP 7.2.0 以降で利用可能です ほとんどのフォーマットは読み書きの両方に対応しています ... _mime_type — getimagesize, exif_read_data, exif_thumbnail, exif_imagetypeから返される 画像形式のMIMEタイプを取得する image2wbmp — 画像をブラウザあるいはファイルに出力する imageaffine — 元の画像を、オプションのクリッピング領域を使ってアフィン変換した画 ... メージストリームから新規イメージを作成する imagecreatefromtga — 新しい画像をファイルあるいは URL から作成する imagecreatefromwbmp — 新しい画像をファイルあるいは URL から作成する imagecreatefromwebp — 新しい画像をファイルあるいは URL から作成する imagec ...
https://man.mtool.work/php/8.3/book.image.html
imagegif — 画像をブラウザあるいはファイルに出力する | PHP 8.3 7684
imagegif (PHP 4, PHP 5, PHP 7, PHP 8) imagegif — 画像をブラウザあるいはファイルに出力する 説明 function imagegif ( GdImage $image , resource | string | null $file = null ): bool imagegif() は画像 image から file に GIF ファイルを作成します。 ... sts ( 'imagepng' )) { // For PNG header ( 'Content-Type: image/png' ); imagepng ( $im ); } elseif( function_exists ( 'imagewbmp' )) { // For WBMP header ( 'Content-Type: image/vnd.wap.wbmp' ); imagewbmp ( $im ); } else { die( 'No image support in thi ... eif( imagetypes () & IMG_JPG ) { /* ... etc. */ } ?> 参考 imagepng() - PNG イメージをブラウザまたはファイルに出力する imagewbmp() - 画像をブラウザあるいはファイルに出力する imagejpeg() - 画像をブラウザあるいはファイルに出力する imagetypes() - この PH ...
https://man.mtool.work/php/8.3/function.imagegif.html
imagetypes — この PHP がサポートしている画像形式を返す | PHP 8.3 7404
imagetypes (PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8) imagetypes — この PHP がサポートしている画像形式を返す 説明 function imagetypes (): int 現在使用している PHP がサポートする画像形式を返します。 パラメータ この関数にはパラメータはありません。 ... がサポートする画像形式を返します。 返されるビットは次のとおりです。 IMG_AVIF | IMG_BMP | IMG_GIF | IMG_JPG | IMG_PNG | IMG_WBMP | IMG_XPM | IMG_WEBP 。 変更履歴 バージョン 説明 8.1.0 IMG_AVIF が追加されました。 7.2.0 IMG_BMP が追加されました。 7.0.10 ...
https://man.mtool.work/php/8.3/function.imagetypes.html
PREV 1 2 NEXT