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规范给出样品的色度量化表,表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 然后夹紧范围1。32767(或1。255如果
forceBaseline 是真的)。
|
int[] |
getTable()
作为
int s自然数组返回一份当前量化表(没有锯齿)阶。
|
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自然数组返回一份当前量化表(没有锯齿)阶。
public JPEGQTable getScaledInstance(float scaleFactor, boolean forceBaseline)
scaleFactor
然后夹紧范围1。32767(或1。255如果
forceBaseline
是真的)。
对scaleFactor
小于1的值趋于完善的表的质量水平,和大于1的值降低表的质量水平。
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.