AbstractShape
    
            
            in package
            
        
    
    
    
AbstractYes
Table of Contents
Properties
- $background : string
- Background color of shape
- $border_color : string
- Border color of current shape
- $border_width : int
- Border width of shape
Methods
- applyToImage() : bool
- Draws shape to given image on given position
- background() : void
- Set text to be written
- border() : void
- Set border width and color of current shape
- hasBorder() : bool
- Determines if current shape has border
Properties
$background
Background color of shape
    public
        string
    $background
    
    
    
    
    
$border_color
Border color of current shape
    public
        string
    $border_color
    
    
    
    
    
$border_width
Border width of shape
    public
        int
    $border_width
     = 0
    
    
    
    
Methods
applyToImage()
Draws shape to given image on given position
    public
    abstract                applyToImage(Image $image[, int $posx = 0 ][, int $posy = 0 ]) : bool
    Parameters
- $image : Image
- $posx : int = 0
- $posy : int = 0
Return values
boolbackground()
Set text to be written
    public
                    background(mixed $color) : void
    Parameters
- $color : mixed
border()
Set border width and color of current shape
    public
                    border(int $width[, string $color = null ]) : void
    Parameters
- $width : int
- $color : string = null
hasBorder()
Determines if current shape has border
    public
                    hasBorder() : bool