contributions/lib.imagetools/lib/interfaces/iimageinformation.cls.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * Interface for image informations 00004 * 00005 * Contains information like size, mime-type, extension etc. 00006 * 00007 * @author Gerd Riesselmann 00008 * @ingroup ImageTools 00009 */ 00010 interface IImageInformation { 00011 /** 00012 * Returns height in pixel 00013 * @return int 00014 */ 00015 public function get_height(); 00016 /** 00017 * Returns width in pixel 00018 * @return int 00019 */ 00020 public function get_width(); 00021 /** 00022 * Returns raw image data 00023 * @return string 00024 */ 00025 public function get_binary_data(); 00026 00027 /** 00028 * Saves to given file 00029 * @return bool 00030 */ 00031 public function save_to_file($file, $add_extension = true); 00032 00033 /** 00034 * Returns image mime type 00035 * @return string 00036 */ 00037 public function get_mime_type(); 00038 /** 00039 * Returns image file extension 00040 * @return int 00041 */ 00042 public function get_extension(); 00043 }