Jaguar - PHP Graphic Library
  • Namespace
  • Class
  • Tree

Namespaces

  • Jaguar
    • Action
      • Blur
      • Color
      • Pixelate
      • Preset
    • Color
    • Drawable
      • Border
      • Style
      • Text
    • Exception
    • Factory
    • Format
    • Gradient

Classes

  • AbstractDrawable
  • AbstractStyledDrawable
  • Arc
  • Border
  • FilledDrawable
  • Line
  • Pixel
  • Polygon
  • Rectangle
  • Text

Interfaces

  • DrawableInterface
  • StyleInterface

Class Pixel

Jaguar\Drawable\AbstractDrawable implements Jaguar\Drawable\DrawableInterface
Extended by Jaguar\Drawable\AbstractStyledDrawable
Extended by Jaguar\Drawable\Pixel
Namespace: Jaguar\Drawable
Located at Jaguar/Drawable/Pixel.php

Methods summary

public
# __construct( Jaguar\Coordinate $coordinate = null, Jaguar\Color\ColorInterface $color = null )

Construct new pixel object

Construct new pixel object

Parameters

$coordinate
Jaguar\Coordinate
$coordinate
$color
Jaguar\Color\ColorInterface
$color

Overrides

Jaguar\Drawable\AbstractStyledDrawable::__construct
public Jaguar\Drawable\Pixel
# setCoordinate( Jaguar\Coordinate $coordinate )

Set the pixel's coordinate

Set the pixel's coordinate

Parameters

$coordinate
Jaguar\Coordinate
$coordinate

Returns

Jaguar\Drawable\Pixel
public Jaguar\Coordinate
# getCoordinate( )

Get pixel's coordinate

Get pixel's coordinate

Returns

Jaguar\Coordinate
public
# equals( mixed $other )

Check that the current object which implements this interfcae is equal to another object from the same type

Check that the current object which implements this interfcae is equal to another object from the same type

Parameters

$other
mixed
$other

Throws

InvalidArgumentException
if the passed param type is invalid

Overrides

Jaguar\Drawable\AbstractStyledDrawable::equals
public string
# __toString( )

Returns a string representation for this pixel object

Returns a string representation for this pixel object

Returns

string
public
# __clone( )

Clone Pixel

Clone Pixel

Overrides

Jaguar\Drawable\AbstractDrawable::__clone

Methods inherited from Jaguar\Drawable\AbstractStyledDrawable

draw(), getLineThickness(), setLineThickness()

Methods inherited from Jaguar\Drawable\AbstractDrawable

getColor(), setColor()

Magic methods summary

Jaguar - PHP Graphic Library API documentation generated by ApiGen 2.8.0