org.hd.d.pg2k.webSvr.bgImg
Class BgImageUtils.SimpleUniformNoiseMonoImageGen

java.lang.Object
  extended by org.hd.d.pg2k.webSvr.bgImg.BgImageUtils.SimpleUniformNoiseMonoImageGen
All Implemented Interfaces:
BgImageUtils.DynImageGen
Enclosing class:
BgImageUtils

public static final class BgImageUtils.SimpleUniformNoiseMonoImageGen
extends java.lang.Object
implements BgImageUtils.DynImageGen

Simple monochrome random-pixel image. Each pixel is independently chosen.


Constructor Summary
BgImageUtils.SimpleUniformNoiseMonoImageGen()
           
 
Method Summary
 java.awt.image.BufferedImage createImage(int seed)
          Generate simple random monochrome BufferedImage with values uniformly distributed between max and min Y.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BgImageUtils.SimpleUniformNoiseMonoImageGen

public BgImageUtils.SimpleUniformNoiseMonoImageGen()
Method Detail

createImage

public java.awt.image.BufferedImage createImage(int seed)
Generate simple random monochrome BufferedImage with values uniformly distributed between max and min Y. This routine may alter the nature of the output based on the seed, which should ideally be distributed evenly across all possible values, like a hashCode.

In this implementation, the lowest-order bit selects between "fast" and "good" random number sources.

Specified by:
createImage in interface BgImageUtils.DynImageGen

DHD Multimedia Gallery V1.53.0

Copyright (c) 1996-2009, Damon Hart-Davis. All rights reserved.