Package org.apache.fop.afp.ioca
Class IDEStructureParameter
java.lang.Object
org.apache.fop.afp.ioca.IDEStructureParameter
- All Implemented Interfaces:
Streamable
This class represents the IOCA IDE Structure parameter (X'9B').
-
Field Summary
Modifier and TypeFieldDescriptionstatic final byte
The CMYK color model used by the IDE Structure parameterstatic final byte
The RGB color model used by the IDE Structure parameterstatic final byte
The YCbCr color model used by the IDE Structure parameterstatic final byte
The YCrCb color model used by the IDE Structure parameter -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setBitsPerComponent
(int[] bitsPerComponent) Sets the array for the bits/IDE, one entry per component.void
setColorModel
(byte color) Sets the image IDE color model.void
Establishes the parameter values for the normal CMYK 32bit color model.void
Establishes the parameter values for the normal RGB 24bit color model.void
setSubtractive
(boolean subtractive) Set either additive or subtractive mode (used for ASFLAG).void
setUniformBitsPerComponent
(int numComponents, int bitsPerComponent) Sets uniform bits per component.void
DataStream objects must implement the writeToStream() method to write its data to the given OutputStream
-
Field Details
-
COLOR_MODEL_RGB
public static final byte COLOR_MODEL_RGBThe RGB color model used by the IDE Structure parameter- See Also:
-
COLOR_MODEL_YCRCB
public static final byte COLOR_MODEL_YCRCBThe YCrCb color model used by the IDE Structure parameter- See Also:
-
COLOR_MODEL_CMYK
public static final byte COLOR_MODEL_CMYKThe CMYK color model used by the IDE Structure parameter- See Also:
-
COLOR_MODEL_YCBCR
public static final byte COLOR_MODEL_YCBCRThe YCbCr color model used by the IDE Structure parameter- See Also:
-
-
Constructor Details
-
IDEStructureParameter
public IDEStructureParameter()Creates a new IDE Structure parameter. The values are initialized for a bi-level image using the RGB color model.
-
-
Method Details
-
setColorModel
public void setColorModel(byte color) Sets the image IDE color model.- Parameters:
color
- the IDE color model.
-
setDefaultRGBColorModel
public void setDefaultRGBColorModel()Establishes the parameter values for the normal RGB 24bit color model. -
setDefaultCMYKColorModel
public void setDefaultCMYKColorModel()Establishes the parameter values for the normal CMYK 32bit color model. -
setUniformBitsPerComponent
public void setUniformBitsPerComponent(int numComponents, int bitsPerComponent) Sets uniform bits per component.- Parameters:
numComponents
- the number of componentsbitsPerComponent
- number of bits per component
-
setBitsPerComponent
public void setBitsPerComponent(int[] bitsPerComponent) Sets the array for the bits/IDE, one entry per component.- Parameters:
bitsPerComponent
- the
-
setSubtractive
public void setSubtractive(boolean subtractive) Set either additive or subtractive mode (used for ASFLAG).- Parameters:
subtractive
- true for subtractive mode, false for additive mode
-
writeToStream
DataStream objects must implement the writeToStream() method to write its data to the given OutputStream- Specified by:
writeToStream
in interfaceStreamable
- Parameters:
os
- the outputsteam stream- Throws:
IOException
- an I/O exception of some sort has occurred.
-