public class IDEStructureParameter extends java.lang.Object implements Streamable
Modifier and Type | Field and Description |
---|---|
static byte |
COLOR_MODEL_CMYK
The CMYK color model used by the IDE Structure parameter
|
static byte |
COLOR_MODEL_RGB
The RGB color model used by the IDE Structure parameter
|
static byte |
COLOR_MODEL_YCBCR
The YCbCr color model used by the IDE Structure parameter
|
static byte |
COLOR_MODEL_YCRCB
The YCrCb color model used by the IDE Structure parameter
|
Constructor and Description |
---|
IDEStructureParameter()
Creates a new IDE Structure parameter.
|
Modifier and Type | Method and Description |
---|---|
void |
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 |
setDefaultCMYKColorModel()
Establishes the parameter values for the normal CMYK 32bit color model.
|
void |
setDefaultRGBColorModel()
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
|
void |
writeToStream(java.io.OutputStream os)
DataStream objects must implement the writeToStream()
method to write its data to the given OutputStream
|
public static final byte COLOR_MODEL_RGB
public static final byte COLOR_MODEL_YCRCB
public static final byte COLOR_MODEL_CMYK
public static final byte COLOR_MODEL_YCBCR
public IDEStructureParameter()
public void setColorModel(byte color)
color
- the IDE color model.public void setDefaultRGBColorModel()
public void setDefaultCMYKColorModel()
public void setUniformBitsPerComponent(int numComponents, int bitsPerComponent)
numComponents
- bitsPerComponent
- public void setBitsPerComponent(int[] bitsPerComponent)
bitsPerComponent
- thepublic void setSubtractive(boolean subtractive)
subtractive
- true for subtractive mode, false for additive modepublic void writeToStream(java.io.OutputStream os) throws java.io.IOException
writeToStream
in interface Streamable
os
- the outputsteam streamjava.io.IOException
- an I/O exception of some sort has occurred.Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.