EllipseShape
        
        extends AbstractShape
    
    
            
            in package
            
        
    
    
    
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
- $height : int
- Height of ellipse in pixels
- $width : int
- Width of ellipse in pixels
Methods
- __construct() : mixed
- Create new ellipse instance
- applyToImage() : bool
- Draw ellipse instance on given image
- 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
    
    
    
    
$height
Height of ellipse in pixels
    public
        int
    $height
     = 100
    
    
    
    
$width
Width of ellipse in pixels
    public
        int
    $width
     = 100
    
    
    
    
Methods
__construct()
Create new ellipse instance
    public
                    __construct([int $width = null ][, int $height = null ]) : mixed
    Parameters
- $width : int = null
- $height : int = null
applyToImage()
Draw ellipse instance on given image
    public
                    applyToImage(Image $image[, int $x = 0 ][, int $y = 0 ]) : bool
    Parameters
- $image : Image
- $x : int = 0
- $y : 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