javax.imageio.plugins.tiff.BaselineTIFFTagSet#SAMPLE_FORMAT_UNSIGNED_INTEGER源码实例Demo

下面列出了javax.imageio.plugins.tiff.BaselineTIFFTagSet#SAMPLE_FORMAT_UNSIGNED_INTEGER 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: Bytecoder   文件: TIFFDecompressor.java
/**
 * Sets the value of the {@code sampleFormat} field.
 *
 * <p> If this method is called, the {@code beginDecoding}
 * method must be called prior to calling any of the decode
 * methods.
 *
 * @param sampleFormat the format of the source image data,
 * for example unsigned integer or floating-point.
 */
public void setSampleFormat(int[] sampleFormat) {
    this.sampleFormat = sampleFormat == null ?
        new int[] {BaselineTIFFTagSet.SAMPLE_FORMAT_UNSIGNED_INTEGER} :
        sampleFormat.clone();
}
 
源代码2 项目: openjdk-jdk9   文件: TIFFDecompressor.java
/**
 * Sets the value of the {@code sampleFormat} field.
 *
 * <p> If this method is called, the {@code beginDecoding}
 * method must be called prior to calling any of the decode
 * methods.
 *
 * @param sampleFormat the format of the source image data,
 * for example unsigned integer or floating-point.
 */
public void setSampleFormat(int[] sampleFormat) {
    this.sampleFormat = sampleFormat == null ?
        new int[] {BaselineTIFFTagSet.SAMPLE_FORMAT_UNSIGNED_INTEGER} :
        sampleFormat.clone();
}