---
title: "ShapeType"
url: "https://reference.aspose.com/pdf/java/com.aspose.pdf.devices/shapetype/"
product: "Aspose.PDF for Java API Reference"
description: "This enum represents shape type for the extracted images."
---

**Inheritance:**
java.lang.Object, java.lang.Enum < ShapeType > com.aspose.pdf.devices.ShapeType, java.lang.Enum < ShapeType >, com.aspose.pdf.devices.ShapeType

**All Implemented Interfaces:**
Serializable, Comparable < ShapeType >

```
public enum ShapeType extends Enum < ShapeType >
```

This enum represents shape type for the extracted images.

## Fields

| Field | Description |
| --- | --- |
| [Landscape](#Landscape) | Landscape Shape. |
| [None](#None) | Original image shape. |
| [Portrait](#Portrait) | Portrait Shape. |

## Methods

| Method | Description |
| --- | --- |
| [getByValue](#getByValue-int-) |  |
| [getValue](#getValue--) |  |
| [valueOf](#valueOf-java.lang.String-) | Returns the enum constant of this type with the specified name. |
| [values](#values--) | Returns an array containing the constants of this enum type, in the order they are declared. |

### Landscape {#Landscape}
```
public static final ShapeType Landscape
```

Landscape Shape.

### None {#None}
```
public static final ShapeType None
```

Original image shape.

### Portrait {#Portrait}
```
public static final ShapeType Portrait
```

Portrait Shape.

### getByValue {#getByValue-int-}
```
public static ShapeType getByValue(int value)
```



**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value |  |  |

### getValue {#getValue--}
```
public int getValue()
```



### valueOf {#valueOf-java.lang.String-}
Returns the enum constant of this type with the specified name.

### values {#values--}
```
public static ShapeType [] values()
```

Returns an array containing the constants of this enum type, in the order they are declared.

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