PHP Steganography

Image implements MediumInterface

AbstractYes

Image rappresentation of a medium

Tags
author

Sebastiano Racca [email protected]

Table of Contents

Interfaces

MediumInterface

Properties

$height  : int
$img  : GdImage
$mimeType  : string
$path  : string
$type  : int
$width  : int

Methods

__construct()  : mixed
Medium Constructor.
__destruct()  : mixed
colorAllocate()  : RGBColor
Allocate a color for an image.
getColorAt()  : RGBColor
Returns the index of the color of a pixel.
getHeight()  : int
Returns the heigth in bytes of the medium.
getMimetype()  : string
getPath()  : string
Returns the path of the medium.
getType()  : int
getWidth()  : int
Returns the width in bytes of the medium.
saveToPath()  : void
Saves the medium to the specified path.
setPixel()  : void
Sets a single pixel.
createImage()  : GdImage
getImage()  : GdImage
loadImageInfo()  : void

Properties

$mimeType

private string $mimeType

Methods

__construct()

Medium Constructor.

public __construct(string $path) : mixed
Parameters
$path : string

The path to the medium.

__destruct()

public __destruct() : mixed

getColorAt()

Returns the index of the color of a pixel.

public getColorAt(Pixel $pixel) : RGBColor
Parameters
$pixel : Pixel

The pixel.

Return values
RGBColor

The color.

getHeight()

Returns the heigth in bytes of the medium.

public getHeight() : int
Return values
int

The heigth.

getMimetype()

public getMimetype() : string
Return values
string

getPath()

Returns the path of the medium.

public getPath() : string
Return values
string

The path.

getType()

public getType() : int
Return values
int

getWidth()

Returns the width in bytes of the medium.

public getWidth() : int
Return values
int

The width.

saveToPath()

Saves the medium to the specified path.

public abstract saveToPath(string $path) : void
Parameters
$path : string

The path.

createImage()

protected abstract createImage() : GdImage
Return values
GdImage

getImage()

protected getImage() : GdImage
Return values
GdImage

loadImageInfo()

private loadImageInfo() : void

        
On this page

Search results