Package com.itextpdf.layout.properties
Class BackgroundImage
java.lang.Object
com.itextpdf.layout.properties.BackgroundImage
Class to hold background-image property.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBackgroundImage(BackgroundImage backgroundImage) Creates a copy of passedBackgroundImageinstance. -
Method Summary
Modifier and TypeMethodDescriptionGets background-clip.Gets background-origin.Gets background-position.Gets the background size property.Get the image's blend mode.getForm()Gets initial image if it is instanceofPdfFormXObject, otherwise returns null.getImage()Gets initial image if it is instanceofPdfImageXObject, otherwise returns null.floatGets initial image height.floatGets initial image width.Gets linearGradientBuilder.Gets imageBackgroundRepeatinstance.booleanReturns is background specified.
-
Field Details
-
image
-
linearGradientBuilder
-
-
Constructor Details
-
BackgroundImage
Creates a copy of passedBackgroundImageinstance.- Parameters:
-
backgroundImage-BackgroundImagefor cloning
-
-
Method Details
-
getImage
Gets initial image if it is instanceofPdfImageXObject, otherwise returns null.- Returns:
-
PdfImageXObject
-
getForm
Gets initial image if it is instanceofPdfFormXObject, otherwise returns null.- Returns:
-
PdfFormXObject
-
getBackgroundPosition
Gets background-position.- Returns:
-
BackgroundPosition
-
getLinearGradientBuilder
Gets linearGradientBuilder.- Returns:
-
AbstractLinearGradientBuilder
-
isBackgroundSpecified
public boolean isBackgroundSpecified()Returns is background specified.- Returns:
-
trueif background is specified, otherwise false
-
getBackgroundSize
Gets the background size property.- Returns:
-
BackgroundSizeinstance
-
getImageWidth
public float getImageWidth()Gets initial image width.- Returns:
- the initial image width
-
getImageHeight
public float getImageHeight()Gets initial image height.- Returns:
- the initial image height
-
getRepeat
Gets imageBackgroundRepeatinstance.- Returns:
- the image background repeat
-
getBlendMode
Get the image's blend mode.- Returns:
-
the
BlendModerepresentation of the image's blend mode
-
getBackgroundClip
Gets background-clip.- Returns:
-
BackgroundBox
-
getBackgroundOrigin
Gets background-origin.- Returns:
-
BackgroundBox
-