Ignore:
Timestamp:
Aug 27, 2010, 11:00:52 AM (11 years ago)
Author:
Silvan Scherrer
Message:

poppler update to 0.14.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/poppler/mypoppler/goo/PNGWriter.cc

    r277 r461  
    88// Copyright (C) 2009 Shen Liang <shenzhuxi@gmail.com>
    99// Copyright (C) 2009 Albert Astals Cid <aacid@kde.org>
     10// Copyright (C) 2009 Stefan Thomas <thomas@eload24.com>
     11// Copyright (C) 2010 Adrian Johnson <ajohnson@redneon.com>
    1012//
    1113//========================================================================
     
    2729}
    2830
    29 bool PNGWriter::init(FILE *f, int width, int height)
     31bool PNGWriter::init(FILE *f, int width, int height, int hDPI, int vDPI)
    3032{
    3133        /* initialize stuff */
     
    6365        png_set_IHDR(png_ptr, info_ptr, width, height, bit_depth, color_type, interlace_type, PNG_COMPRESSION_TYPE_DEFAULT, PNG_FILTER_TYPE_DEFAULT);
    6466
     67        // PNG_RESOLUTION_UNKNOWN means dots per inch
     68        png_set_pHYs(png_ptr, info_ptr, hDPI, vDPI, PNG_RESOLUTION_UNKNOWN);
     69
    6570        png_write_info(png_ptr, info_ptr);
    6671        if (setjmp(png_jmpbuf(png_ptr))) {
     
    7277}
    7378
    74 bool PNGWriter::writePointers(png_bytep *rowPointers)
     79bool PNGWriter::writePointers(unsigned char **rowPointers, int rowCount)
    7580{
    7681        png_write_image(png_ptr, rowPointers);
     
    8489}
    8590
    86 bool PNGWriter::writeRow(png_bytep *row)
     91bool PNGWriter::writeRow(unsigned char **row)
    8792{
    8893        // Write the row to the file
Note: See TracChangeset for help on using the changeset viewer.