public class BackgroundImage extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BackgroundImage.Builder
BackgroundImage builder class. |
| Modifier and Type | Field and Description |
|---|---|
protected PdfXObject |
image |
protected AbstractLinearGradientBuilder |
linearGradientBuilder |
| Constructor and Description |
|---|
BackgroundImage(BackgroundImage backgroundImage)
Creates a copy of passed
BackgroundImage instance. |
| Modifier and Type | Method and Description |
|---|---|
BackgroundBox |
getBackgroundClip()
Gets background-clip.
|
BackgroundBox |
getBackgroundOrigin()
Gets background-origin.
|
BackgroundPosition |
getBackgroundPosition()
Gets background-position.
|
BackgroundSize |
getBackgroundSize()
Gets the background size property.
|
BlendMode |
getBlendMode()
Get the image's blend mode.
|
PdfFormXObject |
getForm()
Gets initial image if it is instanceof
PdfFormXObject, otherwise returns null. |
PdfImageXObject |
getImage()
Gets initial image if it is instanceof
PdfImageXObject, otherwise returns null. |
float |
getImageHeight()
Gets initial image height.
|
float |
getImageWidth()
Gets initial image width.
|
AbstractLinearGradientBuilder |
getLinearGradientBuilder()
Gets linearGradientBuilder.
|
BackgroundRepeat |
getRepeat()
Gets image
BackgroundRepeat instance. |
boolean |
isBackgroundSpecified()
Returns is background specified.
|
protected PdfXObject image
protected AbstractLinearGradientBuilder linearGradientBuilder
public BackgroundImage(BackgroundImage backgroundImage)
BackgroundImage instance.backgroundImage - BackgroundImage for cloningpublic PdfImageXObject getImage()
PdfImageXObject, otherwise returns null.PdfImageXObjectpublic PdfFormXObject getForm()
PdfFormXObject, otherwise returns null.PdfFormXObjectpublic BackgroundPosition getBackgroundPosition()
BackgroundPositionpublic AbstractLinearGradientBuilder getLinearGradientBuilder()
AbstractLinearGradientBuilderpublic boolean isBackgroundSpecified()
true if background is specified, otherwise falsepublic BackgroundSize getBackgroundSize()
BackgroundSize instancepublic float getImageWidth()
public float getImageHeight()
public BackgroundRepeat getRepeat()
BackgroundRepeat instance.public BlendMode getBlendMode()
BlendMode representation of the image's blend modepublic BackgroundBox getBackgroundClip()
BackgroundBoxpublic BackgroundBox getBackgroundOrigin()
BackgroundBoxCopyright © 1998–2022 iText Group NV. All rights reserved.