BackgroundImage { public BackgroundImage(BackgroundImage backgroundImage) { this(backgroundImage.getImage() == null ? (PdfXObject) backgroundImage.getForm() : backgroundImage.getImage(), backgroundImage.getRepeat(), backgroundImage.getBackgroundPosition(), backgroundImage.getBackgroundSize(), backgroundImage.getLinearGradientBuilder(), backgroundImage.getBlendMode(), backgroundImage.getBackgroundClip(), backgroundImage.getBackgroundOrigin()); repeatX = backgroundImage.isRepeatX(); repeatY = backgroundImage.isRepeatY(); } BackgroundImage(BackgroundImage backgroundImage); @Deprecated  BackgroundImage(final PdfImageXObject image, final BackgroundRepeat repeat, final BlendMode blendMode); @Deprecated  BackgroundImage(final PdfFormXObject image, final BackgroundRepeat repeat, final BlendMode blendMode); @Deprecated  BackgroundImage(final PdfImageXObject image, final BackgroundRepeat repeat); @Deprecated  BackgroundImage(final PdfFormXObject image, final BackgroundRepeat repeat); @Deprecated  BackgroundImage(final PdfImageXObject image); @Deprecated  BackgroundImage(final PdfFormXObject image); @Deprecated  BackgroundImage(final PdfImageXObject image, final boolean repeatX, final boolean repeatY); @Deprecated  BackgroundImage(final PdfFormXObject image, final boolean repeatX, final boolean repeatY); @Deprecated  BackgroundImage(final AbstractLinearGradientBuilder linearGradientBuilder); @Deprecated  BackgroundImage(final AbstractLinearGradientBuilder linearGradientBuilder, final BlendMode blendMode); private  BackgroundImage(PdfXObject image, BackgroundRepeat repeat, BackgroundPosition position,
            BackgroundSize backgroundSize, AbstractLinearGradientBuilder linearGradientBuilder,
            BlendMode blendMode, BackgroundBox clip, BackgroundBox origin); PdfImageXObject getImage(); PdfFormXObject getForm(); BackgroundPosition getBackgroundPosition(); AbstractLinearGradientBuilder getLinearGradientBuilder(); boolean isBackgroundSpecified(); @Deprecated boolean isRepeatX(); @Deprecated boolean isRepeatY(); BackgroundSize getBackgroundSize(); float getImageWidth(); float getImageHeight(); @Deprecated float getWidth(); @Deprecated float getHeight(); BackgroundRepeat getRepeat(); BlendMode getBlendMode(); BackgroundBox getBackgroundClip(); BackgroundBox getBackgroundOrigin();  }
@Test public void backgroundImage() throws IOException, InterruptedException { PdfImageXObject xObject = new PdfImageXObject(ImageDataFactory.create(SOURCE_FOLDER + "itis.jpg")); BackgroundImage backgroundImage = new BackgroundImage.Builder().setImage(xObject).build(); Assert.assertEquals(BackgroundRepeatValue.REPEAT, backgroundImage.getRepeat().getXAxisRepeat()); Assert.assertEquals(BackgroundRepeatValue.REPEAT, backgroundImage.getRepeat().getYAxisRepeat()); backgroundImageGenericTest("backgroundImage", backgroundImage); }