SetaPDF_Core_Image_Gif_Block_Extension_Comment Class representing a comment extension inside a GIF.
File: /SetaPDF v2/Core/Image/Gif/Block/Extension/Comment.php
Class hierarchy
Summary
Static Methods
createExtension()
public static SetaPDF_Core_Image_Gif_Block_Extension_AbstractExtension::createExtension (
SetaPDF_Core_Reader_Binary $reader
): SetaPDF_Core_Image_Gif_Block_Extension_PlainText|SetaPDF_Core_Image_Gif_Block_Extension_Application|SetaPDF_Core_Image_Gif_Block_Extension_Comment|SetaPDF_Core_Image_Gif_Block_Extension_GraphicControlCreates an extension block instance.
Parameters
- $reader : SetaPDF_Core_Reader_Binary
Exceptions
Throws SetaPDF_Core_Image_Exception
createExtensionOrImageDescriptor()
public static SetaPDF_Core_Image_Gif_Block_AbstractBlock::createExtensionOrImageDescriptor (
SetaPDF_Core_Reader_Binary $reader
): bool|SetaPDF_Core_Image_Gif_Block_Extension_Application|SetaPDF_Core_Image_Gif_Block_Extension_Comment|SetaPDF_Core_Image_Gif_Block_Extension_GraphicControl|SetaPDF_Core_Image_Gif_Block_Extension_PlainText|SetaPDF_Core_Image_Gif_Block_ImageDescriptorCreates a new block instance (extension or image descriptor).
Parameters
- $reader : SetaPDF_Core_Reader_Binary
Exceptions
Throws SetaPDF_Core_Image_Exception
Methods
__construct()
public SetaPDF_Core_Image_Gif_Block_Extension_AbstractExtension::__construct (
SetaPDF_Core_Reader_Binary $reader
)The constructor.
Parameters
- $reader : SetaPDF_Core_Reader_Binary
Exceptions
Throws SetaPDF_Core_Image_Exception
_readBody()
Reads the content of the extension.
Parameters
- $reader : SetaPDF_Core_Image_Gif_Reader_Sequence