Packagede.popforge.imageprocessing.geom.interpolation
Interfacepublic interface IInterpolation

An interpolation method is able to return a new color value based on given channel, x and y position.



Public Methods
 MethodDefined by
  
getColor(x:Number, y:Number):int
Calculates a new color based on given x and y position.
IInterpolation
  
setChannel(channel:BitmapData):void
Changes the active channel that the interpolation method uses.
IInterpolation
Method detail
getColor()method
public function getColor(x:Number, y:Number):int

Calculates a new color based on given x and y position.

Parameters
x:Number — An x coordinate as a floating point number.
 
y:Number — A y coordinate as a floatng point number.

Returns
int — A new color value in the range from 0x00 to 0xff.
setChannel()method 
public function setChannel(channel:BitmapData):void

Changes the active channel that the interpolation method uses.

Parameters
channel:BitmapData — The new channel the interpolation method will use when it calculates a new color value.