public class JPEGQTable extends Object
有关标准JPEG插件的操作的更多信息,请参阅JPEG metadata format specification and usage notes
| Modifier and Type | Field and Description |
|---|---|
static JPEGQTable |
K1Div2Luminance
JPEG规范中给出的采样亮度量化表,表K.1,所有元素除以2。
|
static JPEGQTable |
K1Luminance
JPEG规范中给出的样本亮度量化表,表K.1。
|
static JPEGQTable |
K2Chrominance
JPEG规范中给出的样本色度量化表,表K.2。
|
static JPEGQTable |
K2Div2Chrominance
JPEG规范中给出的样本色度量化表,表K.1,所有元素除以2。
|
| Constructor and Description |
|---|
JPEGQTable(int[] table)
从参数构造一个量化表,它必须包含自然顺序的64个元素(不是zig-zag顺序)。
|
| Modifier and Type | Method and Description |
|---|---|
JPEGQTable |
getScaledInstance(float scaleFactor, boolean forceBaseline)
返回一个新的量化表,其中值乘以
scaleFactor ,然后钳位到范围
forceBaseline (如果
forceBaseline为真,则为1..255)。
|
int[] |
getTable()
返回当前量化表的副本作为阵列
int S IN天然(非Z字形)的顺序。
|
String |
toString()
返回
String表示此量化表。
|
public static final JPEGQTable K1Luminance
K1Div2Luminance
public static final JPEGQTable K1Div2Luminance
K1Luminance
public static final JPEGQTable K2Chrominance
K2Div2Chrominance
public static final JPEGQTable K2Div2Chrominance
K2Chrominance
public JPEGQTable(int[] table)
table - 量化表,作为
int数组。
IllegalArgumentException - 如果
table是
null或
table.length不等于64。
public int[] getTable()
int S IN天然(非Z字形)的顺序。
public JPEGQTable getScaledInstance(float scaleFactor, boolean forceBaseline)
scaleFactor ,然后钳位到范围forceBaseline (如果forceBaseline为真,则为1..255)。
scaleFactor小于1的值倾向于提高表的质量水平,而值大于1.0会降低表的质量水平。
scaleFactor - 表的乘数。
forceBaseline - 如果
true ,值将被钳位到范围1..255
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.