« PHP 8.3 Manual トップ
著作権 »
per page, with , order by , clip by
Results of 1 - 6 of about 6 for filehandle (0.003 sec.)
ジェネレータと Iterator オブジェクトとの比較 | PHP 8.3 13088
ジェネレータと Iterator オブジェクトとの比較 ジェネレータの最大のメリットは、シンプルに書けることです。 Iterator を実装するのに比べて、必要な決まり文句の数がかなり少なくなります。 また、ジェネレータを使ったコードのほうが、一般的に読みやすく ... とクラスを比べてみましょう。これらはどちらも同じ働きをするものです。 <?php function getLinesFromFile ( $fileName ) { if (! $fileHandle = fopen ( $fileName , 'r' )) { return; } while ( false !== $line = fgets ( $fileHandle )) { yield $line ; } fclose ( $file ... Handle ); } // これを、下のクラスと比べてみると…… class LineIterator implements Iterator { protected $fileHandle ; protected $line ; protected $i ; public function __construct ( $fileName ) { if (! $this -> fileHandle = fopen ( $fileNa ... throw new RuntimeException ( 'Couldn\'t open file "' . $fileName . '"' ); } } public function rewind () { fseek ( $this -> fileHandle , 0 ); $this -> line = fgets ( $this -> fileHandle ); $this -> i = 0 ; } public function valid () { return false !== $this ...
https://man.mtool.work/php/8.3/language.generators.comparison.html
Imagick::readImageFile — オープンしているファイルハンドルから画像を読み込む | P... 9011
Imagick::readImageFile (PECL imagick 2, PECL imagick 3) Imagick::readImageFile — オープンしているファイルハンドルから画像を読み込む 説明 public function Imagick::readImageFile ( resource $filehandle , string $fileName = null ): bool オープン ... しているファイルハンドルから画像を読み込みます。 パラメータ filehandle fileName 戻り値 成功した場合に true を返します。 エラー / 例外 エラー時に ImagickException をスローします。 他のマニュアル ...
https://man.mtool.work/php/8.3/imagick.readimagefile.html
Imagick::writeImageFile — 画像をファイルハンドルに書き出す | PHP 8.3 8481
Imagick::writeImageFile (PECL imagick 2 >= 2.3.0, PECL imagick 3) Imagick::writeImageFile — 画像をファイルハンドルに書き出す 説明 public function Imagick::writeImageFile ( resource $filehandle , string $format = ? ): bool 開いているファイル ... ればなりません。 このメソッドは、ImageMagick バージョン 6.3.6 以降で Imagick をコンパイルした場合に使用可能です。 パラメータ filehandle 画像を書き出すファイルハンドル。 format 画像のフォーマット。 指定できる有効なフォーマットのリストは、 ImageMagick のコンパ ...
https://man.mtool.work/php/8.3/imagick.writeimagefile.html
Imagick::writeImagesFile — フレームをファイルハンドルに書き出す | PHP 8.3 8408
Imagick::writeImagesFile (PECL imagick 2 >= 2.3.0, PECL imagick 3) Imagick::writeImagesFile — フレームをファイルハンドルに書き出す 説明 public function Imagick::writeImagesFile ( resource $filehandle , string $format = ? ): bool 開いているフ ... ことができます。 このメソッドは、ImageMagick バージョン 6.3.6 以降で Imagick をコンパイルした場合に使用可能です。 パラメータ filehandle 画像を書き出すファイルハンドル。 format 画像のフォーマット。 指定できる有効なフォーマットのリストは、 ImageMagick のコンパ ...
https://man.mtool.work/php/8.3/imagick.writeimagesfile.html
Imagick::pingImageFile — 画像の基本属性を手軽に取得する | PHP 8.3 8335
Imagick::pingImageFile (PECL imagick 2, PECL imagick 3) Imagick::pingImageFile — 画像の基本属性を手軽に取得する 説明 public function Imagick::pingImageFile ( resource $filehandle , string $fileName = ? ): bool このメソッドを使用すると、画像 ... を取得できます。 このメソッドは、ImageMagick バージョン 6.2.9 以降で Imagick をコンパイルした場合に使用可能です。 パラメータ filehandle 開いている画像のファイルハンドル。 fileName オプションで指定する、この画像のファイル名。 戻り値 成功した場合に true を返し ...
https://man.mtool.work/php/8.3/imagick.pingimagefile.html
Imagick クラス | PHP 8.3 7457
Imagick クラス (PECL imagick 2, PECL imagick 3) クラス概要 class Imagick implements Iterator { public function __construct ( mixed $files = ? ) public function adaptiveBlurImage ( float $radius , float $sigma , int $channel = Imagick::CHANN ... ( string $filename ): bool public function pingImageBlob ( string $image ): bool public function pingImageFile ( resource $filehandle , string $fileName = ? ): bool public function polaroidImage ( ImagickDraw $properties , float $angle ): bool public funct ... ool public function readImageBlob ( string $image , string $filename = ? ): bool public function readImageFile ( resource $filehandle , string $fileName = null ): bool public function readImages ( array $filenames ): bool public function recolorImage ( arr ... $threshold ): bool public function writeImage ( string $filename = NULL ): bool public function writeImageFile ( resource $filehandle , string $format = ? ): bool public function writeImages ( string $filename , bool $adjoin ): bool public function writeIm ...
https://man.mtool.work/php/8.3/class.imagick.html
PREV 1 NEXT