Class BackgroundImage
- Namespace
- iText.Layout.Properties
- Assembly
- itext.layout.dll
Class to hold background-image property.
public class BackgroundImage
- Inheritance
-
BackgroundImage
- Inherited Members
Constructors
BackgroundImage(BackgroundImage)
Creates a copy of passed BackgroundImage instance.
public BackgroundImage(BackgroundImage backgroundImage)
Parameters
backgroundImage
BackgroundImageBackgroundImage for cloning
Fields
image
protected PdfXObject image
Field Value
linearGradientBuilder
protected AbstractLinearGradientBuilder linearGradientBuilder
Field Value
Methods
GetBackgroundClip()
Gets background-clip.
public virtual BackgroundBox GetBackgroundClip()
Returns
GetBackgroundOrigin()
Gets background-origin.
public virtual BackgroundBox GetBackgroundOrigin()
Returns
GetBackgroundPosition()
Gets background-position.
public virtual BackgroundPosition GetBackgroundPosition()
Returns
GetBackgroundSize()
Gets the background size property.
public virtual BackgroundSize GetBackgroundSize()
Returns
- BackgroundSize
BackgroundSize instance
GetBlendMode()
Get the image's blend mode.
public virtual BlendMode GetBlendMode()
Returns
GetForm()
Gets initial image if it is instanceof PdfFormXObject , otherwise returns null.
public virtual PdfFormXObject GetForm()
Returns
GetImage()
Gets initial image if it is instanceof PdfImageXObject , otherwise returns null.
public virtual PdfImageXObject GetImage()
Returns
GetImageHeight()
Gets initial image height.
public virtual float GetImageHeight()
Returns
- float
the initial image height
GetImageWidth()
Gets initial image width.
public virtual float GetImageWidth()
Returns
- float
the initial image width
GetLinearGradientBuilder()
Gets linearGradientBuilder.
public virtual AbstractLinearGradientBuilder GetLinearGradientBuilder()
Returns
GetRepeat()
Gets image BackgroundRepeat instance.
public virtual BackgroundRepeat GetRepeat()
Returns
- BackgroundRepeat
the image background repeat
IsBackgroundSpecified()
Returns is background specified.
public virtual bool IsBackgroundSpecified()