Package mediautil.image.jpeg

Examples of mediautil.image.jpeg.LLJTran.transform()


    // 2. Transform the image using default options along with
    // transformation of the Orientation tags. Try other combinations of
    // LLJTran_XFORM.. flags. Use a jpeg with partial MCU (partialMCU.jpg)
    // for testing LLJTran.XFORM_TRIM and LLJTran.XFORM_ADJUST_EDGES
    int options = LLJTran.OPT_DEFAULTS | LLJTran.OPT_XFORM_ORIENTATION;
    llj.transform(op, options);

    // 3. Save the Image which is already transformed as specified by the
    //    input transformation in Step 2, along with the Exif header.
    try (OutputStream out = new BufferedOutputStream(output)) {
      llj.save(out, LLJTran.OPT_WRITE_ALL);
View Full Code Here


    // 2. Transform the image using default options along with
    // transformation of the Orientation tags. Try other combinations of
    // LLJTran_XFORM.. flags. Use a jpeg with partial MCU (partialMCU.jpg)
    // for testing LLJTran.XFORM_TRIM and LLJTran.XFORM_ADJUST_EDGES
    int options = LLJTran.OPT_DEFAULTS | LLJTran.OPT_XFORM_ORIENTATION;
    llj.transform(op, options);

    // 4. Save the Image which is already transformed as specified by the
    //    input transformation in Step 2, along with the Exif header.
    OutputStream out = new BufferedOutputStream(output);
    llj.save(out, LLJTran.OPT_WRITE_ALL);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.