org.imgscalr
Enum Scalr.Rotation

java.lang.Object  extended by java.lang.Enum<Scalr.Rotation>      extended by org.imgscalr.Scalr.Rotation
All Implemented Interfaces:
Serializable, Comparable<Scalr.Rotation>
Enclosing class:
Scalr

public static enum Scalr.Rotation
extends Enum<Scalr.Rotation>

Used to define the different types of rotations that can be applied to an image during a resize operation.

Since:
3.2
Author:
Riyad Kalla (software@thebuzzmedia.com)


Enum Constant Summary
CW_180
          180-degree, clockwise rotation (to the right).
CW_270
          270-degree, clockwise rotation (to the right).
CW_90
          90-degree, clockwise rotation (to the right).
FLIP_HORZ
          Flip the image horizontally by reflecting it around the y axis.
FLIP_VERT
          Flip the image vertically by reflecting it around the x axis.
 
Method Summary
static Scalr.RotationvalueOf(String name)
          Returns the enum constant of this type with the specified name.
static Scalr.Rotation[]values()
          Returns an array containing the constants of this enum type, inthe order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CW_90

public static final Scalr.Rotation CW_90
90-degree, clockwise rotation (to the right). This is equivalent to a quarter-turn of the image to the right; moving the picture on to its right side.


CW_180

public static final Scalr.Rotation CW_180
180-degree, clockwise rotation (to the right). This is equivalent to 1 half-turn of the image to the right; rotating the picture around until it is upside down from the original position.


CW_270

public static final Scalr.Rotation CW_270
270-degree, clockwise rotation (to the right). This is equivalent to a quarter-turn of the image to the left; moving the picture on to its left side.


FLIP_HORZ

public static final Scalr.Rotation FLIP_HORZ
Flip the image horizontally by reflecting it around the y axis.

This is not a standard rotation around a center point, but instead creates the mirrored reflection of the image horizontally.

More specifically, the vertical orientation of the image stays the same (the top stays on top, and the bottom on bottom), but the right and left sides flip. This is different than a standard rotation where the top and bottom would also have been flipped.


FLIP_VERT

public static final Scalr.Rotation FLIP_VERT
Flip the image vertically by reflecting it around the x axis.

This is not a standard rotation around a center point, but instead creates the mirrored reflection of the image vertically.

More specifically, the horizontal orientation of the image stays the same (the left stays on the left and the right stays on the right), but the top and bottom sides flip. This is different than a standard rotation where the left and right would also have been flipped.

Method Detail

values

public static Scalr.Rotation[] values()
Returns an array containing the constants of this enum type, inthe order they are declared. This method may be used to iterateover the constants as follows:
for (Scalr.Rotation c : Scalr.Rotation.values())    System.out.println(c);

Returns:
an array containing the constants of this enum type, inthe order they are declared

valueOf

public static Scalr.Rotation valueOf(String name)
Returns the enum constant of this type with the specified name.The string must match exactly an identifier used to declare anenum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constantwith the specified name
NullPointerException - if the argument is null


Copyright © 2012
The Buzz Media, LLC. All Rights Reserved.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14