UNICORN - server side
公開メンバ関数 | 公開変数類 | 全メンバ一覧
ImageInfoResult クラス

公開メンバ関数

 ImageInfoResult ($image_info)
 
 getW ()
 
 getH ()
 
 getType ()
 
 getColors ()
 
 isError ()
 
 getErrorCode ()
 

公開変数類

 $w
 
 $h
 
 $type
 
 $extension
 
 $colors
 
 $error_flag
 
 $error_code
 

詳解

画像データの情報を取得した結果を格納するクラス

関数詳解

ImageInfoResult::getColors ( )

色数を返す

戻り値
int 色数
ImageInfoResult::getErrorCode ( )

エラーコードを返す

戻り値
int エラーコード。ImageInfo_ERROR_XXX
ImageInfoResult::getH ( )

縦幅を返す

戻り値
int 縦幅
ImageInfoResult::getType ( )

画像の種類を返す

戻り値
int 画像の種類。(IMAGETYPE_XXX)
ImageInfoResult::getW ( )

横幅を返す

戻り値
int 横幅
ImageInfoResult::ImageInfoResult (   $image_info)

コンストラクタ。画像の情報をセットする。

引数
array$image_info画像の情報を含む配列
  • $arr['w'] = 横幅
  • $arr['h'] = 横幅
  • $arr['type'] = 画像の種類(IMAGETYPE_XXX)
  • $arr['extension'] = 画像の拡張子(jpg|gif|png)
  • $arr['colors'] = 色数
  • $arr['error'] = エラーコード
ImageInfoResult::isError ( )

エラーがあったかどうかを返す

戻り値
boolean true => エラーあり false => エラーなし

このクラス詳解は次のファイルから抽出されました: