Package com.itextpdf.layout.properties
Class BackgroundImage
java.lang.Object
com.itextpdf.layout.properties.BackgroundImage
Class to hold background-image property.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBackgroundImage
(BackgroundImage backgroundImage) Creates a copy of passedBackgroundImage
instance. -
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.float
Gets initial image height.float
Gets initial image width.Gets linearGradientBuilder.Gets imageBackgroundRepeat
instance.boolean
Returns is background specified.
-
Field Details
-
image
-
linearGradientBuilder
-
-
Constructor Details
-
BackgroundImage
Creates a copy of passedBackgroundImage
instance.- Parameters:
-
backgroundImage
-BackgroundImage
for 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:
-
true
if background is specified, otherwise false
-
getBackgroundSize
Gets the background size property.- Returns:
-
BackgroundSize
instance
-
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 imageBackgroundRepeat
instance.- Returns:
- the image background repeat
-
getBlendMode
Get the image's blend mode.- Returns:
-
the
BlendMode
representation of the image's blend mode
-
getBackgroundClip
Gets background-clip.- Returns:
-
BackgroundBox
-
getBackgroundOrigin
Gets background-origin.- Returns:
-
BackgroundBox
-