|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.hd.d.pg2k.webSvr.bgImg.BgImageUtils
public final class BgImageUtils
Supporting constants and classes for dynamic background images.
| Nested Class Summary | |
|---|---|
static interface |
BgImageUtils.DynImageGen
Functor/interface for dynamic background image generator. |
static class |
BgImageUtils.SimpleUniformMonoImageGen
Simple monochrome uniform colour image. |
static class |
BgImageUtils.SimpleUniformNoiseMonoImageGen
Simple monochrome random-pixel image. |
static class |
BgImageUtils.Sine2DColourImageGen
Makes 2D sine-plus-noise colour image. |
| Field Summary | |
|---|---|
static java.util.List<BgImageUtils.DynImageGen> |
allDynGens
Immutable List of instances all available basic DynImageGen; never null or empty. |
(package private) static int |
DYN_MAP_IMG_TYPE
Type of background image that we dynamically generate. |
static int |
dynBgImgEdgePixels
We chose the background image dimensions to match that of a standard thumbnail. |
static int |
dynBgImgMaxBytes
The maximum size of image produced (in bytes) is that of a standard thumbnail. |
static java.lang.String |
dynBgImgRRUL
URI of dynamic background-image JPEG; suffix should match MIME type. |
(package private) static ExhibitMIME.ExhibitTypeParameters |
ETP
ExhibitMIME entry for the chosen output type. |
(package private) static int |
MAX_Y
Maximum brightness (assuming 0 is black, 255 is white). |
(package private) static int |
MIN_Y
Minimum brightness (assuming 0 is black, 255 is white). |
| Constructor Summary | |
|---|---|
BgImageUtils()
|
|
| Method Summary | |
|---|---|
(package private) static byte[] |
generateEncodedImage(java.awt.image.BufferedImage bi)
Convert BufferedImage to byte[]-encoded JPEG no larger than dynBgImgMaxBytes bytes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final int MAX_Y
static final int MIN_Y
static final int DYN_MAP_IMG_TYPE
static final ExhibitMIME.ExhibitTypeParameters ETP
public static final java.lang.String dynBgImgRRUL
public static final int dynBgImgEdgePixels
public static final int dynBgImgMaxBytes
public static final java.util.List<BgImageUtils.DynImageGen> allDynGens
| Constructor Detail |
|---|
public BgImageUtils()
| Method Detail |
|---|
static byte[] generateEncodedImage(java.awt.image.BufferedImage bi)
throws java.io.IOException
java.io.IOException
|
DHD Multimedia Gallery V1.53.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||