GdAdapter
        
        extends AbstractAdapter
    
    
            
            in package
            
        
    
    
    
        
            Base adapter implementation to handle image manipulation.
Table of Contents
- $resource : resource|GdImage|null
 - $resource : object|resource|null
 - __construct() : mixed
 - Creates new instance of the image adapter.
 - destroy() : void
 - Destroys the image.
 - getHeight() : int
 - getPixelColor() : stdClass
 - getResource() : resource|object|null
 - Get the raw resource.
 - getWidth() : int
 - isAvailable() : bool
 - load() : AdapterInterface
 - Loads an image resource.
 - loadFromBinary() : AdapterInterface
 - loadFromPath() : AdapterInterface
 - loadFromUrl() : AdapterInterface
 - Loads an image from given URL.
 
Properties
$resource
    public
        resource|GdImage|null
    $resource
    
    
        Image resource/object of current image adapter
$resource
    protected
        object|resource|null
    $resource
    
    
        Image resource/object of current image adapter
Methods
__construct()
Creates new instance of the image adapter.
    public
                    __construct() : mixed
    
    
    
        Return values
mixed —destroy()
Destroys the image.
    public
                    destroy() : void
    
    
    
        Return values
void —getHeight()
    public
                    getHeight() : int
        
    
    
        Return values
int —getPixelColor()
    public
                    getPixelColor(int $x, int $y) : stdClass
        
        Parameters
- $x : int
 - $y : int
 
Return values
stdClass —getResource()
Get the raw resource.
    public
                    getResource() : resource|object|null
    
    
    
        Return values
resource|object|null —getWidth()
    public
                    getWidth() : int
        
    
    
        Return values
int —isAvailable()
    public
            static        isAvailable() : bool
        
    
    
        Return values
bool —load()
Loads an image resource.
    public
                    load(mixed $resource) : AdapterInterface
    
        Parameters
- $resource : mixed
 
Return values
AdapterInterface —loadFromBinary()
    public
                    loadFromBinary(string $data) : AdapterInterface
        
        Parameters
- $data : string
 
Return values
AdapterInterface —loadFromPath()
    public
                    loadFromPath(string $file) : AdapterInterface
        
        Parameters
- $file : string
 
Return values
AdapterInterface —loadFromUrl()
Loads an image from given URL.
    public
                    loadFromUrl(string $url) : AdapterInterface
    
        Parameters
- $url : string