Gd
        
        extends AbstractGd
    
    
            
            in package
            
        
    
    
    
Simple Gd implementation.
Table of Contents
Constants
- DEFAULT_ANGLE = 0
- DEFAULT_OPTION = null
- DEFAULT_SIZE = 12
- MAP = [ ["type" => \Samy\Image\Constant\GdImageType::BMP, "load" => "imagecreatefrombmp", "save" => "imagebmp"], //~ ["type" => GdImageType::GIF, "load" => "imagecreatefromgif", "save" => "imagegif"], ["type" => \Samy\Image\Constant\GdImageType::JPEG, "load" => "imagecreatefromjpeg", "save" => "imagejpeg"], ["type" => \Samy\Image\Constant\GdImageType::PNG, "load" => "imagecreatefrompng", "save" => "imagepng"], ["type" => \Samy\Image\Constant\GdImageType::WBMP, "load" => "imagecreatefromwbmp", "save" => "imagewbmp"], ["type" => \Samy\Image\Constant\GdImageType::WEBP, "load" => "imagecreatefromwebp", "save" => "imagewebp"], ["type" => \Samy\Image\Constant\GdImageType::XBM, "load" => "imagecreatefromxbm", "save" => "imagexbm"], ]
Properties
- $image : mixed
- $blend_mode : bool
- $brush : mixed
- $filename : string
- $style : array<string|int, int>
- $temporary : array<string|int, string>
- $thickness : int
- $type : int
- $updated : bool
Methods
- __construct() : mixed
- __destruct() : mixed
- blur() : static
- Blurs the image.
- brightness() : static
- Changes the brightness of the image.
- colorize() : static
- Converts the image into specify color.
- contrast() : static
- Changes the contrast of the image.
- copy() : static
- Copy source image.
- corner() : static
- Transform corner.
- crop() : static
- Crop image.
- detach() : GdImage
- Separates any underlying resource from the instance.
- drawArc() : static
- Draw an arc.
- drawEllipse() : static
- Draw an ellipse.
- drawFilledArc() : static
- Draw a filled arc.
- drawFilledEllipse() : static
- Draw a filled ellipse.
- drawFilledPolygon() : static
- Draw a filled polygon.
- drawFilledRectangle() : static
- Draw a filled rectangle.
- drawLine() : static
- Draw a line.
- drawOpenPolygon() : static
- Draw an open polygon.
- drawPolygon() : static
- Draw a polygon.
- drawRectangle() : static
- Draw a rectangle.
- edgeDetect() : static
- Uses edge detection to highlight the edges in the image.
- embosses() : static
- Embosses the image.
- flip() : static
- Flip image with a given mode.
- getAlpha() : int
- Retrieve alpha color of a pixel.
- getArgb() : int
- Retrieve argb color of a pixel.
- getBlendMode() : bool
- Retrieve image blend mode.
- getBlue() : int
- Retrieve blue color of a pixel.
- getContent() : string
- Retrieve image file content.
- getExtension() : string
- Retrieve image file extension.
- getGreen() : int
- Retrieve green color of a pixel.
- getHeight() : int
- Retrieve image height.
- getImage() : GdImage
- Retrieve resource image.
- getMd5() : string
- Retrieve image md5 hash.
- getMimeType() : string
- Retrieve image mime content-type.
- getRed() : int
- Retrieve red color of a pixel.
- getSha1() : string
- Retrieve image sha1 hash.
- getSize() : int
- Retrieve image file size.
- getStyle() : array<string|int, int>
- Retrieve the style of line draw.
- getThickness() : int
- Retrieve the thickness of line draw.
- getType() : int
- Retrieve image type.
- getWidth() : int
- Retrieve image width.
- grayscale() : static
- Converts the image into grayscale.
- hasBrush() : bool
- Check if instance has a brush image.
- hasImage() : bool
- Check if instance has a resource image.
- pixelate() : static
- Applies pixelation effect to the image.
- resize() : static
- Resize stretch image.
- reverseColor() : static
- Reverses all colors of the image.
- rotate() : static
- Rotate image with a given angle.
- save() : static
- Save image file.
- scatter() : static
- Applies scatter effect to the image.
- sketchy() : static
- Uses mean removal to achieve a "sketchy" effect.
- smooth() : static
- Makes the image smoother.
- thumbnail() : static
- Fill thumbnail image.
- ttfBox() : array<string, int>
- Retrieve the bounding box of a text using TrueType fonts.
- ttfText() : static
- Return an instance with the provided TrueType fonts text.
- withAlpha() : static
- Return an instance with provided alpha color of a pixel.
- withArgb() : static
- Return an instance with provided argb color of a pixel.
- withBlendMode() : static
- Return an instance with provided image blend mode.
- withBlue() : static
- Return an instance with provided blue color of a pixel.
- withBrush() : static
- Return an instance with provided brush image.
- withGreen() : static
- Return an instance with provided green color of a pixel.
- withRed() : static
- Return an instance with provided red color of a pixel.
- withStyle() : static
- Return an instance with provided style of line draw.
- withThickness() : static
- Return an instance with provided thickness of line draw.
- withType() : static
- Return an instance with the provided image type.
- addTemporary() : static
- Return an instance with the added temprary filename.
- alphaValue() : int
- Retrieve alpha value from argb color.
- applySelection() : static
- Apply image selection.
- blueValue() : int
- Retrieve blue value from argb color.
- clearTemporary() : static
- Clear temporary data.
- createImage() : GdImage
- Create blank image.
- getMap() : array<string, string>
- Retrieve image map.
- getRandomFilename() : string
- Retrieve a random temporary filename.
- greenValue() : int
- Retrieve green value from argb color.
- guardFile() : static
- Guard image file.
- guardImage() : static
- Guard resource image.
- loadImageLocation() : GdImage
- Load image location.
- makeSelection() : GdImage
- Make image selection.
- redValue() : int
- Retrieve red value from argb color.
- resetProperty() : static
- Return an instance with reset property.
- structureArea() : static
- Return an instance with calculation draw area.
- updateSignal() : static
- Send update signal.
- validateArc() : static
- Return an instance with valid draw arc.
- validateArea() : static
- Return an instance with valid draw area.
- validateBlur() : static
- Return an instance with valid blur filter.
- validateBrightness() : static
- Return an instance with valid brightness filter.
- validateColorize() : static
- Return an instance with valid colorize filter.
- validateContrast() : static
- Return an instance with valid contrast filter.
- validateCopy() : static
- Return an instance with valid copy transform.
- validateCorner() : static
- Return an instance with valid corner transform.
- validatePixelate() : static
- Return an instance with valid pixelate filter.
- validatePolygon() : static
- Return an instance with valid draw polygon.
- validateScatter() : static
- Return an instance with valid scatetr filter.
- validateSelection() : static
- Return an instance with valid selection.
- validateSmooth() : static
- Return an instance with valid smooth filter.
- validateTtf() : static
- Return an instance with valid TTF.
- filter() : static
- Applies filter image.
- getCornerFlatPoints() : array<string|int, array<string, int>>
- Retrieve flat corner transparent pixel points.
- getCornerResultPoints() : void
- Retrieve flat corner transparent pixel points.
- getCornerRoundPoints() : array<string|int, array<string, int>>
- Retrieve round corner transparent pixel points.
- isStyledColor() : bool
- Check if color is build-in styled color.
- loadImageFile() : GdImage
- Load image file.
- releaseBrush() : static
- Release brush image.
- releaseImage() : static
- Release resource image.
- structurePolygon() : static
- Return an instance with calculation draw polygon.
- structureTtf() : static
- Return an instance with structure TTF.
Constants
DEFAULT_ANGLE
    private
        mixed
    DEFAULT_ANGLE
    = 0
    
    
    
DEFAULT_OPTION
    private
        mixed
    DEFAULT_OPTION
    = null
    
    
    
DEFAULT_SIZE
    private
        mixed
    DEFAULT_SIZE
    = 12
    
    
    
MAP
    private
        mixed
    MAP
    = [
    ["type" => \Samy\Image\Constant\GdImageType::BMP, "load" => "imagecreatefrombmp", "save" => "imagebmp"],
    //~ ["type" => GdImageType::GIF, "load" => "imagecreatefromgif", "save" => "imagegif"],
    ["type" => \Samy\Image\Constant\GdImageType::JPEG, "load" => "imagecreatefromjpeg", "save" => "imagejpeg"],
    ["type" => \Samy\Image\Constant\GdImageType::PNG, "load" => "imagecreatefrompng", "save" => "imagepng"],
    ["type" => \Samy\Image\Constant\GdImageType::WBMP, "load" => "imagecreatefromwbmp", "save" => "imagewbmp"],
    ["type" => \Samy\Image\Constant\GdImageType::WEBP, "load" => "imagecreatefromwebp", "save" => "imagewebp"],
    ["type" => \Samy\Image\Constant\GdImageType::XBM, "load" => "imagecreatefromxbm", "save" => "imagexbm"],
]
    
    
    
Properties
$image
    protected
        mixed
    $image
     = null
    
    
    
    Tags
$blend_mode
    private
        bool
    $blend_mode
     = false
    
    
    
$brush
    private
        mixed
    $brush
     = null
    
    
    
    Tags
$filename
    private
        string
    $filename
     = ""
    
    
    
$style
    private
        array<string|int, int>
    $style
     = []
    
    
    
$temporary
    private
        array<string|int, string>
    $temporary
     = []
    
    
    
$thickness
    private
        int
    $thickness
     = 1
    
    
    
$type
    private
        int
    $type
     = 0
    
    
    
$updated
    private
        bool
    $updated
     = false
    
    
    
Methods
__construct()
    public
                    __construct([array<string, mixed> $Config = [] ]) : mixed
    Parameters
- $Config : array<string, mixed> = []
- 
                    The image configuration. 
Tags
__destruct()
    public
                    __destruct() : mixed
    blur()
Blurs the image.
    public
                    blur(array<string, int> $Blur) : static
    Parameters
- $Blur : array<string, int>
- 
                    The blur filter. 
Tags
Return values
staticbrightness()
Changes the brightness of the image.
    public
                    brightness(array<string, int> $Brightness) : static
    Level: -255 ~ 255
Parameters
- $Brightness : array<string, int>
- 
                    The brightness filter. 
Tags
Return values
staticcolorize()
Converts the image into specify color.
    public
                    colorize(array<string, mixed> $Colorize) : static
    Parameters
- $Colorize : array<string, mixed>
- 
                    The colorize filter. 
Tags
Return values
staticcontrast()
Changes the contrast of the image.
    public
                    contrast(array<string, int> $Contrast) : static
    Level: -100 ~ 100
Parameters
- $Contrast : array<string, int>
- 
                    The contrast filter. 
Tags
Return values
staticcopy()
Copy source image.
    public
                    copy(array<string, mixed> $Copy) : static
    Parameters
- $Copy : array<string, mixed>
- 
                    The copy transform. 
Tags
Return values
staticcorner()
Transform corner.
    public
                    corner(array<string, int> $Corner) : static
    Parameters
- $Corner : array<string, int>
- 
                    The corner transform. 
Tags
Return values
staticcrop()
Crop image.
    public
                    crop(array<string, int> $Selection) : static
    Parameters
- $Selection : array<string, int>
- 
                    The transform selection. 
Tags
Return values
staticdetach()
Separates any underlying resource from the instance.
    public
                    detach() : GdImage
    After the instance has been detached, the instance is in an unusable state.
Tags
Return values
GdImagedrawArc()
Draw an arc.
    public
                    drawArc(array<string, int> $Arc) : static
    Parameters
- $Arc : array<string, int>
- 
                    The draw arc. 
Tags
Return values
staticdrawEllipse()
Draw an ellipse.
    public
                    drawEllipse(array<string, int> $Area) : static
    Parameters
- $Area : array<string, int>
- 
                    The draw area. 
Tags
Return values
staticdrawFilledArc()
Draw a filled arc.
    public
                    drawFilledArc(array<string, int> $Arc) : static
    Parameters
- $Arc : array<string, int>
- 
                    The draw arc. 
Tags
Return values
staticdrawFilledEllipse()
Draw a filled ellipse.
    public
                    drawFilledEllipse(array<string, int> $Area) : static
    Parameters
- $Area : array<string, int>
- 
                    The draw area. 
Tags
Return values
staticdrawFilledPolygon()
Draw a filled polygon.
    public
                    drawFilledPolygon(array<string, mixed> $Polygon) : static
    Parameters
- $Polygon : array<string, mixed>
- 
                    The draw polygon. 
Tags
Return values
staticdrawFilledRectangle()
Draw a filled rectangle.
    public
                    drawFilledRectangle(array<string, int> $Area) : static
    Parameters
- $Area : array<string, int>
- 
                    The draw area. 
Tags
Return values
staticdrawLine()
Draw a line.
    public
                    drawLine(array<string, int> $Area) : static
    Parameters
- $Area : array<string, int>
- 
                    The draw area. 
Tags
Return values
staticdrawOpenPolygon()
Draw an open polygon.
    public
                    drawOpenPolygon(array<string, mixed> $Polygon) : static
    Parameters
- $Polygon : array<string, mixed>
- 
                    The draw polygon. 
Tags
Return values
staticdrawPolygon()
Draw a polygon.
    public
                    drawPolygon(array<string, mixed> $Polygon) : static
    Parameters
- $Polygon : array<string, mixed>
- 
                    The draw polygon. 
Tags
Return values
staticdrawRectangle()
Draw a rectangle.
    public
                    drawRectangle(array<string, int> $Area) : static
    Parameters
- $Area : array<string, int>
- 
                    The draw area. 
Tags
Return values
staticedgeDetect()
Uses edge detection to highlight the edges in the image.
    public
                    edgeDetect(array<string, int> $Selection) : static
    Parameters
- $Selection : array<string, int>
- 
                    The filter selection. 
Tags
Return values
staticembosses()
Embosses the image.
    public
                    embosses(array<string, int> $Selection) : static
    Parameters
- $Selection : array<string, int>
- 
                    The filter selection. 
Tags
Return values
staticflip()
Flip image with a given mode.
    public
                    flip(int $Mode) : static
    Parameters
- $Mode : int
- 
                    The flip mode. 
Tags
Return values
staticgetAlpha()
Retrieve alpha color of a pixel.
    public
                    getAlpha(int $X, int $Y) : int
    Parameters
- $X : int
- 
                    The X coordinate of point 
- $Y : int
- 
                    The Y coordinate of point 
Tags
Return values
intgetArgb()
Retrieve argb color of a pixel.
    public
                    getArgb(int $X, int $Y) : int
    Parameters
- $X : int
- 
                    The X coordinate of point 
- $Y : int
- 
                    The Y coordinate of point 
Tags
Return values
intgetBlendMode()
Retrieve image blend mode.
    public
                    getBlendMode() : bool
    Tags
Return values
boolgetBlue()
Retrieve blue color of a pixel.
    public
                    getBlue(int $X, int $Y) : int
    Parameters
- $X : int
- 
                    The X coordinate of point 
- $Y : int
- 
                    The Y coordinate of point 
Tags
Return values
intgetContent()
Retrieve image file content.
    public
                    getContent() : string
    Tags
Return values
stringgetExtension()
Retrieve image file extension.
    public
                    getExtension() : string
    Tags
Return values
stringgetGreen()
Retrieve green color of a pixel.
    public
                    getGreen(int $X, int $Y) : int
    Parameters
- $X : int
- 
                    The X coordinate of point 
- $Y : int
- 
                    The Y coordinate of point 
Tags
Return values
intgetHeight()
Retrieve image height.
    public
                    getHeight() : int
    Tags
Return values
intgetImage()
Retrieve resource image.
    public
                    getImage() : GdImage
    Tags
Return values
GdImagegetMd5()
Retrieve image md5 hash.
    public
                    getMd5() : string
    Tags
Return values
stringgetMimeType()
Retrieve image mime content-type.
    public
                    getMimeType() : string
    Tags
Return values
stringgetRed()
Retrieve red color of a pixel.
    public
                    getRed(int $X, int $Y) : int
    Parameters
- $X : int
- 
                    The X coordinate of point 
- $Y : int
- 
                    The Y coordinate of point 
Tags
Return values
intgetSha1()
Retrieve image sha1 hash.
    public
                    getSha1() : string
    Tags
Return values
stringgetSize()
Retrieve image file size.
    public
                    getSize() : int
    Tags
Return values
intgetStyle()
Retrieve the style of line draw.
    public
                    getStyle() : array<string|int, int>
    Tags
Return values
array<string|int, int>getThickness()
Retrieve the thickness of line draw.
    public
                    getThickness() : int
    Tags
Return values
intgetType()
Retrieve image type.
    public
                    getType() : int
    Tags
Return values
intgetWidth()
Retrieve image width.
    public
                    getWidth() : int
    Tags
Return values
intgrayscale()
Converts the image into grayscale.
    public
                    grayscale(array<string, int> $Selection) : static
    Parameters
- $Selection : array<string, int>
- 
                    The filter selection. 
Tags
Return values
statichasBrush()
Check if instance has a brush image.
    public
                    hasBrush() : bool
    Return values
boolhasImage()
Check if instance has a resource image.
    public
                    hasImage() : bool
    Return values
boolpixelate()
Applies pixelation effect to the image.
    public
                    pixelate(array<string, mixed> $Pixelate) : static
    Parameters
- $Pixelate : array<string, mixed>
- 
                    The pixelate filter. 
Tags
Return values
staticresize()
Resize stretch image.
    public
                    resize(int $Width, int $Height) : static
    Parameters
- $Width : int
- 
                    The resize width. 
- $Height : int
- 
                    The resize height. 
Tags
Return values
staticreverseColor()
Reverses all colors of the image.
    public
                    reverseColor(array<string, int> $Selection) : static
    Parameters
- $Selection : array<string, int>
- 
                    The filter selection. 
Tags
Return values
staticrotate()
Rotate image with a given angle.
    public
                    rotate(float $Angle) : static
    Parameters
- $Angle : float
- 
                    The rotate angle. 
Tags
Return values
staticsave()
Save image file.
    public
                    save(string $Filename) : static
    Parameters
- $Filename : string
- 
                    The filename. 
Tags
Return values
staticscatter()
Applies scatter effect to the image.
    public
                    scatter(array<string, mixed> $Scatter) : static
    Parameters
- $Scatter : array<string, mixed>
- 
                    The scatter filter. 
Tags
Return values
staticsketchy()
Uses mean removal to achieve a "sketchy" effect.
    public
                    sketchy(array<string, int> $Selection) : static
    Parameters
- $Selection : array<string, int>
- 
                    The filter selection. 
Tags
Return values
staticsmooth()
Makes the image smoother.
    public
                    smooth(array<string, int> $Smooth) : static
    Level: -8 ~ 8
Parameters
- $Smooth : array<string, int>
- 
                    The smooth filter. 
Tags
Return values
staticthumbnail()
Fill thumbnail image.
    public
                    thumbnail(int $Width, int $Height) : static
    Parameters
- $Width : int
- 
                    The thumbnail width. 
- $Height : int
- 
                    The thumbnail height. 
Tags
Return values
staticttfBox()
Retrieve the bounding box of a text using TrueType fonts.
    public
                    ttfBox(array<string, mixed> $Ttf) : array<string, int>
    Parameters
- $Ttf : array<string, mixed>
- 
                    The ttf configuration. 
Tags
Return values
array<string, int>ttfText()
Return an instance with the provided TrueType fonts text.
    public
                    ttfText(array<string, mixed> $Ttf) : static
    Parameters
- $Ttf : array<string, mixed>
- 
                    The ttf configuration. 
Tags
Return values
staticwithAlpha()
Return an instance with provided alpha color of a pixel.
    public
                    withAlpha(int $X, int $Y, int $Value) : static
    Parameters
- $X : int
- 
                    The X coordinate of point 
- $Y : int
- 
                    The Y coordinate of point 
- $Value : int
- 
                    The alpha value 
Tags
Return values
staticwithArgb()
Return an instance with provided argb color of a pixel.
    public
                    withArgb(int $X, int $Y, int $Value) : static
    Parameters
- $X : int
- 
                    The X coordinate of point 
- $Y : int
- 
                    The Y coordinate of point 
- $Value : int
- 
                    The argb value 
Tags
Return values
staticwithBlendMode()
Return an instance with provided image blend mode.
    public
                    withBlendMode(bool $BlendMode) : static
    Parameters
- $BlendMode : bool
- 
                    The blend mode. 
Tags
Return values
staticwithBlue()
Return an instance with provided blue color of a pixel.
    public
                    withBlue(int $X, int $Y, int $Value) : static
    Parameters
- $X : int
- 
                    The X coordinate of point 
- $Y : int
- 
                    The Y coordinate of point 
- $Value : int
- 
                    The blue value 
Tags
Return values
staticwithBrush()
Return an instance with provided brush image.
    public
                    withBrush(string $Location) : static
    Parameters
- $Location : string
- 
                    The brush location. 
Tags
Return values
staticwithGreen()
Return an instance with provided green color of a pixel.
    public
                    withGreen(int $X, int $Y, int $Value) : static
    Parameters
- $X : int
- 
                    The X coordinate of point 
- $Y : int
- 
                    The Y coordinate of point 
- $Value : int
- 
                    The green value 
Tags
Return values
staticwithRed()
Return an instance with provided red color of a pixel.
    public
                    withRed(int $X, int $Y, int $Value) : static
    Parameters
- $X : int
- 
                    The X coordinate of point 
- $Y : int
- 
                    The Y coordinate of point 
- $Value : int
- 
                    The red value 
Tags
Return values
staticwithStyle()
Return an instance with provided style of line draw.
    public
                    withStyle(array<string|int, int> $Style) : static
    Parameters
- $Style : array<string|int, int>
- 
                    The style. 
Tags
Return values
staticwithThickness()
Return an instance with provided thickness of line draw.
    public
                    withThickness(int $Thickness) : static
    Parameters
- $Thickness : int
- 
                    The thickness. 
Tags
Return values
staticwithType()
Return an instance with the provided image type.
    public
                    withType(int $Type) : static
    Parameters
- $Type : int
- 
                    The image type. 
Tags
Return values
staticaddTemporary()
Return an instance with the added temprary filename.
    protected
                    addTemporary(string $Filename) : static
    Parameters
- $Filename : string
- 
                    The temporary filename. 
Return values
staticalphaValue()
Retrieve alpha value from argb color.
    protected
                    alphaValue(int $Argb) : int
    Parameters
- $Argb : int
- 
                    ARGB value 
Return values
intapplySelection()
Apply image selection.
    protected
                    applySelection(array<string, int> $Selection, GdImage $Image) : static
    Parameters
- $Selection : array<string, int>
- 
                    The image selection. 
- $Image : GdImage
- 
                    The source image. 
Return values
staticblueValue()
Retrieve blue value from argb color.
    protected
                    blueValue(int $Argb) : int
    Parameters
- $Argb : int
- 
                    ARGB value 
Return values
intclearTemporary()
Clear temporary data.
    protected
                    clearTemporary() : static
    Return values
staticcreateImage()
Create blank image.
    protected
                    createImage(int $Width, int $Height) : GdImage
    Parameters
- $Width : int
- 
                    The image width. 
- $Height : int
- 
                    The image height. 
Tags
Return values
GdImagegetMap()
Retrieve image map.
    protected
                    getMap(int $Type) : array<string, string>
    Parameters
- $Type : int
- 
                    The image type. 
Tags
Return values
array<string, string>getRandomFilename()
Retrieve a random temporary filename.
    protected
                    getRandomFilename(string $Namespace[, string $Extension = "tmp" ]) : string
    Parameters
- $Namespace : string
- 
                    The file namespace. 
- $Extension : string = "tmp"
- 
                    The file extension. 
Return values
stringgreenValue()
Retrieve green value from argb color.
    protected
                    greenValue(int $Argb) : int
    Parameters
- $Argb : int
- 
                    ARGB value 
Return values
intguardFile()
Guard image file.
    protected
                    guardFile() : static
    Tags
Return values
staticguardImage()
Guard resource image.
    protected
                    guardImage() : static
    Tags
Return values
staticloadImageLocation()
Load image location.
    protected
                    loadImageLocation(string $Location) : GdImage
    Parameters
- $Location : string
- 
                    The image location. 
Tags
Return values
GdImagemakeSelection()
Make image selection.
    protected
                    makeSelection(array<string, int> $Selection) : GdImage
    Parameters
- $Selection : array<string, int>
- 
                    The image selection. 
Return values
GdImageredValue()
Retrieve red value from argb color.
    protected
                    redValue(int $Argb) : int
    Parameters
- $Argb : int
- 
                    ARGB value 
Return values
intresetProperty()
Return an instance with reset property.
    protected
                    resetProperty(GdImage $Image) : static
    Parameters
- $Image : GdImage
- 
                    The resource image. 
Tags
Return values
staticstructureArea()
Return an instance with calculation draw area.
    protected
                    structureArea(array<string, int> &$Area) : static
    Parameters
- $Area : array<string, int>
- 
                    The draw area. 
Return values
staticupdateSignal()
Send update signal.
    protected
                    updateSignal() : static
    Return values
staticvalidateArc()
Return an instance with valid draw arc.
    protected
                    validateArc(array<string, int> $Arc, bool $WithStyle) : static
    Parameters
- $Arc : array<string, int>
- 
                    The draw arc. 
- $WithStyle : bool
- 
                    With style key. 
Tags
Return values
staticvalidateArea()
Return an instance with valid draw area.
    protected
                    validateArea(array<string, int> $Area) : static
    Parameters
- $Area : array<string, int>
- 
                    The draw area. 
Tags
Return values
staticvalidateBlur()
Return an instance with valid blur filter.
    protected
                    validateBlur(array<string, int> $Blur) : static
    Parameters
- $Blur : array<string, int>
- 
                    The blur filter. 
Tags
Return values
staticvalidateBrightness()
Return an instance with valid brightness filter.
    protected
                    validateBrightness(array<string, int> $Brightness) : static
    Parameters
- $Brightness : array<string, int>
- 
                    The brightness filter. 
Tags
Return values
staticvalidateColorize()
Return an instance with valid colorize filter.
    protected
                    validateColorize(array<string, mixed> $Colorize) : static
    Parameters
- $Colorize : array<string, mixed>
- 
                    The colorize filter. 
Tags
Return values
staticvalidateContrast()
Return an instance with valid contrast filter.
    protected
                    validateContrast(array<string, int> $Contrast) : static
    Parameters
- $Contrast : array<string, int>
- 
                    The contrast filter. 
Tags
Return values
staticvalidateCopy()
Return an instance with valid copy transform.
    protected
                    validateCopy(array<string, mixed> $Copy) : static
    Parameters
- $Copy : array<string, mixed>
- 
                    The copy transform. 
Tags
Return values
staticvalidateCorner()
Return an instance with valid corner transform.
    protected
                    validateCorner(array<string, int> $Corner) : static
    Parameters
- $Corner : array<string, int>
- 
                    The corner transform. 
Tags
Return values
staticvalidatePixelate()
Return an instance with valid pixelate filter.
    protected
                    validatePixelate(array<string, mixed> $Pixelate) : static
    Parameters
- $Pixelate : array<string, mixed>
- 
                    The pixelate filter. 
Tags
Return values
staticvalidatePolygon()
Return an instance with valid draw polygon.
    protected
                    validatePolygon(array<string, mixed> $Polygon) : static
    Parameters
- $Polygon : array<string, mixed>
- 
                    The draw polygon. 
Tags
Return values
staticvalidateScatter()
Return an instance with valid scatetr filter.
    protected
                    validateScatter(array<string, mixed> $Scatter) : static
    Parameters
- $Scatter : array<string, mixed>
- 
                    The scatetr filter. 
Tags
Return values
staticvalidateSelection()
Return an instance with valid selection.
    protected
                    validateSelection(array<string, int> $Selection) : static
    Parameters
- $Selection : array<string, int>
- 
                    The selection. 
Tags
Return values
staticvalidateSmooth()
Return an instance with valid smooth filter.
    protected
                    validateSmooth(array<string, int> $Smooth) : static
    Parameters
- $Smooth : array<string, int>
- 
                    The smooth filter. 
Tags
Return values
staticvalidateTtf()
Return an instance with valid TTF.
    protected
                    validateTtf(array<string, mixed> $Ttf, bool $WithEngrave) : static
    Parameters
- $Ttf : array<string, mixed>
- 
                    The TTF. 
- $WithEngrave : bool
- 
                    With engrave key. 
Tags
Return values
staticfilter()
Applies filter image.
    private
                    filter(array<string, int> $Selection, int $Filter, mixed ...$Arguments) : static
    Parameters
- $Selection : array<string, int>
- 
                    The filter selection. 
- $Filter : int
- 
                    Filter mode 
- $Arguments : mixed
- 
                    Filter arguments 
Return values
staticgetCornerFlatPoints()
Retrieve flat corner transparent pixel points.
    private
                    getCornerFlatPoints(int $Radius, int $CornerSide) : array<string|int, array<string, int>>
    Parameters
- $Radius : int
- 
                    The corner radius. 
- $CornerSide : int
- 
                    The corner side. 
Return values
array<string|int, array<string, int>>getCornerResultPoints()
Retrieve flat corner transparent pixel points.
    private
                    getCornerResultPoints(array<string, int> &$Result, int $X, int $Y, int $Width, int $Height, int $CornerSide) : void
    Parameters
- $Result : array<string, int>
- 
                    The corner radius. 
- $X : int
- 
                    The x point. 
- $Y : int
- 
                    The y point. 
- $Width : int
- 
                    The image width. 
- $Height : int
- 
                    The image height. 
- $CornerSide : int
- 
                    The corner side. 
getCornerRoundPoints()
Retrieve round corner transparent pixel points.
    private
                    getCornerRoundPoints(int $Radius, int $CornerSide) : array<string|int, array<string, int>>
    Parameters
- $Radius : int
- 
                    The corner radius. 
- $CornerSide : int
- 
                    The corner side. 
Return values
array<string|int, array<string, int>>isStyledColor()
Check if color is build-in styled color.
    private
                    isStyledColor(int $Color) : bool
    Parameters
- $Color : int
- 
                    The color value. 
Return values
boolloadImageFile()
Load image file.
    private
                    loadImageFile(string $Filename) : GdImage
    Parameters
- $Filename : string
- 
                    The image filename. 
Tags
Return values
GdImagereleaseBrush()
Release brush image.
    private
                    releaseBrush() : static
    Return values
staticreleaseImage()
Release resource image.
    private
                    releaseImage() : static
    Return values
staticstructurePolygon()
Return an instance with calculation draw polygon.
    private
                    structurePolygon(array<string, mixed> &$Polygon) : static
    Parameters
- $Polygon : array<string, mixed>
- 
                    The draw polygon. 
Return values
staticstructureTtf()
Return an instance with structure TTF.
    private
                    structureTtf(array<string, mixed> &$Ttf) : static
    Parameters
- $Ttf : array<string, mixed>
- 
                    The TTF.