| Package | de.popforge.imageprocessing.filters.convolution |
| Class | public final class QuickNormalMap |
| Inheritance | QuickNormalMap Convolution NativeFilter |
Instead of having to calculate this on a pixel level there is a solution using a ConvolutionMatrix for the x direction and another one for the y direction. Using the ConvolutionMatrix replaces a lot of getPixel() calls and makes it possible to use this filter at runtime.
This approach comes from Ralph Hauwert.
Supported formats:
var filter: QuickNormalMap = new QuickNormalMap(); var image: Image = Image.fromBitmapData( bumpMap, ImageFormat.RGB ); filter.apply( image );
See also
| Method | Defined by | ||
|---|---|---|---|
|
Creates a new QuickNormalMap object.
| QuickNormalMap | ||
|
Applies the filter to the given Image object.
| QuickNormalMap | ||
|
toString():String
Builds and returns a string containing the name of the class.
| QuickNormalMap | ||
| Constant | Defined by | ||
|---|---|---|---|
| COMPONENT_X : int = 1 [static]
The value that a displacement map should use as the x component.
| QuickNormalMap | ||
| COMPONENT_Y : int = 2 [static]
The value that a displacement map should use as the y component.
| QuickNormalMap | ||
| QuickNormalMap | () | constructor |
public function QuickNormalMap()Creates a new QuickNormalMap object.
| apply | () | method |
public override function apply(image:Image):voidApplies the filter to the given Image object.
Parametersimage:Image — The image that will be manipulated.
|
| toString | () | method |
public override function toString():StringBuilds and returns a string containing the name of the class.
ReturnsString — A string containing the name of the class.
|
| COMPONENT_X | constant |
public static const COMPONENT_X:int = 1The value that a displacement map should use as the x component.
| COMPONENT_Y | constant |
public static const COMPONENT_Y:int = 2The value that a displacement map should use as the y component.