本文整理汇总了Java中com.sun.imageio.plugins.bmp.BMPCompressionTypes类的典型用法代码示例。如果您正苦于以下问题:Java BMPCompressionTypes类的具体用法?Java BMPCompressionTypes怎么用?Java BMPCompressionTypes使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
BMPCompressionTypes类属于com.sun.imageio.plugins.bmp包,在下文中一共展示了BMPCompressionTypes类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: BMPImageWriteParam
import com.sun.imageio.plugins.bmp.BMPCompressionTypes; //导入依赖的package包/类
/**
* Constructs a <code>BMPImageWriteParam</code> set to use a given
* <code>Locale</code> and with default values for all parameters.
*
* @param locale a <code>Locale</code> to be used to localize
* compression type names and quality descriptions, or
* <code>null</code>.
*/
public BMPImageWriteParam(Locale locale) {
super(locale);
// Set compression types ("BI_RGB" denotes uncompressed).
compressionTypes = BMPCompressionTypes.getCompressionTypes();
// Set compression flag.
canWriteCompressed = true;
compressionMode = MODE_COPY_FROM_METADATA;
compressionType = compressionTypes[BMPConstants.BI_RGB];
}
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:20,代码来源:BMPImageWriteParam.java
示例2: BMPImageWriteParam
import com.sun.imageio.plugins.bmp.BMPCompressionTypes; //导入依赖的package包/类
/**
* Constructs a {@code BMPImageWriteParam} set to use a given
* {@code Locale} and with default values for all parameters.
*
* @param locale a {@code Locale} to be used to localize
* compression type names and quality descriptions, or
* {@code null}.
*/
public BMPImageWriteParam(Locale locale) {
super(locale);
// Set compression types ("BI_RGB" denotes uncompressed).
compressionTypes = BMPCompressionTypes.getCompressionTypes();
// Set compression flag.
canWriteCompressed = true;
compressionMode = MODE_COPY_FROM_METADATA;
compressionType = compressionTypes[BMPConstants.BI_RGB];
}
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:20,代码来源:BMPImageWriteParam.java
注:本文中的com.sun.imageio.plugins.bmp.BMPCompressionTypes类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论