Package com.itextpdf.kernel.contrast
Class BackgroundColorInfo
java.lang.Object
com.itextpdf.kernel.contrast.ColorInfo
com.itextpdf.kernel.contrast.BackgroundColorInfo
Represents rendering information for a background element in contrast analysis.
This class extends ColorInfo to specifically represent background shapes and their colors, which are used to calculate contrast ratios against text elements for accessibility compliance.
Background elements include filled paths, rectangles, and other non-text content that may appear behind text on a PDF page.
-
Constructor Summary
ConstructorsConstructorDescriptionBackgroundColorInfo(Color color, Path path) Constructs a newBackgroundColorInfowith the specified color and path. -
Method Summary
-
Constructor Details
-
BackgroundColorInfo
Constructs a newBackgroundColorInfowith the specified color and path.- Parameters:
-
color- the fill color of the background element -
path- the geometric path defining the shape and position of the background element
-