org.jvnet.substance.painter.noise
Class NoiseFactory

java.lang.Object
  extended by org.jvnet.substance.painter.noise.NoiseFactory

public class NoiseFactory
extends java.lang.Object

Factory for creating noise images. This class is part of officially supported API.

Author:
Kirill Grouchnikov.

Constructor Summary
NoiseFactory()
           
 
Method Summary
static java.awt.image.BufferedImage getNoiseImage(SubstanceTheme theme1, SubstanceTheme theme2, int width, int height, double xFactor, double yFactor, boolean hasConstantZ, NoiseFilter noiseFilter, boolean toBlur, boolean isPreview)
          Returns a noise image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoiseFactory

public NoiseFactory()
Method Detail

getNoiseImage

public static java.awt.image.BufferedImage getNoiseImage(SubstanceTheme theme1,
                                                         SubstanceTheme theme2,
                                                         int width,
                                                         int height,
                                                         double xFactor,
                                                         double yFactor,
                                                         boolean hasConstantZ,
                                                         NoiseFilter noiseFilter,
                                                         boolean toBlur,
                                                         boolean isPreview)
Returns a noise image.

Parameters:
theme1 - The first theme to use for rendering the image.
theme2 - The second theme to use for rendering the image.
width - Image width.
height - Image height.
xFactor - X stretch factor.
yFactor - Y stretch factor.
hasConstantZ - Indication whether the Z is constant.
noiseFilter - Noise filter to apply.
toBlur - Indication whether the resulting image should be blurred.
isPreview - Indication whether the image is in preview mode.
Returns:
Noise image.