**Inheritance:**
java.lang.Object, com.aspose.pdf.Artifact com.aspose.pdf.BackgroundArtifact, com.aspose.pdf.Artifact, com.aspose.pdf.BackgroundArtifact

**All Implemented Interfaces:**
com.aspose.ms.System.IDisposable, Closeable, AutoCloseable

```
public class BackgroundArtifact extends Artifact
```

Class describes background artifact. This artifact allows to set background of the page.

## Constructors

| Constructor | Description |
| --- | --- |
| [BackgroundArtifact](#BackgroundArtifact--) | Initializes BackgroundArtifact object. |

## Methods

| Method | Description |
| --- | --- |
| [getBackgroundColor](#getBackgroundColor--) | Gets bacground color of background artifact |
| [getBackgroundImage](#getBackgroundImage--) | Gets bacground image of background artifact |
| [getBackgroundImageInternal](#getBackgroundImageInternal--) | For internal usage only |
| [setBackgroundColor](#setBackgroundColor-java.awt.Color-) | Sets bacground color of background artifact |
| [setBackgroundImage](#setBackgroundImage-java.io.InputStream-) | Sets bacground image of background artifact |

### BackgroundArtifact {#BackgroundArtifact--}
```
public BackgroundArtifact()
```

Initializes BackgroundArtifact object.

### getBackgroundColor {#getBackgroundColor--}
```
public Color getBackgroundColor()
```

Gets bacground color of background artifact

**Returns:**
Color object

### getBackgroundImage {#getBackgroundImage--}
```
public InputStream getBackgroundImage()
```

Gets bacground image of background artifact

**Returns:**
InputStream object

### getBackgroundImageInternal {#getBackgroundImageInternal--}
```
public com.aspose.ms.System.IO.Stream getBackgroundImageInternal()
```

For internal usage only

**Returns:**
internal object

### setBackgroundColor {#setBackgroundColor-java.awt.Color-}
Sets bacground color of background artifact

### setBackgroundImage {#setBackgroundImage-java.io.InputStream-}
Sets bacground image of background artifact
