1 42 43 package org.jfree.chart.encoders; 44 45 import java.io.OutputStream ; 46 import java.io.IOException ; 47 import java.awt.image.BufferedImage ; 48 49 54 public interface ImageEncoder { 55 56 65 public byte[] encode(BufferedImage bufferedImage) throws IOException ; 66 67 68 75 public void encode(BufferedImage bufferedImage, OutputStream outputStream) 76 throws IOException ; 77 78 83 public float getQuality(); 84 85 91 public void setQuality(float quality); 92 93 98 public boolean isEncodingAlpha(); 99 100 107 public void setEncodingAlpha(boolean encodingAlpha); 108 109 } 110 | Popular Tags |