Package com.lightcrafts.media.jai.codec

Examples of com.lightcrafts.media.jai.codec.BMPEncodeParam


        if (param != null) {
            if (!(param instanceof BMPEncodeParam)) {
                return false;
            }
            BMPEncodeParam BMPParam = (BMPEncodeParam)param;

            int version = BMPParam.getVersion();
            if ((version == BMPEncodeParam.VERSION_2) ||
                (version == BMPEncodeParam.VERSION_4)) {
                return false;
            }
        }
View Full Code Here


        return true;
    }

    protected ImageEncoder createImageEncoder(OutputStream dst,
                                              ImageEncodeParam param) {
        BMPEncodeParam p = null;
        if (param != null) {
            p = (BMPEncodeParam)param;
        }

        return new BMPImageEncoder(dst, p);
View Full Code Here

  super(output, param);
    
  this.output = output;

  BMPEncodeParam bmpParam;
  if (param == null) {
      // Use default valued BMPEncodeParam
      bmpParam = new BMPEncodeParam();
  } else {
      bmpParam = (BMPEncodeParam)param;
  }

  this.version = bmpParam.getVersion();
  this.isCompressed = bmpParam.isCompressed();
  if(isCompressed && !(output instanceof SeekableOutputStream)){
      throw new
    IllegalArgumentException(JaiI18N.getString("BMPImageEncoder6"));
 
 
  this.isTopDown = bmpParam.isTopDown();
    }
View Full Code Here

TOP

Related Classes of com.lightcrafts.media.jai.codec.BMPEncodeParam

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.