org.apache.batik.ext.awt

Class ColorSpaceHintKey

public final class ColorSpaceHintKey extends Key

TranscodingHint as to what the destination of the drawing is.
Field Summary
static StringPROPERTY_COLORSPACE
static ObjectVALUE_COLORSPACE_AGREY
Notice to source that we only want Greyscale data with an alpha channel.
static ObjectVALUE_COLORSPACE_ALPHA
Notice to source that we only want an alpha channel.
static ObjectVALUE_COLORSPACE_ALPHA_CONVERT
Notice to source that we only want an alpha channel.
static ObjectVALUE_COLORSPACE_ARGB
Notice to source that we prefer an Alpha RGB Image.
static ObjectVALUE_COLORSPACE_GREY
Notice to source that we only want Greyscale data (no Alpha).
static ObjectVALUE_COLORSPACE_RGB
Notice to source that we will not use Alpha Channel but we still want RGB data.
Method Summary
booleanisCompatibleValue(Object val)

Field Detail

PROPERTY_COLORSPACE

public static final String PROPERTY_COLORSPACE

VALUE_COLORSPACE_AGREY

public static Object VALUE_COLORSPACE_AGREY
Notice to source that we only want Greyscale data with an alpha channel.

VALUE_COLORSPACE_ALPHA

public static Object VALUE_COLORSPACE_ALPHA
Notice to source that we only want an alpha channel. The source should simply render alpha (no conversion)

VALUE_COLORSPACE_ALPHA_CONVERT

public static Object VALUE_COLORSPACE_ALPHA_CONVERT
Notice to source that we only want an alpha channel. The source should follow the SVG spec for how to convert ARGB, RGB, Grey and AGrey to just an Alpha channel.

VALUE_COLORSPACE_ARGB

public static Object VALUE_COLORSPACE_ARGB
Notice to source that we prefer an Alpha RGB Image.

VALUE_COLORSPACE_GREY

public static Object VALUE_COLORSPACE_GREY
Notice to source that we only want Greyscale data (no Alpha).

VALUE_COLORSPACE_RGB

public static Object VALUE_COLORSPACE_RGB
Notice to source that we will not use Alpha Channel but we still want RGB data.

Method Detail

isCompatibleValue

public boolean isCompatibleValue(Object val)
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.