Package org.pdfclown.documents.contents.objects

Examples of org.pdfclown.documents.contents.objects.InlineImageHeader


    PrimitiveComposer composer
    )
  {
    return composer.add(
      new InlineImage(
        new InlineImageHeader(
          (List<PdfDirectObject>)(List<? extends PdfDirectObject>)Arrays.asList(
            PdfName.W, new PdfInteger(getWidth()),
            PdfName.H, new PdfInteger(getHeight()),
            PdfName.CS, PdfName.RGB,
            PdfName.BPC, new PdfInteger(getBitsPerComponent()),
View Full Code Here


    /*
      NOTE: Inline images use a peculiar syntax that's an exception to the usual rule
      that the data in a content stream is interpreted according to the standard PDF syntax
      for objects.
    */
    InlineImageHeader header;
    {
      final List<PdfDirectObject> operands = new ArrayList<PdfDirectObject>();
      // Parsing the image entries...
      while(moveNext()
        && tokenType != TokenTypeEnum.Keyword) // Not keyword (i.e. end at image data beginning (ID operator)).
      {operands.add(parsePdfObject());}
      header = new InlineImageHeader(operands);
    }

    InlineImageBody body;
    {
      moveNext();
View Full Code Here

TOP

Related Classes of org.pdfclown.documents.contents.objects.InlineImageHeader

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.