1 // Copyright 2003-2007, FreeHEP. 2 package org.freehep.graphicsio; 3 4 /** 5 * 6 * @author Mark Donszelmann 7 * @author Steffen Greiffenberg 8 * @version $Id: ImageConstants.java 10269 2007-01-09 00:32:55Z duns $ 9 */ 10 public class ImageConstants { 11 12 private ImageConstants() { 13 } 14 15 /** 16 * general purpose data compression / decompression 17 */ 18 public static final String ZLIB = "ZLIB"; 19 20 /** 21 * image format "raw" 22 */ 23 public static final String RAW = "RAW"; 24 25 /** 26 * image format "portable network graphics" 27 */ 28 public static final String PNG = "PNG"; 29 30 /** 31 * image format "joint photographic experts group" 32 */ 33 public static final String JPG = "JPG"; 34 35 /** 36 * image format "joint photographic experts group" 37 */ 38 public static final String JPEG = "JPEG"; 39 40 /** 41 * image format "graphics interchange format " 42 */ 43 public static final String GIF = "GIF"; 44 45 /** 46 * image format "portable pixmap" 47 */ 48 public static final String PPM = "PPM"; 49 50 /** 51 * image format "bitmap" 52 */ 53 public static final String BMP = "BMP"; 54 55 /** 56 * image format "windows bitmap" 57 */ 58 public static final String WBMP = "WBMP"; 59 60 /** 61 * image format "enhanced metafile" 62 */ 63 public static final String EMF = "EMF"; 64 65 /** 66 * image format "java" 67 */ 68 public static final String JAVA = "JAVA"; 69 70 /** 71 * image format "scalable vector graphic" 72 */ 73 public static final String SVG = "SVG"; 74 75 /** 76 * image format "shockwave flash" 77 */ 78 public static final String SWF = "SWF"; 79 80 /** 81 * image / document format "portable document format" 82 */ 83 public static final String PDF = "PDF"; 84 85 /** 86 * image / document format "postscript" 87 */ 88 public static final String PS = "PS"; 89 90 /** 91 * key for {@link org.freehep.util.UserProperties} that stores image format 92 */ 93 public static final String WRITE_IMAGES_AS = "WriteImagesAs"; 94 95 /** 96 * key for {@link org.freehep.util.UserProperties} that 97 * stores a {@link java.awt.Dimension} for image size 98 */ 99 public static final String IMAGE_SIZE = "ImageSize"; 100 101 /** 102 * value for {@link org.freehep.util.UserProperties} with key 103 * IMAGE_SIZE (alternative for a certain dimension to choose 104 * cmallest image size) 105 */ 106 public static final String SMALLEST = "Smallest Size"; 107 108 /** 109 * used for ASCII 85 encoding using a {@link org.freehep.util.io.ASCII85OutputStream} 110 * @see org.freehep.graphicsio.ImageGraphics2D#toByteArray(java.awt.image.RenderedImage, String, String, java.util.Properties) 111 */ 112 public final static String ENCODING_ASCII85 = "ASCII85"; 113 114 /** 115 * zip encoding used for converting Images to byte[] 116 * @see org.freehep.graphicsio.ImageGraphics2D#toByteArray(java.awt.image.RenderedImage, String, String, java.util.Properties) 117 */ 118 public final static String ENCODING_FLATE = "Flate"; 119 120 /** 121 * used for compressed ASCII 85 encoding using a {@link org.freehep.util.io.ASCII85OutputStream} 122 * @see org.freehep.graphicsio.ImageGraphics2D#toByteArray(java.awt.image.RenderedImage, String, String, java.util.Properties) 123 */ 124 public final static String ENCODING_FLATE_ASCII85 = ENCODING_FLATE + "-" + ENCODING_ASCII85; 125 126 /** 127 * Discrete Cosine Transform for JPEG uses an ASCII85OutputStream 128 * @see org.freehep.graphicsio.ImageGraphics2D#toByteArray(java.awt.image.RenderedImage, String, String, java.util.Properties) 129 */ 130 public final static String ENCODING_DCT = "DCT"; 131 132 /** 133 * RGB ColorModel used by org.freehep.graphicsio.pdf.PDFStream and 134 * org.freehep.graphicsio.ps.PSGraphics2D 135 */ 136 public static final String COLOR_MODEL_RGB = "RGB"; 137 138 /** 139 * Alpha (?) ColorModel used by 140 * org.freehep.graphicsio.swf.DefineBitsJPEG3 141 */ 142 public static final String COLOR_MODEL_A = "A"; 143 144 /** 145 * ColorModel used by 146 * org.freehep.graphicsio.swf.DefineBitsLossless 147 */ 148 public static final String COLOR_MODEL_ARGB = "*ARGB"; 149 150 }