/**
* {@inheritDoc}
*/
public ImageOrientation getOrientation() {
int orientation;
ImageMetaValue value = getValue( CIFF_II_ROTATION );
if ( value != null ) {
orientation = value.getIntValue();
if ( orientation < 0 )
orientation += 360;
switch ( orientation ) {
case 0:
return ORIENTATION_LANDSCAPE;
case 90:
return ORIENTATION_90CCW;
case 180:
return ORIENTATION_180;
case 270:
return ORIENTATION_90CW;
}
}
value = getValue( CIFF_SI_AUTO_ROTATE );
if ( value != null )
switch ( value.getIntValue() ) {
case CIFF_AUTO_ROTATE_NONE:
return ORIENTATION_LANDSCAPE;
case CIFF_AUTO_ROTATE_90CCW:
return ORIENTATION_90CCW;
case CIFF_AUTO_ROTATE_180: