HaruDoc::loadPNG
(PECL haru:0.0.1)
HaruDoc::loadPNG — Load PNG image and return HaruImage instance
Описание
object HaruDoc::loadPNG
( string $filename
[, bool $deferred
] )
Loads a PNG image.
Libharu might be built without libpng support, in this case each call to this function would result in exception.
Список параметров
- filename
-
The name of a PNG image file.
- deferred
-
Do not load data immediately. Defaults to FALSE. You can set deferred parameter to TRUE for deferred data loading, in this case only size and color are loaded immediately.
Возвращаемые значения
Returns a HaruImage instance.
Errors/Exceptions
Throws HaruException on error.
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Генерация нетекстовых MIME форматов
- Haru PDF
- Функция HaruDoc::addPage() - Add new page to the document
- Функция HaruDoc::addPageLabel() - Set the numbering style for the specified range of pages
- Функция HaruDoc::__construct() - Construct new HaruDoc instance
- Функция HaruDoc::createOutline() - Create a HaruOutline instance
- Функция HaruDoc::getCurrentEncoder() - Get HaruEncoder currently used in the document
- Функция HaruDoc::getCurrentPage() - Return current page of the document
- Функция HaruDoc::getEncoder() - Get HaruEncoder instance for the specified encoding
- Функция HaruDoc::getFont() - Get HaruFont instance
- Функция HaruDoc::getInfoAttr() - Get current value of the specified document attribute
- Функция HaruDoc::getPageLayout() - Get current page layout
- Функция HaruDoc::getPageMode() - Get current page mode
- Функция HaruDoc::getStreamSize() - Get the size of the temporary stream
- Функция HaruDoc::insertPage() - Insert new page just before the specified page
- Функция HaruDoc::loadJPEG() - Load a JPEG image
- Функция HaruDoc::loadPNG() - Load PNG image and return HaruImage instance
- Функция HaruDoc::loadRaw() - Load a RAW image
- Функция HaruDoc::loadTTC() - Load the font with the specified index from TTC file
- Функция HaruDoc::loadTTF() - Load TTF font file
- Функция HaruDoc::loadType1() - Load Type1 font
- Функция HaruDoc::output() - Write the document data to the output buffer
- Функция HaruDoc::readFromStream() - Read data from the temporary stream
- Функция HaruDoc::resetError() - Reset error state of the document handle
- Функция HaruDoc::resetStream() - Rewind the temporary stream
- Функция HaruDoc::save() - Save the document into the specified file
- Функция HaruDoc::saveToStream() - Save the document into a temporary stream
- Функция HaruDoc::setCompressionMode() - Set compression mode for the document
- Функция HaruDoc::setCurrentEncoder() - Set the current encoder for the document
- Функция HaruDoc::setEncryptionMode() - Set encryption mode for the document
- Функция HaruDoc::setInfoAttr() - Set the info attribute of the document
- Функция HaruDoc::setInfoDateAttr() - Set the datetime info attributes of the document
- Функция HaruDoc::setOpenAction() - Define which page is shown when the document is opened
- Функция HaruDoc::setPageLayout() - Set how pages should be displayed
- Функция HaruDoc::setPageMode() - Set how the document should be displayed
- Функция HaruDoc::setPagesConfiguration() - Set the number of pages per set of pages
- Функция HaruDoc::setPassword() - Set owner and user passwords for the document
- Функция HaruDoc::setPermission() - Set permissions for the document
- Функция HaruDoc::useCNSEncodings() - Enable Chinese simplified encodings
- Функция HaruDoc::useCNSFonts() - Enable builtin Chinese simplified fonts
- Функция HaruDoc::useCNTEncodings() - Enable Chinese traditional encodings
- Функция HaruDoc::useCNTFonts() - Enable builtin Chinese traditional fonts
- Функция HaruDoc::useJPEncodings() - Enable Japanese encodings
- Функция HaruDoc::useJPFonts() - Enable builtin Japanese fonts
- Функция HaruDoc::useKREncodings() - Enable Korean encodings
- Функция HaruDoc::useKRFonts() - Enable builtin Korean fonts
Коментарии
404 Not Found