Package javax.media.jai.operator

Examples of javax.media.jai.operator.TransposeType


            /// and transform the ROI with it to avoid forcing
            /// ROI.getAsImage to be called.

            // Retrieve the transpose type and create a nearest neighbor
            // Interpolation object.
            TransposeType transposeType =
                (TransposeType)pb.getObjectParameter(0);
            Interpolation interp =
                Interpolation.getInstance(Interpolation.INTERP_NEAREST);

            // Return the transposed ROI.
View Full Code Here


  public static String call(PageContext pc, Object name, String strTranspose) throws PageException {
    if(name instanceof String) name=pc.getVariable(Caster.toString(name));
    Image img = Image.toImage(name);
   
    strTranspose=strTranspose.toLowerCase().trim();
    TransposeType transpose = TransposeDescriptor.FLIP_VERTICAL;
    if("vertical".equals(strTranspose)) transpose=TransposeDescriptor.FLIP_VERTICAL;
    else if("horizontal".equals(strTranspose)) transpose=TransposeDescriptor.FLIP_HORIZONTAL;
    else if("diagonal".equals(strTranspose)) transpose=TransposeDescriptor.FLIP_DIAGONAL;
    else if("antidiagonal".equals(strTranspose)) transpose=TransposeDescriptor.FLIP_ANTIDIAGONAL;
    else if("anti diagonal".equals(strTranspose)) transpose=TransposeDescriptor.FLIP_ANTIDIAGONAL;
View Full Code Here

  public void rotate(int rotateAmount) {
    if (rotateAmount == 0) {
      return;
    }
    TransposeType type = TransposeDescriptor.ROTATE_90;
    switch (rotateAmount) {
      case 90:
        type = TransposeDescriptor.ROTATE_90;
        break;
      case 180:
View Full Code Here

TOP

Related Classes of javax.media.jai.operator.TransposeType

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.