BackgroundArtifact

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

public class BackgroundArtifact extends Artifact

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

Constructors

ConstructorDescription
BackgroundArtifact()Initializes BackgroundArtifact object.

Methods

MethodDescription
getBackgroundColor()Gets bacground color of background artifact
setBackgroundColor(Color value)Sets bacground color of background artifact
getBackgroundImage()Gets bacground image of background artifact
getBackgroundImageInternal()For internal usage only
setBackgroundImage(InputStream value)Sets bacground image of background artifact

BackgroundArtifact()

public BackgroundArtifact()

Initializes BackgroundArtifact object.

getBackgroundColor()

public Color getBackgroundColor()

Gets bacground color of background artifact

Returns: Color - Color object

setBackgroundColor(Color value)

public void setBackgroundColor(Color value)

Sets bacground color of background artifact

Parameters:

ParameterTypeDescription
valuejava.awt.ColorColor value

getBackgroundImage()

public InputStream getBackgroundImage()

Gets bacground image of background artifact

Returns: java.io.InputStream - InputStream object

getBackgroundImageInternal()

public System.IO.Stream getBackgroundImageInternal()

For internal usage only

Returns: com.aspose.ms.System.IO.Stream - internal object

setBackgroundImage(InputStream value)

public void setBackgroundImage(InputStream value)

Sets bacground image of background artifact

Parameters:

ParameterTypeDescription
valuejava.io.InputStreamInputStream object