Horde_Image_Base::raw PHP Method

raw() public method

Returns the raw data for this image.
public raw ( boolean $convert = false ) : string
$convert boolean If true, the image data will be returned in the target format, independently from any image operations.
return string The raw image data.
    public function raw($convert = false)
    {
        return $this->_data;
    }

Usage Example

Beispiel #1
0
 /**
  * Build an Ansel_Image from a given Horde_Image.
  * Used to wrap iterating the Horde_Image
  *
  * @param Horde_Image_Base $image  The Horde_Image
  *
  * @return Ansel_Image
  */
 protected function _buildImageObject(Horde_Image_Base $image)
 {
     $params = array('image_filename' => $this->filename, 'data' => $image->raw());
     $newImage = new Ansel_Image($params);
     return $newImage;
 }