setasign\SetaPDF2\Core\Image\Gif\Block\Extension
GraphicControl Class representing a graphic control extension inside a GIF.
File: /SetaPDF v2/Core/Image/Gif/Block/Extension/GraphicControl.php
Old class name (alias):
\SetaPDF_Core_Image_Gif_Block_Extension_GraphicControl
Class hierarchy
Summary
Properties
$delayTime
public int GraphicControl::$delayTime
The time that the frame shall be displayed.
$disposalMethodFlag
public int GraphicControl::$disposalMethodFlag
The disposal method.
$reservedFlag
public int GraphicControl::$reservedFlag
Flag reserved for future specification.
$transparentColorFlag
public bool GraphicControl::$transparentColorFlag
A flag that determines if this block contains a transparent color.
$transparentColorIndex
public int GraphicControl::$transparentColorIndex
An index for the color table that shall be transparent for the next rendering run.
$userInputFlag
public bool GraphicControl::$userInputFlag
A flag that tells the reader to wait for user input before rendering the next frame.
Static Methods
createExtension()
public static 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
createExtensionOrImageDescriptor()
public static \setasign\SetaPDF2\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
Methods
__construct()
_readBody()
Reads the content of the extension.
Parameters
- $reader : \SetaPDF_Core_Image_Gif_Reader_Sequence