All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jpedal.color.PdfTexturePaint Maven / Gradle / Ivy

/*
 * ===========================================
 * Java Pdf Extraction Decoding Access Library
 * ===========================================
 *
 * Project Info:  http://www.idrsolutions.com
 * Help section for developers at http://www.idrsolutions.com/support/
 *
 * (C) Copyright 1997-2017 IDRsolutions and Contributors.
 *
 * This file is part of JPedal/JPDF2HTML5
 *
 @LICENSE@
 *
 * ---------------
 * PdfTexturePaint.java
 * ---------------
 */
package org.jpedal.color;


import java.awt.TexturePaint;
import java.awt.geom.Rectangle2D;
import java.awt.image.BufferedImage;

public class PdfTexturePaint extends TexturePaint implements PdfPaint {
    public PdfTexturePaint(final BufferedImage txtr, final Rectangle2D anchor) {
        super(txtr, anchor);
    }

    @Override
    public void setScaling(final double cropX, final double cropH, final float scaling, final float textX, final float textY) {
    }

    @Override
    public boolean isPattern() {
        return false;
    }

    @SuppressWarnings({"UnusedParameters", "UnusedDeclaration"})
    public void setPattern(final int dummy) {
    }

    @Override
    public int getRGB() {
        return 0;
    }

    @Override
    public boolean isTexture() {
        return true;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy