setasign\SetaPDF2\Core\Image
Gif Class representing a GIF image
File: /SetaPDF v2/Core/Image/Gif.php
Old class name (alias):
\SetaPDF_Core_Image_Gif
Class hierarchy
Summary
Constants
TYPE_GIF
TYPE_JPEG
TYPE_JPEG2000
Image type
TYPE_PNG
TYPE_TIFF
TYPE_UNKNOWN
Image type
Properties
$_frames
private Gif\Frame[] Gif::$_frames
The given frames.
Static Methods
get()
Get an image by a reader.
Parameters
- $reader : \setasign\SetaPDF2\Core\Reader\ReaderInterface
The reader instance
Exceptions
Throws \setasign\SetaPDF2\NotImplementedException If the image type is not supported (supported types: JPEG, PNG, JPEG2000).
Methods
_process()
toXObject()
public Gif::toXObject (
\setasign\SetaPDF2\Core\Document $document
): \setasign\SetaPDF2\Core\XObject\ImageConverts an image to an external object.
Parameters
- $document : \setasign\SetaPDF2\Core\Document
Exceptions
Throws Exception