Package org.apache.pdfbox.pdmodel.graphics.shading

Examples of org.apache.pdfbox.pdmodel.graphics.shading.Type1ShadingPaint


        Matrix ctm = getGraphicsState().getCurrentTransformationMatrix();
        Paint paint = null;
        switch (shadingType)
        {
            case 1:
                paint = new Type1ShadingPaint((PDShadingType1)shading, ctm, pageSize.height);
                break;
            case 2:
                paint = new AxialShadingPaint((PDShadingType2)shading, ctm, pageSize.height);
                break;
            case 3:
View Full Code Here


        PDShadingResources shadingResources = getShading();
        int shadingType = shadingResources != null ? shadingResources.getShadingType() : 0;
        switch (shadingType)
        {
            case PDShadingResources.SHADING_TYPE1:
                paint = new Type1ShadingPaint((PDShadingType1)getShading(), getMatrix(), pageHeight);
                break;
            case PDShadingResources.SHADING_TYPE2:
                paint = new AxialShadingPaint((PDShadingType2)getShading(), getMatrix(), pageHeight);
                break;
            case PDShadingResources.SHADING_TYPE3:
View Full Code Here

        PDShadingResources shadingResources = getShading();
        int shadingType = shadingResources != null ? shadingResources.getShadingType() : 0;
        switch (shadingType)
        {
            case PDShadingResources.SHADING_TYPE1:
                paint = new Type1ShadingPaint((PDShadingType1)getShading(), getMatrix(), pageHeight);
                break;
            case PDShadingResources.SHADING_TYPE2:
                paint = new AxialShadingPaint((PDShadingType2)getShading(), getMatrix(), pageHeight);
                break;
            case PDShadingResources.SHADING_TYPE3:
View Full Code Here

        Matrix ctm = getGraphicsState().getCurrentTransformationMatrix();
        Paint paint = null;
        switch (shadingType)
        {
            case 1:
                paint = new Type1ShadingPaint((PDShadingType1)shading, ctm, pageSize.height);
                break;
            case 2:
                paint = new AxialShadingPaint((PDShadingType2)shading, ctm, pageSize.height);
                break;
            case 3:
View Full Code Here

        Matrix ctm = getGraphicsState().getCurrentTransformationMatrix();
        Paint paint = null;
        switch (shadingType)
        {
            case 1:
                paint = new Type1ShadingPaint((PDShadingType1)shading, ctm, pageSize.height);
                break;
            case 2:
                paint = new AxialShadingPaint((PDShadingType2)shading, ctm, pageSize.height);
                break;
            case 3:
View Full Code Here

TOP

Related Classes of org.apache.pdfbox.pdmodel.graphics.shading.Type1ShadingPaint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.