Package ar.com.hjg.pngj.chunks

Examples of ar.com.hjg.pngj.chunks.PngMetadata


   
    public PNGWriter(File outputFile, int cols, int rows) {
      imgInfo = new ImageInfo(cols, rows, 8, false);
      writer = new PngWriter(outputFile, imgInfo, true);
     
      PngMetadata metaData = writer.getMetadata();
      metaData.setTimeNow();
      metaData.setText(PngChunkTextVar.KEY_Software, "OSM2World");
    }
View Full Code Here


      imgInfo = chunkseq.getImageInfo();
      interlaced = chunkseq.getDeinterlacer() != null;
      setMaxBytesMetadata(MAX_BYTES_METADATA_DEFAULT);
      setMaxTotalBytesRead(MAX_TOTAL_BYTES_READ_DEFAULT);
      setSkipChunkMaxSize(MAX_CHUNK_SIZE_SKIP);
      this.metadata = new PngMetadata(chunkseq.chunksList);
      // sets a default factory (with ImageLineInt),
      // this can be overwriten by a extended constructor, or by a setter
      setLineSetFactory(ImageLineSetDefault.getFactoryInt());
      rowNum = -1;
    } catch (RuntimeException e) {
View Full Code Here

  public PngWriter(OutputStream outputStream, ImageInfo imgInfo) {
    this.os = outputStream;
    this.imgInfo = imgInfo;
    // prealloc
    chunksList = new ChunksListForWrite(imgInfo);
    metadata = new PngMetadata(chunksList);
    pixelsWriter = createPixelsWriter(imgInfo);
    setCompLevel(9);
  }
View Full Code Here

  public PngWriter(OutputStream outputStream, ImageInfo imgInfo) {
    this.os = outputStream;
    this.imgInfo = imgInfo;
    // prealloc
    chunksList = new ChunksListForWrite(imgInfo);
    metadata = new PngMetadata(chunksList);
    filterStrat = new FilterWriteStrategy(imgInfo, FilterType.FILTER_DEFAULT); // can be changed
  }
View Full Code Here

      imgInfo = chunkseq.getImageInfo();
      interlaced = chunkseq.getDeinterlacer() != null;
      setMaxBytesMetadata(MAX_BYTES_METADATA_DEFAULT);
      setMaxTotalBytesRead(MAX_TOTAL_BYTES_READ_DEFAULT);
      setSkipChunkMaxSize(MAX_CHUNK_SIZE_SKIP);
      this.metadata = new PngMetadata(chunkseq.chunksList);
      // sets a default factory (with ImageLineInt),
      // this can be overwrite by a extended constructor, or by a setter
      setLineSetFactory(ImageLineSetDefault.getFactoryInt());
      rowNum = -1;
    } catch (RuntimeException e) {
View Full Code Here

TOP

Related Classes of ar.com.hjg.pngj.chunks.PngMetadata

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.