org.hd.d.pg2k.svrCore.mediahandler
Class bmp

java.lang.Object
  extended by org.hd.d.pg2k.svrCore.MIME.AbstractHandler
      extended by org.hd.d.pg2k.svrCore.MIME.AbstractImageHandler
          extended by org.hd.d.pg2k.svrCore.mediahandler.bmp
All Implemented Interfaces:
Handler

public final class bmp
extends AbstractImageHandler

Basic handler for BMP file (MIME type image/bmp). Mainly relies on JAI/IIO support for encode/decode.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.hd.d.pg2k.svrCore.MIME.Handler
Handler.ThumbnailParams
 
Field Summary
private static Handler.ThumbnailParams thumbnailParams
          Gather together thumbnail parameters.
 
Fields inherited from interface org.hd.d.pg2k.svrCore.MIME.Handler
TAG_NAME_METADATA_TOP
 
Constructor Summary
bmp()
           
 
Method Summary
protected  int _reduceColoursQualityThreshold()
          Guide colour-reduction to reduce quality and size of lossless image formats.
 boolean canMakeThumbnails()
          Returns true if this can make thumbnail/sample exhibits for this type.
 ExhibitMIME.ExhibitTypeParameters getExhibitType()
          Get internal type of ExhibitMIME type; never null.
 Handler.ThumbnailParams getThumbnailParams()
          Get ThumbnailParameters for BMP handler.
 
Methods inherited from class org.hd.d.pg2k.svrCore.MIME.AbstractImageHandler
_getEncoder, _trimMetadata, decodeImage, estimateWorkingMemoryToCreateThumbnails, extractSpecificImageMetaData, get2DImageDimensions, getMetadata, makeImageBinary, makeSizeConstrainedEncodedImage, makeThumbnailImage, makeThumbnails, makeThumbnails
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

thumbnailParams

private static final Handler.ThumbnailParams thumbnailParams
Gather together thumbnail parameters.

Constructor Detail

bmp

public bmp()
Method Detail

getExhibitType

public ExhibitMIME.ExhibitTypeParameters getExhibitType()
Get internal type of ExhibitMIME type; never null.


canMakeThumbnails

public boolean canMakeThumbnails()
Returns true if this can make thumbnail/sample exhibits for this type. Returns true because we should be able to make BMP thumbnails with the built-in imageIO support from JDK1.5 onwards.

Specified by:
canMakeThumbnails in interface Handler
Overrides:
canMakeThumbnails in class AbstractImageHandler

getThumbnailParams

public Handler.ThumbnailParams getThumbnailParams()
Get ThumbnailParameters for BMP handler.

Specified by:
getThumbnailParams in interface Handler
Overrides:
getThumbnailParams in class AbstractHandler

_reduceColoursQualityThreshold

protected int _reduceColoursQualityThreshold()
Description copied from class: AbstractImageHandler
Guide colour-reduction to reduce quality and size of lossless image formats. Defaults to -1, implying that the image format is a lossy format for which the ImageWriteParam.setCompressionQuality() mechanism is enough to trade encoded image size for quality.

Else this is a positive value n, typically 8 or 24, which sets a quality level at/below which the number of colours in the image is reduced to (capped at) 2^n, and the image representation may be tweaked too (eg converted to a palette/indexed format) as a strong hint to the encoder.

Overrides:
_reduceColoursQualityThreshold in class AbstractImageHandler

DHD Multimedia Gallery V1.53.0

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