PHP Класс Swift_Image, Halite

Автор: Chris Corbyn
Наследование: extends Swift_EmbeddedFile
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( string | Swift_OutputByteStream $data = null, string $filename = null, string $contentType = null ) Create a new EmbeddedFile.
fromPath ( string $path ) : Swift_Image Create a new Image from a filesystem path.
newInstance ( string | Swift_OutputByteStream $data = null, string $filename = null, string $contentType = null ) : Swift_Image Create a new Image.

Описание методов

__construct() публичный Метод

Details may be optionally provided to the constructor.
public __construct ( string | Swift_OutputByteStream $data = null, string $filename = null, string $contentType = null )
$data string | Swift_OutputByteStream
$filename string
$contentType string

fromPath() публичный статический Метод

Create a new Image from a filesystem path.
public static fromPath ( string $path ) : Swift_Image
$path string
Результат Swift_Image

newInstance() публичный статический Метод

Create a new Image.
public static newInstance ( string | Swift_OutputByteStream $data = null, string $filename = null, string $contentType = null ) : Swift_Image
$data string | Swift_OutputByteStream
$filename string
$contentType string
Результат Swift_Image