ImageCompressionOptions
遗产: java.lang.Object
public class ImageCompressionOptions
类包含图像压缩的设置选项。
构造函数
构造函数 | 描述 |
---|---|
ImageCompressionOptions() |
方法
方法 | 描述 |
---|---|
equals(Object arg0) | |
getClass() | |
getEncoding() | 获取或设置用于存储图像的编码。 |
getImageQuality() | 使用 CompressIamges 标志时指定图像压缩级别。 |
getMaxResolution() | 指定图像的最大分辨率。 |
getResizeImages() | 如果此标志设置为 true 且 CompressImages 为 true,则在图像分辨率大于指定的 MaxResolution 参数时图像将被调整大小。 |
getVersion() | 压缩算法的版本。 |
hashCode() | |
isCompressImages() | 如果此标志设置为 true,图像将在文档中被压缩。压缩级别由 ImageQuality 属性指定。 |
notify() | |
notifyAll() | |
setCompressImages(boolean value) | 如果此标志设置为 true,图像将在文档中被压缩。压缩级别由 ImageQuality 属性指定。 |
setEncoding(int value) | 获取或设置用于存储图像的编码。 |
setImageQuality(int value) | 使用 CompressIamges 标志时指定图像压缩级别。 |
setMaxResolution(int value) | 指定图像的最大分辨率。 |
setResizeImages(boolean value) | 如果此标志设置为 true 且 CompressImages 为 true,则在图像分辨率大于指定的 MaxResolution 参数时图像将被调整大小。 |
setVersion(int value) | 压缩算法的版本。 |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
ImageCompressionOptions()
public ImageCompressionOptions()
equals(Object arg0)
public boolean equals(Object arg0)
参数:
范围 | 类型 | 描述 |
---|---|---|
arg0 | java.lang.Object |
退货: 布尔值
getClass()
public final native Class<?> getClass()
退货: java.lang.Class
getEncoding()
public final int getEncoding()
获取或设置用于存储图像的编码。
退货: int - ImageEncoding 元素
getImageQuality()
public final int getImageQuality()
使用 CompressIamges 标志时指定图像压缩级别。
退货: int - 整数值
getMaxResolution()
public final int getMaxResolution()
指定图像的最大分辨率。如果图像具有更高的分辨率,它将被缩放
退货: int - 整数值
getResizeImages()
public final boolean getResizeImages()
如果此标志设置为 true 且 CompressImages 为 true,则在图像分辨率大于指定的 MaxResolution 参数时图像将被调整大小。
退货: boolean - 布尔值
getVersion()
public final int getVersion()
压缩算法的版本。可能的值是:1. 标准压缩,2. 快速(改进的压缩比标准更快,但可能不适用于所有图像),3. 混合(标准压缩应用于不能通过更快算法压缩的图像,这可能会提供最好的压缩,但比“快速”算法更慢。“快速”版本不适用于调整图像大小(将使用标准方法)。默认为“标准”。
退货: int - 整数值
hashCode()
public native int hashCode()
退货: 整数
isCompressImages()
public final boolean isCompressImages()
如果此标志设置为 true,图像将在文档中被压缩。压缩级别由 ImageQuality 属性指定。
退货: boolean - 布尔值
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setCompressImages(boolean value)
public final void setCompressImages(boolean value)
如果此标志设置为 true,图像将在文档中被压缩。压缩级别由 ImageQuality 属性指定。
参数:
范围 | 类型 | 描述 |
---|---|---|
value | boolean | 布尔值 |
setEncoding(int value)
public final void setEncoding(int value)
获取或设置用于存储图像的编码。
参数:
范围 | 类型 | 描述 |
---|---|---|
value | int | 图像编码元素 |
setImageQuality(int value)
public final void setImageQuality(int value)
使用 CompressIamges 标志时指定图像压缩级别。
参数:
范围 | 类型 | 描述 |
---|---|---|
value | int | 整数值 |
setMaxResolution(int value)
public final void setMaxResolution(int value)
指定图像的最大分辨率。如果图像具有更高的分辨率,它将被缩放
参数:
范围 | 类型 | 描述 |
---|---|---|
value | int | 整数值 |
setResizeImages(boolean value)
public final void setResizeImages(boolean value)
如果此标志设置为 true 且 CompressImages 为 true,则在图像分辨率大于指定的 MaxResolution 参数时图像将被调整大小。
参数:
范围 | 类型 | 描述 |
---|---|---|
value | boolean | 布尔值 |
setVersion(int value)
public final void setVersion(int value)
压缩算法的版本。可能的值是:1. 标准压缩,2. 快速(改进的压缩比标准更快,但可能不适用于所有图像),3. 混合(标准压缩应用于不能通过更快算法压缩的图像,这可能会提供最好的压缩,但比“快速”算法更慢。“快速”版本不适用于调整图像大小(将使用标准方法)。默认为“标准”。
参数:
范围 | 类型 | 描述 |
---|---|---|
value | int | 整数值 |
toString()
public String toString()
退货: java.lang.字符串
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
参数:
范围 | 类型 | 描述 |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
参数:
范围 | 类型 | 描述 |
---|---|---|
arg0 | long | |
arg1 | int |