Image
class Image implements ImageInterface
Image class for GD.
Methods
Image constructor.
Method called when 'clone' keyword is used.
Create Image from image file.
Create an Image from a GD resource. The file type defaults to unknown.
Create a blank image.
Set the blending mode for an image. Allows transparent overlays on top of an image.
Enable/Disable transparency
Returns animated flag.
Get GD resource ID.
Get image file path.
Get image width in pixels.
Get image height in pixels.
Get image type.
Get blocks.
Get histogram from an entire image or its sub-region.
Details
        at line         line 60
                            
    __construct(resource $gd, string $imageFile, int $width, int $height, string $type, string $blocks = '', bool $animated = false)
        
    
    Image constructor.
        at line         line 73
                            
    __clone()
        
    
    Method called when 'clone' keyword is used.
        at line         line 90
                            
    blob(string|ImageType $type = 'PNG')
        
    
    Output a binary raw dump of an image in a specified format.
        at line         line 122
                static            ImageInterface
    createFromFile(string $imageFile)
        
    
    Create Image from image file.
        at line         line 156
                static            ImageInterface
    createFromCore(resource $gd)
        
    
    Create an Image from a GD resource. The file type defaults to unknown.
        at line         line 168
                static            ImageInterface
    createBlank(int $width = 1, int $height = 1)
        
    
    Create a blank image.
        at line         line 180
                            Image
    alphaBlendingMode(bool $flag)
        
    
    Set the blending mode for an image. Allows transparent overlays on top of an image.
        at line         line 192
                            Image
    fullAlphaMode(bool $flag)
        
    
    Enable/Disable transparency
        at line         line 206
                            bool
    isAnimated()
        
    
    Returns animated flag.
        at line         line 215
                            resource|Imagick
    getCore()
        
    
    Get GD resource ID.
        at line         line 224
                            string
    getImageFile()
        
    
    Get image file path.
        at line         line 233
                            int
    getWidth()
        
    
    Get image width in pixels.
        at line         line 242
                            int
    getHeight()
        
    
    Get image height in pixels.
        at line         line 251
                            string
    getType()
        
    
    Get image type.
        at line         line 260
                            string.
    getBlocks()
        
    
    Get blocks.
        at line         line 271
                            array
    histogram(array|null $slice = null)
        
    
    Get histogram from an entire image or its sub-region.