Class RemoveTransparentShuffleOverlay

  • All Implemented Interfaces:
    PixelCoordinateOverlay

    public class RemoveTransparentShuffleOverlay
    extends ShuffleOverlay

    This class returns Pixels of the underlying Bitmap in a random order determined by the seed that is given to its constructor.

    It will only return Pixels with an alpha value greater than 0.

    • Constructor Detail

      • RemoveTransparentShuffleOverlay

        public RemoveTransparentShuffleOverlay​(java.awt.image.BufferedImage bufferedImage,
                                               long seed)
                                        throws UnsupportedImageTypeException

        Creates an Overlay that returns Pixels of the underlying Bitmap in a random order determined by the seed that is given to its constructor.

        It will only return Pixels with an alpha value greater than 0.

        Parameters:
        bufferedImage - BufferedImage to represent the pixels of
        seed - Long to be used to affect the randomization of pixelorder.
        Throws:
        UnsupportedImageTypeException - if the images type is not supported by this overlay
    • Method Detail

      • initOverlay

        protected void initOverlay()
        Description copied from class: ShuffleOverlay

        Initialization of the overlay. This process is separate from the randomization of the overlay.

        Overrides:
        initOverlay in class ShuffleOverlay