com.flexive.shared.media
Class FxImageMetadata

java.lang.Object
  extended by com.flexive.shared.media.FxMetadata
      extended by com.flexive.shared.media.FxImageMetadata
Direct Known Subclasses:
FxImageMetadataImpl

public abstract class FxImageMetadata
extends FxMetadata

Metadata for images

Version:
$Rev: 2906 $
Author:
Markus Plesser (markus.plesser@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)

Nested Class Summary
 
Nested classes/interfaces inherited from class com.flexive.shared.media.FxMetadata
FxMetadata.FxMetadataItem
 
Constructor Summary
FxImageMetadata()
           
 
Method Summary
abstract  int getBitsPerPixel()
          Get the bits per pixel used (eg "24")
abstract  java.lang.String getColorType()
          Get the used color type (eg "RGB")
abstract  java.lang.String getCompressionAlgorithm()
          Get the compression algorithm used (eg "JPEG")
abstract  java.lang.String getFormat()
          Get the format (eg "JPEG")
abstract  java.lang.String getFormatDescription()
          Get a more descriptive name of the format (eg "JPEG (Joint Photographic Experts Group) Format")
abstract  int getHeight()
          Get the image height
abstract  java.awt.color.ICC_Profile getICC_Profile()
          Get the ICC profile if one is attached, else null
abstract  int getWidth()
          Get the image width
abstract  double getXResolution()
          Get the X-Resolution in DPI
abstract  double getYResolution()
          Get the Y-Resolution in DPI
abstract  boolean hasICC_Profile()
          Is an ICC profile attached to this image?
abstract  boolean isProgressive()
          Is this image progressive scan?
abstract  boolean isTransparent()
          Does the image use a transparent background?
abstract  boolean usePalette()
          Does the image use its own color palette?
 
Methods inherited from class com.flexive.shared.media.FxMetadata
asImageMetadata, getFilename, getMediaType, getMetadata, getMimeType, isAudioMetadata, isImageMetadata, isVideoMetadata, toXML, writeXMLTags
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FxImageMetadata

public FxImageMetadata()
Method Detail

getWidth

public abstract int getWidth()
Get the image width

Returns:
image width

getHeight

public abstract int getHeight()
Get the image height

Returns:
image height

getFormat

public abstract java.lang.String getFormat()
Get the format (eg "JPEG")

Returns:
format

getFormatDescription

public abstract java.lang.String getFormatDescription()
Get a more descriptive name of the format (eg "JPEG (Joint Photographic Experts Group) Format")

Returns:
long format

getCompressionAlgorithm

public abstract java.lang.String getCompressionAlgorithm()
Get the compression algorithm used (eg "JPEG")

Returns:
compression algorithm used

getXResolution

public abstract double getXResolution()
Get the X-Resolution in DPI

Returns:
X-Resolution in DPI

getYResolution

public abstract double getYResolution()
Get the Y-Resolution in DPI

Returns:
Y-Resolution in DPI

getColorType

public abstract java.lang.String getColorType()
Get the used color type (eg "RGB")

Returns:
used color type

usePalette

public abstract boolean usePalette()
Does the image use its own color palette?

Returns:
use own color palette?

getBitsPerPixel

public abstract int getBitsPerPixel()
Get the bits per pixel used (eg "24")

Returns:
bits per pixel used

isProgressive

public abstract boolean isProgressive()
Is this image progressive scan?

Returns:
progressive scan?

isTransparent

public abstract boolean isTransparent()
Does the image use a transparent background?

Returns:
transparency?

hasICC_Profile

public abstract boolean hasICC_Profile()
Is an ICC profile attached to this image?

Returns:
ICC profile attached?

getICC_Profile

public abstract java.awt.color.ICC_Profile getICC_Profile()
Get the ICC profile if one is attached, else null

Returns:
ICC profile if attached