trex.Filter
Class  TRexFilterRGB
java.lang.Object
  |
  +--java.awt.image.ImageFilter
        |
        +--java.awt.image.RGBImageFilter
              |
              +--trex.Filter.TRexFilterRGB
- All Implemented Interfaces: 
- Cloneable, ImageConsumer
- Direct Known Subclasses: 
- StegoAlgoLSB.LSBDecryptFilter, StegoAlgoLSB.LSBEncryptFilter
- public abstract class TRexFilterRGB- extends RGBImageFilter
This is the base class for all encrypt and decrypt filters.
 Filters have to implement the filterRGB() function as defined
 in RGBImageFilter.
- Version:
- $Revision: 1.11 $
- Author:
- Bastian Friedrich <bastian@bastian-friedrich.de>
| Field Summary | 
| protected  byte[] | dataData to hide as a byte array.
 | 
| protected  int | hObjective picture's size.
 | 
| protected  int | wObjective picture's size.
 | 
 
 
 
 
 
| Method Summary | 
|  String | getData()Return contained data as a
 String. | 
 
 
 
 
data
protected byte[] data
- Data to hide as a byte array. Is converted to a Stringby getData().
 
- See Also:
- getData()
 
w
protected int w
- Objective picture's size.
 This is needed for calculating the pixel's absoulte position in the
 one-dimensional array.
 
 
h
protected int h
- Objective picture's size.
 This is needed for calculating the pixel's absoulte position in the
 one-dimensional array.
 
 
TRexFilterRGB
public TRexFilterRGB()
- Default constructor.
 Initializes data fields with null values. Should never be used.
 
TRexFilterRGB
public TRexFilterRGB(String data,
                     int w,
                     int h)
- Creates a new filter.
 
- Parameters:
- data- Data to hide
- w- Picture's width
- h- Picture's height
getData
public String getData()
               throws DecryptImpossibleException
- Return contained data as a String.
 
- 
- Returns:
- Contained data.
- DecryptImpossibleException