
**Inheritance:** java.lang.Object, ImageOptionsBase

The png file format create options.

## Constructors

| Constructor | Description |
| --- | --- |
| [PngOptions()](#PngOptions) | Initializes a new instance of the PngOptions class. |
| [PngOptions(PngOptions pngOptions)](#PngOptions-com.aspose.cad.imageoptions.PngOptions) | Initializes a new instance of the JpegOptions class. |

## Methods

| Method | Description |
| --- | --- |
| [getTargetFormat()](#getTargetFormat) |  |
| [getXmpData()](#getXmpData) | Gets or sets the XMP metadata container. |
| [setXmpData(com.aspose.cad.xmp.XmpPacketWrapper value)](#setXmpData-com.aspose.cad.xmp.XmpPacketWrapper) | Gets or sets the XMP metadata container. |
| [getColorType()](#getColorType) | Gets or sets the type of the color. |
| [setColorType(int value)](#setColorType-int) | Gets or sets the type of the color. |
| [getProgressive()](#getProgressive) | Gets or sets a value indicating whether this PngOptions is progressive. |
| [setProgressive(boolean value)](#setProgressive-boolean) | Gets or sets a value indicating whether this PngOptions is progressive. |
| [getFilterType()](#getFilterType) | Gets or sets the filter type used during png file save process. |
| [setFilterType(int value)](#setFilterType-int) | Gets or sets the filter type used during png file save process. |
| [getCompressionLevel()](#getCompressionLevel) | The png image compression level in the 0-9 range, where 9 is maximum compression and 0 is store mode. |
| [setCompressionLevel(int value)](#setCompressionLevel-int) | The png image compression level in the 0-9 range, where 9 is maximum compression and 0 is store mode. |
| [getBitDepth()](#getBitDepth) | The bit depth. |
| [setBitDepth(byte value)](#setBitDepth-byte) | The bit depth. |

### PngOptions() {#PngOptions}
```java
public PngOptions()
```

Initializes a new instance of the PngOptions class.

### PngOptions(PngOptions pngOptions) {#PngOptions-com.aspose.cad.imageoptions.PngOptions}
```java
public PngOptions(PngOptions pngOptions)
```

Initializes a new instance of the JpegOptions class.

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| pngOptions | PngOptions | The PNG options. |

### getTargetFormat() {#getTargetFormat}
```java
public long getTargetFormat()
```

**Returns:** long

### getXmpData() {#getXmpData}
```java
public com.aspose.cad.xmp.XmpPacketWrapper getXmpData()
```

Gets or sets the XMP metadata container.

**Returns:** com.aspose.cad.xmp.XmpPacketWrapper - The XMP data container.

### setXmpData(com.aspose.cad.xmp.XmpPacketWrapper value) {#setXmpData-com.aspose.cad.xmp.XmpPacketWrapper}
```java
public void setXmpData(com.aspose.cad.xmp.XmpPacketWrapper value)
```

Gets or sets the XMP metadata container.

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| value | com.aspose.cad.xmp.XmpPacketWrapper | The XMP data container. |

### getColorType() {#getColorType}
```java
public int getColorType()
```

Gets or sets the type of the color.

**Returns:** int - The type of the color.

### setColorType(int value) {#setColorType-int}
```java
public void setColorType(int value)
```

Gets or sets the type of the color.

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| value | int | The type of the color. |

### getProgressive() {#getProgressive}
```java
public boolean getProgressive()
```

Gets or sets a value indicating whether this PngOptions is progressive.

**Returns:** boolean - true if progressive; otherwise, false .

### setProgressive(boolean value) {#setProgressive-boolean}
```java
public void setProgressive(boolean value)
```

Gets or sets a value indicating whether this PngOptions is progressive.

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | true if progressive; otherwise, false . |

### getFilterType() {#getFilterType}
```java
public int getFilterType()
```

Gets or sets the filter type used during png file save process.

**Returns:** int

### setFilterType(int value) {#setFilterType-int}
```java
public void setFilterType(int value)
```

Gets or sets the filter type used during png file save process.

### getCompressionLevel() {#getCompressionLevel}
```java
public int getCompressionLevel()
```

The png image compression level in the 0-9 range, where 9 is maximum compression and 0 is store mode.

**Returns:** int

### setCompressionLevel(int value) {#setCompressionLevel-int}
```java
public void setCompressionLevel(int value)
```

The png image compression level in the 0-9 range, where 9 is maximum compression and 0 is store mode.

### getBitDepth() {#getBitDepth}
```java
public byte getBitDepth()
```

The bit depth.

**Returns:** byte

### setBitDepth(byte value) {#setBitDepth-byte}
```java
public void setBitDepth(byte value)
```

The bit depth.

