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 cloning
public PdfImageXObject getImage()
PdfImageXObject
, otherwise returns null.
PdfImageXObject
public PdfFormXObject getForm()
PdfFormXObject
, otherwise returns null.
PdfFormXObject
public BackgroundPosition getBackgroundPosition()
BackgroundPosition
public AbstractLinearGradientBuilder getLinearGradientBuilder()
AbstractLinearGradientBuilder
public boolean isBackgroundSpecified()
true
if background is specified, otherwise false
public BackgroundSize getBackgroundSize()
BackgroundSize
instance
public float getImageWidth()
public float getImageHeight()
public BackgroundRepeat getRepeat()
BackgroundRepeat
instance.
public BlendMode getBlendMode()
BlendMode
representation of the image's blend mode
public BackgroundBox getBackgroundClip()
BackgroundBox
public BackgroundBox getBackgroundOrigin()
BackgroundBox
Copyright © 1998–2022 iText Group NV. All rights reserved.