Examples of writeHeader()


Examples of com.itextpdf.text.pdf.codec.PngWriter.writeHeader()

                    }
                } else {
                    // todo: add decode transformation for other depths
                }
            }
            png.writeHeader(width, height, pngBitDepth, pngColorType);
            if (icc != null)
                png.writeIccProfile(icc);
            if (palette != null)
                png.writePalette(palette);
            png.writeData(imageBytes, stride);
View Full Code Here

Examples of com.itextpdf.text.pdf.codec.PngWriter.writeHeader()

            wr.writeFile(ms);
            fileType = TYPE_TIF;
            return ms.toByteArray();
        }
        PngWriter png = new PngWriter(ms);
        png.writeHeader(width, height, pngBitDepth, pngColorType);
        if (icc != null)
            png.writeIccProfile(icc);
        if (palette != null)
            png.writePalette(palette);
        png.writeData(streamBytes, stride);
View Full Code Here

Examples of com.itextpdf.text.pdf.codec.PngWriter.writeHeader()

                    }
                } else {
                    // todo: add decode transformation for other depths
                }
            }
            png.writeHeader(width, height, pngBitDepth, pngColorType);
            if (icc != null)
                png.writeIccProfile(icc);
            if (palette != null)
                png.writePalette(palette);
            png.writeData(imageBytes, stride);
View Full Code Here

Examples of com.itextpdf.text.pdf.codec.PngWriter.writeHeader()

                    }
                } else {
                    // todo: add decode transformation for other depths
                }
            }
            png.writeHeader(width, height, pngBitDepth, pngColorType);
            if (icc != null)
                png.writeIccProfile(icc);
            if (palette != null)
                png.writePalette(palette);
            png.writeData(imageBytes, stride);
View Full Code Here

Examples of com.psddev.cms.tool.ToolPageContext.writeHeader()

                    mainId));
        }

        page.getResponse().setContentType("text/html");

        page.writeHeader(null, false);
            page.writeStart("script", "type", "text/javascript");
                page.writeRaw("var CONTEXT_PATH = '");
                page.writeRaw(page.js(page.fullyQualifiedToolUrl(CmsTool.class, "/")));
                page.writeRaw("';");
            page.writeEnd();
View Full Code Here

Examples of com.psddev.cms.tool.ToolPageContext.writeHeader()

                                new ImageTag.Builder(item).setHeight(100).toUrl() :
                                item.getPublicUrl());
            }
        });

        page.writeHeader();
            page.writeStart("div", "class", "widget");
                page.writeStart("h1", "class", "icon icon-search");
                    page.writeHtml("Advanced Search");
                page.writeEnd();
View Full Code Here

Examples of com.xuggle.xuggler.IContainer.writeHeader()

    coder.setSampleRate(22050);
    coder.setChannels(1);
    retval = coder.open();
    assertTrue("could not open coder", retval >= 0);
   
    retval = container.writeHeader();
    assertTrue("could not write header", retval >= 0);
   
    retval = container.writeTrailer();
    assertTrue("could not write header", retval >= 0);
  
View Full Code Here

Examples of com.xuggle.xuggler.IContainer.writeHeader()

    coder.setCodec(ICodec.ID.CODEC_ID_MP3);
    coder.setChannels(1);
    coder.setSampleRate(22050);
    retval = coder.open();
    assertTrue("could not open audio codec", retval >= 0);
    retval = container.writeHeader();
    assertTrue("could not write header", retval >= 0);
   
    // now close the codec
    retval = coder.close();
    assertTrue("could not close audio codec", retval >= 0);
View Full Code Here

Examples of com.xuggle.xuggler.IContainer.writeHeader()

    coder.setCodec(ICodec.ID.CODEC_ID_MP3);
    coder.setChannels(1);
    coder.setSampleRate(22050);
    retval = coder.open();
    assertTrue("could not open audio codec", retval >= 0);
    retval = container.writeHeader();
    assertTrue("could not write header", retval >= 0);
   
    // Try a flush
    retval = container.flushPackets();
    assertTrue("could not flush packets", retval >= 0);
View Full Code Here

Examples of com.xuggle.xuggler.IContainer.writeHeader()

   
    int retval = -1;
    retval = container.open(mSampleFile, IContainer.Type.READ, null);
    assertTrue("could not open file", retval >= 0);
   
    retval = container.writeHeader();
    assertTrue("should fail on read only file", retval < 0);
   
    IPacket pkt = IPacket.make();
    retval = container.writePacket(pkt);
    assertTrue("should fail on read only file", retval < 0);
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.