1 7 8 package javax.imageio.plugins.bmp; 9 10 import java.util.Locale ; 11 import javax.imageio.ImageWriteParam ; 12 13 import com.sun.imageio.plugins.bmp.BMPConstants; 14 15 47 public class BMPImageWriteParam extends ImageWriteParam { 48 49 private boolean topDown = false; 50 51 59 public BMPImageWriteParam(Locale locale) { 60 super(locale); 61 62 compressionTypes = BMPConstants.compressionTypeNames; 64 65 canWriteCompressed = true; 67 compressionMode = MODE_COPY_FROM_METADATA; 68 compressionType = compressionTypes[BMPConstants.BI_RGB]; 69 } 70 71 75 public BMPImageWriteParam() { 76 this(null); 77 } 78 79 85 public void setTopDown(boolean topDown) { 86 this.topDown = topDown; 87 } 88 89 95 public boolean isTopDown() { 96 return topDown; 97 } 98 } 99 | Popular Tags |