API - XOOPS 2.5.11 Beta 2
By monxoops.fr
PaletteImage Class Reference
Inheritance diagram for PaletteImage:
Collaboration diagram for PaletteImage:

Public Member Functions

 doCreate ($width, $height)
 
 isTrueColor ()
 
 asPalette ($nColors=255, $dither=null, $matchPalette=true)
 
 asTrueColor ()
 
 getChannels ()
 
 copyNoAlpha ()
 
- Public Member Functions inherited from Image
 __construct ($handle)
 
 __destruct ()
 
 destroy ()
 
 getHandle ()
 
 isValid ()
 
 releaseHandle ()
 
 saveToFile ($uri)
 
 asString ($format)
 
 output ($format)
 
 getWidth ()
 
 getHeight ()
 
 allocateColor ($R, $G=null, $B=null)
 
 isTransparent ()
 
 getTransparentColor ()
 
 setTransparentColor ($color)
 
 getTransparentColorRGB ()
 
 getRGBAt ($x, $y)
 
 setRGBAt ($x, $y, $color)
 
 getColorRGB ($colorIndex)
 
 getColorAt ($x, $y)
 
 setColorAt ($x, $y, $color)
 
 getClosestColor ($R, $G=null, $B=null)
 
 getExactColor ($R, $G=null, $B=null)
 
 copyTransparencyFrom ($sourceImage, $fill=true)
 
 fill ($x, $y, $color)
 
 getMask ()
 
 resize ($width=null, $height=null, $fit='inside', $scale='any')
 
 resizeDown ($width=null, $height=null, $fit='inside')
 
 resizeUp ($width=null, $height=null, $fit='inside')
 
 rotate ($angle, $bgColor=null, $ignoreTransparent=true)
 
 merge ($overlay, $left=0, $top=0, $pct=100)
 
 resizeCanvas ($width, $height, $pos_x, $pos_y, $bg_color=null, $scale='any', $merge=false)
 
 roundCorners ($radius, $color=null, $smoothness=2, $corners=255)
 
 applyMask ($mask, $left=0, $top=0)
 
 applyFilter ($filter, $arg1=null, $arg2=null, $arg3=null, $arg4=null)
 
 applyConvolution ($matrix, $div, $offset)
 
 crop ($left=0, $top=0, $width='100%', $height='100%')
 
 autoCrop ($margin=0, $rgb_threshold=0, $pixel_cutoff=1, $base_color=null)
 
 asNegative ()
 
 asGrayscale ()
 
 mirror ()
 
 unsharp ($amount, $radius, $threshold)
 
 flip ()
 
 correctGamma ($inputGamma, $outputGamma)
 
 addNoise ($amount, $type)
 
 __call ($name, $args)
 
 __toString ()
 
 copy ()
 
 copyTo ($dest, $left=0, $top=0)
 
 getCanvas ()
 
 isTrueColor ()
 
 asTrueColor ()
 
 asPalette ($nColors=255, $dither=null, $matchPalette=true)
 
 getChannels ()
 
 copyNoAlpha ()
 
 __sleep ()
 
 __wakeup ()
 

Static Public Member Functions

static create ($width, $height)
 

Protected Member Functions

 copyAsNew ($trueColor=false)
 
- Protected Member Functions inherited from Image
 writeHeader ($name, $data)
 
 getOperation ($name)
 

Additional Inherited Members

- Protected Attributes inherited from Image
 $handle = null
 
 $handleReleased = false
 
 $canvas = null
 
 $sdata = null
 

Member Function Documentation

◆ asPalette()

asPalette (   $nColors = 255,
  $dither = null,
  $matchPalette = true 
)

(non-PHPdoc)

See also
\WideImage\ImageasPalette($nColors, $dither, $matchPalette)

Reimplemented from Image.

◆ asTrueColor()

asTrueColor ( )

(non-PHPdoc)

See also
\WideImage\ImageasTrueColor()

Reimplemented from Image.

◆ copyAsNew()

copyAsNew (   $trueColor = false)
protected

Returns a copy of the image

Parameters
$trueColorTrue if the new image should be truecolor
Returns
\WideImage\Image

◆ copyNoAlpha()

copyNoAlpha ( )

(non-PHPdoc)

See also
\WideImage\ImagecopyNoAlpha()

Reimplemented from Image.

◆ create()

static create (   $width,
  $height 
)
static

Create a palette image

Parameters
int$width
int$height
Returns
\WideImage\PaletteImage
Here is the caller graph for this function:

◆ doCreate()

doCreate (   $width,
  $height 
)

◆ getChannels()

getChannels ( )

(non-PHPdoc)

See also
\WideImage\ImagegetChannels()

Reimplemented from Image.

◆ isTrueColor()

isTrueColor ( )

(non-PHPdoc)

See also
\WideImage\ImageisTrueColor()

Reimplemented from Image.


The documentation for this class was generated from the following file: