⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tiffconstants.java

📁 iText是一个能够快速产生PDF文件的java类库。iText的java类对于那些要产生包含文本
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
/*
 * Copyright (c) 2001 Sun Microsystems, Inc. All Rights Reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * -Redistributions of source code must retain the above copyright notice, this
 * list of conditions and the following disclaimer.
 *
 * -Redistribution in binary form must reproduct the above copyright notice,
 * this list of conditions and the following disclaimer in the documentation
 * and/or other materials provided with the distribution.
 *
 * Neither the name of Sun Microsystems, Inc. or the names of contributors may
 * be used to endorse or promote products derived from this software without
 * specific prior written permission.
 *
 * This software is provided "AS IS," without a warranty of any kind. ALL
 * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
 * IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
 * NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
 * LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
 * OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
 * LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
 * INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
 * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
 * OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGES.
 *
 * You acknowledge that Software is not designed,licensed or intended for use in
 * the design, construction, operation or maintenance of any nuclear facility.
 */
package com.lowagie.text.pdf.codec;

/**
 * A baseline TIFF reader. The reader has some functionality in addition to
 * the baseline specifications for Bilevel images, for which the group 3 and
 * group 4 decompression schemes have been implemented. Support for LZW
 * decompression has also been added. Support for Horizontal differencing
 * predictor decoding is also included, when used with LZW compression.
 * However, this support is limited to data with bitsPerSample value of 8.
 * When reading in RGB images, support for alpha and extraSamples being
 * present has been added. Support for reading in images with 16 bit samples
 * has been added. Support for the SampleFormat tag (signed samples as well
 * as floating-point samples) has also been added. In all other cases, support
 * is limited to Baseline specifications.
 *
 *
 */
public class TIFFConstants {
    
/*
 * TIFF Tag Definitions (from tifflib).
 */
    public static final int TIFFTAG_SUBFILETYPE = 254;	/* subfile data descriptor */
    public static final int     FILETYPE_REDUCEDIMAGE = 0x1;	/* reduced resolution version */
    public static final int     FILETYPE_PAGE = 0x2;	/* one page of many */
    public static final int     FILETYPE_MASK = 0x4;	/* transparency mask */
    public static final int TIFFTAG_OSUBFILETYPE = 255; /* +kind of data in subfile */
    public static final int     OFILETYPE_IMAGE = 1; /* full resolution image data */
    public static final int     OFILETYPE_REDUCEDIMAGE = 2; /* reduced size image data */
    public static final int     OFILETYPE_PAGE = 3; /* one page of many */
    public static final int TIFFTAG_IMAGEWIDTH = 256; /* image width in pixels */
    public static final int TIFFTAG_IMAGELENGTH = 257; /* image height in pixels */
    public static final int TIFFTAG_BITSPERSAMPLE = 258; /* bits per channel (sample) */
    public static final int TIFFTAG_COMPRESSION = 259; /* data compression technique */
    public static final int     COMPRESSION_NONE = 1; /* dump mode */
    public static final int     COMPRESSION_CCITTRLE = 2; /* CCITT modified Huffman RLE */
    public static final int     COMPRESSION_CCITTFAX3 = 3;	/* CCITT Group 3 fax encoding */
    public static final int     COMPRESSION_CCITTFAX4 = 4;	/* CCITT Group 4 fax encoding */
    public static final int     COMPRESSION_LZW = 5;       /* Lempel-Ziv  & Welch */
    public static final int     COMPRESSION_OJPEG = 6; /* !6.0 JPEG */
    public static final int     COMPRESSION_JPEG = 7; /* %JPEG DCT compression */
    public static final int     COMPRESSION_NEXT = 32766; /* NeXT 2-bit RLE */
    public static final int     COMPRESSION_CCITTRLEW = 32771; /* #1 w/ word alignment */
    public static final int     COMPRESSION_PACKBITS = 32773; /* Macintosh RLE */
    public static final int     COMPRESSION_THUNDERSCAN = 32809; /* ThunderScan RLE */
    /* codes 32895-32898 are reserved for ANSI IT8 TIFF/IT <dkelly@etsinc.com) */
    public static final int     COMPRESSION_IT8CTPAD = 32895;   /* IT8 CT w/padding */
    public static final int     COMPRESSION_IT8LW = 32896;   /* IT8 Linework RLE */
    public static final int     COMPRESSION_IT8MP = 32897;   /* IT8 Monochrome picture */
    public static final int     COMPRESSION_IT8BL = 32898;   /* IT8 Binary line art */
    /* compression codes 32908-32911 are reserved for Pixar */
    public static final int     COMPRESSION_PIXARFILM = 32908;   /* Pixar companded 10bit LZW */
    public static final int     COMPRESSION_PIXARLOG = 32909;   /* Pixar companded 11bit ZIP */
    public static final int     COMPRESSION_DEFLATE = 32946; /* Deflate compression */
    public static final int     COMPRESSION_ADOBE_DEFLATE = 8;       /* Deflate compression, as recognized by Adobe */
    /* compression code 32947 is reserved for Oceana Matrix <dev@oceana.com> */
    public static final int     COMPRESSION_DCS = 32947;   /* Kodak DCS encoding */
    public static final int     COMPRESSION_JBIG = 34661; /* ISO JBIG */
    public static final int     COMPRESSION_SGILOG = 34676; /* SGI Log Luminance RLE */
    public static final int     COMPRESSION_SGILOG24 = 34677;	/* SGI Log 24-bit packed */
    public static final int TIFFTAG_PHOTOMETRIC = 262; /* photometric interpretation */
    public static final int     PHOTOMETRIC_MINISWHITE = 0; /* min value is white */
    public static final int     PHOTOMETRIC_MINISBLACK = 1; /* min value is black */
    public static final int     PHOTOMETRIC_RGB = 2; /* RGB color model */
    public static final int     PHOTOMETRIC_PALETTE = 3; /* color map indexed */
    public static final int     PHOTOMETRIC_MASK = 4; /* $holdout mask */
    public static final int     PHOTOMETRIC_SEPARATED = 5; /* !color separations */
    public static final int     PHOTOMETRIC_YCBCR = 6; /* !CCIR 601 */
    public static final int     PHOTOMETRIC_CIELAB = 8; /* !1976 CIE L*a*b* */
    public static final int     PHOTOMETRIC_LOGL = 32844; /* CIE Log2(L) */
    public static final int     PHOTOMETRIC_LOGLUV = 32845; /* CIE Log2(L) (u',v') */
    public static final int TIFFTAG_THRESHHOLDING = 263; /* +thresholding used on data */
    public static final int     THRESHHOLD_BILEVEL = 1; /* b&w art scan */
    public static final int     THRESHHOLD_HALFTONE = 2; /* or dithered scan */
    public static final int     THRESHHOLD_ERRORDIFFUSE = 3; /* usually floyd-steinberg */
    public static final int TIFFTAG_CELLWIDTH = 264; /* +dithering matrix width */
    public static final int TIFFTAG_CELLLENGTH = 265; /* +dithering matrix height */
    public static final int TIFFTAG_FILLORDER = 266; /* data order within a byte */
    public static final int     FILLORDER_MSB2LSB = 1; /* most significant -> least */
    public static final int     FILLORDER_LSB2MSB = 2; /* least significant -> most */
    public static final int TIFFTAG_DOCUMENTNAME = 269; /* name of doc. image is from */
    public static final int TIFFTAG_IMAGEDESCRIPTION = 270; /* info about image */
    public static final int TIFFTAG_MAKE = 271; /* scanner manufacturer name */
    public static final int TIFFTAG_MODEL = 272; /* scanner model name/number */
    public static final int TIFFTAG_STRIPOFFSETS = 273; /* offsets to data strips */
    public static final int TIFFTAG_ORIENTATION = 274; /* +image orientation */
    public static final int     ORIENTATION_TOPLEFT = 1; /* row 0 top, col 0 lhs */
    public static final int     ORIENTATION_TOPRIGHT = 2; /* row 0 top, col 0 rhs */
    public static final int     ORIENTATION_BOTRIGHT = 3; /* row 0 bottom, col 0 rhs */
    public static final int     ORIENTATION_BOTLEFT = 4; /* row 0 bottom, col 0 lhs */
    public static final int     ORIENTATION_LEFTTOP = 5; /* row 0 lhs, col 0 top */
    public static final int     ORIENTATION_RIGHTTOP = 6; /* row 0 rhs, col 0 top */
    public static final int     ORIENTATION_RIGHTBOT = 7; /* row 0 rhs, col 0 bottom */
    public static final int     ORIENTATION_LEFTBOT = 8; /* row 0 lhs, col 0 bottom */
    public static final int TIFFTAG_SAMPLESPERPIXEL = 277; /* samples per pixel */
    public static final int TIFFTAG_ROWSPERSTRIP = 278; /* rows per strip of data */
    public static final int TIFFTAG_STRIPBYTECOUNTS = 279; /* bytes counts for strips */
    public static final int TIFFTAG_MINSAMPLEVALUE = 280; /* +minimum sample value */
    public static final int TIFFTAG_MAXSAMPLEVALUE = 281; /* +maximum sample value */
    public static final int TIFFTAG_XRESOLUTION = 282; /* pixels/resolution in x */
    public static final int TIFFTAG_YRESOLUTION = 283; /* pixels/resolution in y */
    public static final int TIFFTAG_PLANARCONFIG = 284; /* storage organization */
    public static final int     PLANARCONFIG_CONTIG = 1; /* single image plane */
    public static final int     PLANARCONFIG_SEPARATE = 2; /* separate planes of data */
    public static final int TIFFTAG_PAGENAME = 285; /* page name image is from */
    public static final int TIFFTAG_XPOSITION = 286; /* x page offset of image lhs */
    public static final int TIFFTAG_YPOSITION = 287; /* y page offset of image lhs */
    public static final int TIFFTAG_FREEOFFSETS = 288; /* +byte offset to free block */
    public static final int TIFFTAG_FREEBYTECOUNTS = 289; /* +sizes of free blocks */
    public static final int TIFFTAG_GRAYRESPONSEUNIT = 290; /* $gray scale curve accuracy */
    public static final int     GRAYRESPONSEUNIT_10S = 1; /* tenths of a unit */
    public static final int     GRAYRESPONSEUNIT_100S = 2; /* hundredths of a unit */
    public static final int     GRAYRESPONSEUNIT_1000S = 3; /* thousandths of a unit */
    public static final int     GRAYRESPONSEUNIT_10000S = 4; /* ten-thousandths of a unit */
    public static final int     GRAYRESPONSEUNIT_100000S = 5; /* hundred-thousandths */
    public static final int TIFFTAG_GRAYRESPONSECURVE = 291; /* $gray scale response curve */
    public static final int TIFFTAG_GROUP3OPTIONS = 292; /* 32 flag bits */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -