Package steganography.image.overlays
Interface PixelCoordinateOverlay
-
- All Known Implementing Classes:
RemoveTransparentShuffleOverlay
,SequenceOverlay
,ShuffleOverlay
,TableOverlay
public interface PixelCoordinateOverlay
Classes that implement this interface should be able to return pixels of a given BufferedImage or similar image representation in an order independent from the coordinate system of the pixels (to act as an overlay).
They are meant to be used by encoding algorithms (BuffImgEncoder), so arranging and en- / decoding pixels are separate procedures.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
available()
Returns the number of remaining pixels (not yet returned by next())int
next()
Returns the next pixel value as an int (representing ARGB as its bytes), meaning the next pixel determined by the Overlay.void
setPixel(int value)
Sets the current pixel to the given value
-
-
-
Method Detail
-
next
int next() throws java.util.NoSuchElementException
Returns the next pixel value as an int (representing ARGB as its bytes), meaning the next pixel determined by the Overlay.- Returns:
- int representing the next pixel by the Overlay.
- Throws:
java.util.NoSuchElementException
- if there is no next pixel
-
setPixel
void setPixel(int value) throws java.util.NoSuchElementException
Sets the current pixel to the given value- Parameters:
value
- the value to set the current pixel to- Throws:
java.util.NoSuchElementException
- if setPixel() is called before the first call to next(). Or if setPixel() is called after the last call to next() produced a NoSuchElementException
-
available
int available()
Returns the number of remaining pixels (not yet returned by next())- Returns:
- number of remaining pixels
-
-