Examples of ImageParameters


Examples of org.apache.pdfbox.util.ImageParameters

                if( next.equals( "BI" ) )
                {
                    lastBIToken = (PDFOperator)retval;
                    COSDictionary imageParams = new COSDictionary();
                    lastBIToken.setImageParameters( new ImageParameters( imageParams ) );
                    Object nextToken = null;
                    while( (nextToken = parseNextToken()) instanceof COSName )
                    {
                        Object value = parseNextToken();
                        imageParams.setItem( (COSName)nextToken, (COSBase)value );
View Full Code Here

Examples of org.pdfbox.util.ImageParameters

    public void process(PDFOperator operator, List argumentsthrows IOException
    {
        PageDrawer drawer = (PageDrawer)context;
        Graphics2D graphics = drawer.getGraphics();
        //begin inline image object
        ImageParameters params = operator.getImageParameters();
        PDInlinedImage image = new PDInlinedImage();
        image.setImageParameters( params );
        image.setImageData( operator.getImageData() );
        BufferedImage awtImage = image.createImage();
       
View Full Code Here

Examples of org.pdfbox.util.ImageParameters

                if( next.equals( "BI" ) )
                {
                    lastBIToken = (PDFOperator)retval;
                    COSDictionary imageParams = new COSDictionary();
                    lastBIToken.setImageParameters( new ImageParameters( imageParams ) );
                    Object nextToken = null;
                    while( (nextToken = parseNextToken()) instanceof COSName )
                    {
                        Object value = parseNextToken();
                        imageParams.setItem( (COSName)nextToken, (COSBase)value );
View Full Code Here

Examples of org.pdfbox.util.ImageParameters

        {
            PDFOperator op = (PDFOperator)o;
            if( op.getOperation().equals( "BI" ) )
            {
                output.write( "BI".getBytes() );
                ImageParameters params = op.getImageParameters();
                COSDictionary dic = params.getDictionary();
                Iterator iter = dic.keyList().iterator();
                while( iter.hasNext() )
                {
                    COSName key = (COSName)iter.next();
                    Object value = dic.getDictionaryObject( key );
View Full Code Here

Examples of org.pdfbox.util.ImageParameters

        {
            //(PDF 1.2) Begin marked-content sequence with property list
        }
        else **/if( operation.equals( "BI" ) )
        {
            ImageParameters params = operator.getImageParameters();
            image = new PDInlinedImage();
            image.setImageParameters( params );
            image.setImageData( operator.getImageData() );
            //begin inline image object
        }/**
 
View Full Code Here

Examples of vash.ImageParameters

  @Before
  public void setUp() throws Exception {
    this.opt = new Options();
    this.opt.setWidth(128);
    this.opt.setHeight(128);
    this.ip = new ImageParameters(this.opt.getWidth(), this.opt.getHeight());
  }
View Full Code Here

Examples of vash.ImageParameters

  @Test public void testLinGradDiagRightFill() { this.runTest("2102", new LinearGradient(-1, -1, 0, 0)); }
  // Note: the rest of these codify existing, non-optimal behavior
  @Test public void testLinGradDiagNorthSouth(){ this.runTest("2103", new LinearGradient(0, -1, 0, 1)); }
  @Test public void testLinGradDiagSouthNorth(){ this.runTest("2104", new LinearGradient(0, 1, 0, -1)); }
  @Test public void testLinGradDiagNonSquareNorthSouth() {
    this.ip = new ImageParameters(256, 128);
    this.opt.setWidth(256);
    this.runTest("2105", new LinearGradient(0, -1, 0, 1));
  }
View Full Code Here

Examples of vash.ImageParameters

    this.ip = new ImageParameters(256, 128);
    this.opt.setWidth(256);
    this.runTest("2105", new LinearGradient(0, -1, 0, 1));
  }
  @Test public void testLinGradDiagNonSquareSouthNorth() {
    this.ip = new ImageParameters(256, 128);
    this.opt.setWidth(256);
    this.runTest("2106", new LinearGradient(0, 1, 0, -1)); }
View Full Code Here

Examples of vash.ImageParameters

  @Test public void testLinGradDiagNorthSouthTiltedBig()  {
    this.runTest("2107", new LinearGradient(0, -1, 1, 1)); }
  @Test public void testLinGradDiagNorthSouthTiltedSmall()  {
    this.runTest("2108", new LinearGradient(0, -1, 0.09, 1)); }
  @Test public void testLinGradDiagNonSquareNorthSouthTiltedBig()  {
    this.ip = new ImageParameters(256, 128);
    this.opt.setWidth(256);
    this.runTest("2109", new LinearGradient(0, -1, 1, 1)); }
View Full Code Here

Examples of vash.ImageParameters

  @Test public void testLinGradDiagNonSquareNorthSouthTiltedBig()  {
    this.ip = new ImageParameters(256, 128);
    this.opt.setWidth(256);
    this.runTest("2109", new LinearGradient(0, -1, 1, 1)); }
  @Test public void testLinGradDiagNonSquareNorthSouthTiltedSmall()  {
    this.ip = new ImageParameters(256, 128);
    this.opt.setWidth(256);
    this.runTest("2110", new LinearGradient(0, -1, 0.09, 1)); }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.