iText 8.0.5 API
|
Class to hold background-size property. More...
Public Member Functions |
|
BackgroundSize () | |
Creates a new BackgroundSize instance. More... |
|
virtual void | SetBackgroundSizeToValues (UnitValue width, UnitValue height) |
Clears all current properties and sets new width and height values. More... |
|
virtual void | SetBackgroundSizeToContain () |
Clears all size values and sets the "contain" property true . More... |
|
virtual void | SetBackgroundSizeToCover () |
Clears all size values and sets the "cover" property true . More... |
|
virtual UnitValue | GetBackgroundWidthSize () |
Gets the background width property of the image. More... |
|
virtual UnitValue | GetBackgroundHeightSize () |
Gets the background height property of the image. More... |
|
virtual bool | IsSpecificSize () |
Returns is size has specific property. More... |
|
virtual bool | IsContain () |
Returns value of the "contain" property. More... |
|
virtual bool | IsCover () |
Returns value of the "cover" property. More... |
|
Class to hold background-size property.
|
inline |
Creates a new BackgroundSize instance.
Creates a new BackgroundSize instance. The "cover" and "contain" properties are not set.
|
inlinevirtual |
Gets the background height property of the image.
|
inlinevirtual |
Gets the background width property of the image.
|
inlinevirtual |
Returns value of the "contain" property.
true
if property "contain" is set to the size, otherwise false.
|
inlinevirtual |
Returns value of the "cover" property.
true
if property "cover" is set to the size, otherwise false.
|
inlinevirtual |
Returns is size has specific property.
true
if size set to "contain" or "cover", otherwise false.
|
inlinevirtual |
Clears all size values and sets the "contain" property true
.
|
inlinevirtual |
Clears all size values and sets the "cover" property true
.
|
inlinevirtual |
Clears all current properties and sets new width and height values.
Clears all current properties and sets new width and height values. One of the parameters can be null. Note that in this case null property will be scaled so that it becomes proportionally equal with the non-null value. If both parameters are set to null, then the default image size will be used.