PHP Steganography

Pixel
in package

Rappresents a Pixel inside a medium.

Tags
author

Sebastiano Racca [email protected]

Table of Contents

Properties

$x  : int
$y  : int

Methods

__construct()  : mixed
Pixel constructor.
getX()  : int
Returns the X coordinate of the pixel.
getY()  : int
Returns the Y coordinate of the pixel.
incrX()  : void
Increases the X coordinate
incrY()  : void
Increases the Y coordinate
setX()  : void
Sets the X coordinate.
setY()  : void
Sets the Y coordinate.

Properties

Methods

__construct()

Pixel constructor.

public __construct(int $x, int $y) : mixed
Parameters
$x : int

The X coordinate of the pixel

$y : int

The Y coordinate of the pixel

getX()

Returns the X coordinate of the pixel.

public getX() : int
Return values
int

The X.

getY()

Returns the Y coordinate of the pixel.

public getY() : int
Return values
int

The Y.

incrX()

Increases the X coordinate

public incrX([int $incr = 1 ]) : void
Parameters
$incr : int = 1

The increasing value (default is 1).

incrY()

Increases the Y coordinate

public incrY([int $incr = 1 ]) : void
Parameters
$incr : int = 1

The increasing value (default is 1).

setX()

Sets the X coordinate.

public setX(int $x) : void
Parameters
$x : int

The value of X.

setY()

Sets the Y coordinate.

public setY(int $y) : void
Parameters
$y : int

The value of Y.


        
On this page

Search results