当前位置: 首页>>代码示例>>Java>>正文


Java JPEG.DEFAULT_QUALITY属性代码示例

本文整理汇总了Java中com.sun.imageio.plugins.jpeg.JPEG.DEFAULT_QUALITY属性的典型用法代码示例。如果您正苦于以下问题:Java JPEG.DEFAULT_QUALITY属性的具体用法?Java JPEG.DEFAULT_QUALITY怎么用?Java JPEG.DEFAULT_QUALITY使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.sun.imageio.plugins.jpeg.JPEG的用法示例。


在下文中一共展示了JPEG.DEFAULT_QUALITY属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: JPEGImageWriteParam

/**
 * Constructs a <code>JPEGImageWriteParam</code>.  Tiling is not
 * supported.  Progressive encoding is supported. The default
 * progressive mode is MODE_DISABLED.  A single form of compression,
 * named "JPEG", is supported.  The default compression quality is
 * 0.75.
 *
 * @param locale a <code>Locale</code> to be used by the
 * superclass to localize compression type names and quality
 * descriptions, or <code>null</code>.
 */
public JPEGImageWriteParam(Locale locale) {
    super(locale);
    this.canWriteProgressive = true;
    this.progressiveMode = MODE_DISABLED;
    this.canWriteCompressed = true;
    this.compressionTypes = compressionNames;
    this.compressionType = compressionTypes[0];
    this.compressionQuality = JPEG.DEFAULT_QUALITY;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:20,代码来源:JPEGImageWriteParam.java

示例2: unsetCompression

/**
 * Removes any previous compression quality setting.
 *
 * <p> The default implementation resets the compression quality
 * to <code>0.75F</code>.
 *
 * @exception IllegalStateException if the compression mode is not
 * <code>MODE_EXPLICIT</code>.
 */
public void unsetCompression() {
    if (getCompressionMode() != MODE_EXPLICIT) {
        throw new IllegalStateException
            ("Compression mode not MODE_EXPLICIT!");
    }
    this.compressionQuality = JPEG.DEFAULT_QUALITY;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:16,代码来源:JPEGImageWriteParam.java

示例3: JPEGImageWriteParam

/**
 * Constructs a {@code JPEGImageWriteParam}.  Tiling is not
 * supported.  Progressive encoding is supported. The default
 * progressive mode is MODE_DISABLED.  A single form of compression,
 * named "JPEG", is supported.  The default compression quality is
 * 0.75.
 *
 * @param locale a {@code Locale} to be used by the
 * superclass to localize compression type names and quality
 * descriptions, or {@code null}.
 */
public JPEGImageWriteParam(Locale locale) {
    super(locale);
    this.canWriteProgressive = true;
    this.progressiveMode = MODE_DISABLED;
    this.canWriteCompressed = true;
    this.compressionTypes = compressionNames;
    this.compressionType = compressionTypes[0];
    this.compressionQuality = JPEG.DEFAULT_QUALITY;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:20,代码来源:JPEGImageWriteParam.java

示例4: unsetCompression

/**
 * Removes any previous compression quality setting.
 *
 * <p> The default implementation resets the compression quality
 * to {@code 0.75F}.
 *
 * @exception IllegalStateException if the compression mode is not
 * {@code MODE_EXPLICIT}.
 */
public void unsetCompression() {
    if (getCompressionMode() != MODE_EXPLICIT) {
        throw new IllegalStateException
            ("Compression mode not MODE_EXPLICIT!");
    }
    this.compressionQuality = JPEG.DEFAULT_QUALITY;
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:16,代码来源:JPEGImageWriteParam.java


注:本文中的com.sun.imageio.plugins.jpeg.JPEG.DEFAULT_QUALITY属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。