texturesynthesis
Interface TextureSynthesizer

All Known Implementing Classes:
WangTileSynthesizer

public interface TextureSynthesizer

This interface describes texture synthesizing capabilities.

Author:
Aki Koskinen

Method Summary
 java.awt.Image generateTexture(java.awt.Image image, int width, int height)
          Synthesizes an image of given size from a sample image.
 java.lang.String getDescription()
          Returns a description about this texture synthesizer.
 java.lang.String getName()
          Returns the name of this texture synthesizer.
 javax.swing.JComponent getSettingsDialog()
          Returns a settings component for this texture synthesizer.
 

Method Detail

getName

java.lang.String getName()
Returns the name of this texture synthesizer.

Returns:
the name of this texture synthesizer.

getDescription

java.lang.String getDescription()
Returns a description about this texture synthesizer.

Returns:
a description about this texture synthesizer.

getSettingsDialog

javax.swing.JComponent getSettingsDialog()
Returns a settings component for this texture synthesizer. The settings component should include appropriate widgets for setting the parameters relevant to a specific texture synthesizer.

Returns:
a settings component.

generateTexture

java.awt.Image generateTexture(java.awt.Image image,
                               int width,
                               int height)
                               throws TextureSynthesizerException
Synthesizes an image of given size from a sample image.

Parameters:
image - the image that is used in the synthesis
width - the width of the synthesized image
height - the height of the synthesized image
Returns:
the synthesized image
Throws:
TextureSynthesizerException