| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
imageresolution(PHP 7 >= 7.2.0) imageresolution — Get or set the resolution of the image 説明
imageresolution() allows to set and get the resolution of
an image in DPI (dots per inch). If none of the optional parameters is given,
the current resolution is returned as indexed array. If only
The resolution is only used as meta information when images are read from and written to formats supporting this kind of information (curently PNG and JPEG). It does not affect any drawing operations. The default resolution for new images is 96 DPI. パラメータ
返り値
When used as getter (that is without the optional parameters), it returns
例例1 Setting and getting the resolution of an image
<?php 上の例の出力は以下となります。 Array ( [0] => 200 [1] => 200 ) Array ( [0] => 300 [1] => 72 ) |
各種マニュアル:
PHPマニュアル |
PEARマニュアル |
Smarty(英語)マニュアル |
PHP-GTKマニュアル |
「imageresolution - Get or set the resolution of the image」をGoogle検索
|