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 |
protected boolean |
repeatX
Deprecated.
replace this field with
BackgroundRepeat instance
|
protected boolean |
repeatY
Deprecated.
replace this field with
BackgroundRepeat instance
|
Constructor and Description |
---|
BackgroundImage(AbstractLinearGradientBuilder linearGradientBuilder)
Deprecated.
Remove this constructor in 7.2.
|
BackgroundImage(AbstractLinearGradientBuilder linearGradientBuilder, BlendMode blendMode)
Deprecated.
Remove this constructor in 7.2.
|
BackgroundImage(BackgroundImage backgroundImage)
Creates a copy of passed BackgroundImage instance.
|
BackgroundImage(PdfFormXObject image)
Deprecated.
Remove this constructor in 7.2.
|
BackgroundImage(PdfFormXObject image, BackgroundRepeat repeat)
Deprecated.
Remove this constructor in 7.2.
|
BackgroundImage(PdfFormXObject image, BackgroundRepeat repeat, BlendMode blendMode)
Deprecated.
Remove this constructor in 7.2.
|
BackgroundImage(PdfFormXObject image, boolean repeatX, boolean repeatY)
Deprecated.
Remove this constructor in 7.2.
|
BackgroundImage(PdfImageXObject image)
Deprecated.
Remove this constructor in 7.2.
|
BackgroundImage(PdfImageXObject image, BackgroundRepeat repeat)
Deprecated.
Remove this constructor in 7.2.
|
BackgroundImage(PdfImageXObject image, BackgroundRepeat repeat, BlendMode blendMode)
Deprecated.
Remove this constructor in 7.2.
|
BackgroundImage(PdfImageXObject image, boolean repeatX, boolean repeatY)
Deprecated.
Remove this constructor in 7.2.
|
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() |
float |
getHeight()
Deprecated.
To be removed in 7.2. Use
getImageHeight() instead.
|
PdfImageXObject |
getImage() |
float |
getImageHeight()
Gets initial image height.
|
float |
getImageWidth()
Gets initial image width.
|
AbstractLinearGradientBuilder |
getLinearGradientBuilder() |
BackgroundRepeat |
getRepeat()
Gets image BackgroundRepeat instance.
|
float |
getWidth()
Deprecated.
To be removed in 7.2. Use
getImageWidth() instead.
|
boolean |
isBackgroundSpecified() |
boolean |
isRepeatX()
Deprecated.
|
boolean |
isRepeatY()
Deprecated.
|
protected PdfXObject image
@Deprecated protected boolean repeatX
BackgroundRepeat
instance
BackgroundRepeat.BackgroundRepeatValue.NO_REPEAT
for X axis.
@Deprecated protected boolean repeatY
BackgroundRepeat
instance
BackgroundRepeat.BackgroundRepeatValue.NO_REPEAT
for Y axis.
protected AbstractLinearGradientBuilder linearGradientBuilder
public BackgroundImage(BackgroundImage backgroundImage)
BackgroundImage
instance.
backgroundImage
- BackgroundImage
for cloning
@Deprecated public BackgroundImage(PdfImageXObject image, BackgroundRepeat repeat, BlendMode blendMode)
BackgroundImage
instance.
image
- background image property. PdfImageXObject
instance.
repeat
- background repeat property. BackgroundRepeat
instance.
blendMode
- the image's blend mode. BlendMode
instance.
@Deprecated public BackgroundImage(PdfFormXObject image, BackgroundRepeat repeat, BlendMode blendMode)
BackgroundImage
instance.
image
- background image property. PdfFormXObject
instance.
repeat
- background repeat property. BackgroundRepeat
instance.
blendMode
- the image's blend mode. BlendMode
instance.
@Deprecated public BackgroundImage(PdfImageXObject image, BackgroundRepeat repeat)
BackgroundImage
instance.
image
- background-image property. PdfImageXObject
instance.
repeat
- background-repeat property. BackgroundRepeat
instance.
@Deprecated public BackgroundImage(PdfFormXObject image, BackgroundRepeat repeat)
BackgroundImage
instance.
image
- background-image property. PdfFormXObject
instance.
repeat
- background-repeat property. BackgroundRepeat
instance.
@Deprecated public BackgroundImage(PdfImageXObject image)
BackgroundImage
instance.
image
- background-image property. PdfImageXObject
instance.
@Deprecated public BackgroundImage(PdfFormXObject image)
BackgroundImage
instance.
image
- background-image property. PdfFormXObject
instance.
@Deprecated public BackgroundImage(PdfImageXObject image, boolean repeatX, boolean repeatY)
BackgroundImage
instance.
image
- background-image property. PdfImageXObject
instance.
repeatX
- defines whether background is repeated in x dimension.
repeatY
- defines whether background is repeated in y dimension.
@Deprecated public BackgroundImage(PdfFormXObject image, boolean repeatX, boolean repeatY)
BackgroundImage
instance.
image
- background-image property. PdfFormXObject
instance.
repeatX
- defines whether background is repeated in x dimension.
repeatY
- defines whether background is repeated in y dimension.
@Deprecated public BackgroundImage(AbstractLinearGradientBuilder linearGradientBuilder)
BackgroundImage
instance with linear gradient.
linearGradientBuilder
- the linear gradient builder representing the background image. AbstractLinearGradientBuilder
instance.
@Deprecated public BackgroundImage(AbstractLinearGradientBuilder linearGradientBuilder, BlendMode blendMode)
BackgroundImage
instance with linear gradient and custom blending mode.
linearGradientBuilder
- the linear gradient builder representing the background image. AbstractLinearGradientBuilder
instance.
blendMode
- the image's blend mode. BlendMode
instance.
public PdfImageXObject getImage()
public PdfFormXObject getForm()
public BackgroundPosition getBackgroundPosition()
BackgroundPosition
public AbstractLinearGradientBuilder getLinearGradientBuilder()
public boolean isBackgroundSpecified()
@Deprecated public boolean isRepeatX()
@Deprecated public boolean isRepeatY()
public BackgroundSize getBackgroundSize()
BackgroundSize
instance
public float getImageWidth()
public float getImageHeight()
@Deprecated public float getWidth()
getImageWidth()
instead.
@Deprecated public float getHeight()
getImageHeight()
instead.
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–2021 iText Group NV. All rights reserved.