Class BackgroundColorInfo

java.lang.Object
com.itextpdf.kernel.contrast.ColorInfo
com.itextpdf.kernel.contrast.BackgroundColorInfo

public class BackgroundColorInfo extends ColorInfo
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 Details

    • BackgroundColorInfo

      public BackgroundColorInfo (Color color, Path path)
      Constructs a new BackgroundColorInfo with 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