PHP Class Gui\Components\Canvas

It is a visual component for canvas
Since: 0.1
Author: Gabriel Couto @gabrielrcouto
Inheritance: extends VisualObject
Datei anzeigen Open project: gabrielrcouto/php-gui

Protected Properties

Property Type Description
$lazarusClass string The lazarus class as string

Public Methods

Method Description
putImageData ( $pixels )
setPixel ( integer $x, $y, string $color ) : self Sets the pixel color
setSize ( integer $width, integer $height ) : self Sets the canvas size

Method Details

putImageData() public method

public putImageData ( $pixels )

setPixel() public method

Sets the pixel color
public setPixel ( integer $x, $y, string $color ) : self
$x integer
$color string
return self

setSize() public method

Sets the canvas size
public setSize ( integer $width, integer $height ) : self
$width integer
$height integer
return self

Property Details

$lazarusClass protected_oe property

The lazarus class as string
protected string $lazarusClass
return string