1 7 8 17 18 package com.sun.image.codec.jpeg; 19 20 21 46 47 import java.io.OutputStream ; 48 import java.io.IOException ; 49 import java.awt.image.BufferedImage ; 50 import java.awt.image.ColorModel ; 51 import java.awt.image.Raster ; 52 53 79 80 public interface JPEGImageEncoder { 81 84 public OutputStream getOutputStream(); 85 86 93 public void setJPEGEncodeParam(JPEGEncodeParam jep); 94 95 102 public JPEGEncodeParam getJPEGEncodeParam(); 103 104 109 public JPEGEncodeParam getDefaultJPEGEncodeParam(BufferedImage bi) 110 throws ImageFormatException; 111 112 124 public void encode(BufferedImage bi) 125 throws IOException , ImageFormatException; 126 127 141 public void encode(BufferedImage bi, JPEGEncodeParam jep) 142 throws IOException , ImageFormatException; 143 144 155 public int getDefaultColorId(ColorModel cm); 156 157 165 public JPEGEncodeParam getDefaultJPEGEncodeParam(Raster ras, int colorID) 166 throws ImageFormatException; 167 168 182 public JPEGEncodeParam getDefaultJPEGEncodeParam(int numBands, 183 int colorID) 184 throws ImageFormatException; 185 186 194 public JPEGEncodeParam getDefaultJPEGEncodeParam(JPEGDecodeParam jdp) 195 throws ImageFormatException; 196 197 209 public void encode(Raster ras) 210 throws IOException , ImageFormatException; 211 212 225 public void encode(Raster ras, JPEGEncodeParam jep) 226 throws IOException , ImageFormatException; 227 } 228 229 230 231 232 233 | Popular Tags |