public function from($dataOrFile)
    {
        if ($this->parser->isSupportedBinaryString($dataOrFile)) {
            return $this->parser->parse($dataOrFile);
        }
        return $this->fromFile($dataOrFile);
    }
public function from($dataOrFile)
    {
        if ($this->parser->isSupportedBinaryString($dataOrFile)) {
            return $this->parser->parse($dataOrFile);
        }
        return $this->fromFile($dataOrFile);
    }
public function from ( $ dataOrFile ) { if ( $ this -> parser -> isSupportedBinaryString ( $ dataOrFile ) ) { return $ this -> parser -> parse ( $ dataOrFile ) ; } return $ this -> fromFile ( $ dataOrFile ) ; }
Parses a .ico file from a pathname or binary data string and return an Icon object.

This is a useful lower level member which can be used to inspect an icon before
rendering a particular image within it with renderImage.

@param string $dataOrFile Either filename or binary data.
@return Icon
@throws \InvalidArgumentException if file is not found or invalid
Parses a . ico file from a pathname or binary data string and return an Icon object .