Annotation of QuadraticMandel/mypng.h, revision 1.2

1.1       cvsmgr      1: /*******************************************************************************
1.2     ! cvsmgr      2: +*  Fractal set generation for quadratic maps.
        !             3: +*  Copyright (C) 2011, Raúl Durán Díaz, raul.duran@uah.es
        !             4: +*
        !             5: +*  This program is free software: you can redistribute it and/or modify
        !             6: +*  it under the terms of the GNU General Public License as published by
        !             7: +*  the Free Software Foundation, either version 3 of the License, or
        !             8: +*  (at your option) any later version.
        !             9: +*
        !            10: +*  This program is distributed in the hope that it will be useful,
        !            11: +*  but WITHOUT ANY WARRANTY; without even the implied warranty of
        !            12: +*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        !            13: +*  GNU General Public License for more details.
        !            14: +*
        !            15: +*  You should have received a copy of the GNU General Public License
        !            16: +*  along with this program.  If not, see <http://www.gnu.org/licenses/>.
        !            17: *******************************************************************************/
        !            18: /*******************************************************************************
1.1       cvsmgr     19: +* Soporte para librería png.
                     20: +*
                     21: +* 7.07.2005
                     22: +*
                     23: +* $Id: mypng.h,v 1.4 2009/11/25 09:23:03 rduran Exp $
                     24: +* $Name:  $
                     25: *******************************************************************************/
                     26: # include "png.h"
                     27: 
                     28: # define ERROR 1
                     29: # define OK    0
                     30: # define NUM_COLS (768)
                     31: # define NUM_ROWS (576)
                     32: # define SIDE     10.0
                     33: # define INCR     (SIDE/NUM_COLS)
                     34: # define NUM_TEXT      7
                     35: # define TEXT_LENGTH 256
                     36: 
                     37: typedef int BOOL;
                     38: 
                     39: BOOL           ReadPNGText(char *file_name);
                     40: BOOL           WritePNG(char *file_name, png_colorpp pixels,
                     41:                         png_textp text_ptr, int num_text);
                     42: png_colorpp    AllocatePNG(png_uint_32 height, png_uint_32 width);
                     43: void           BuildTextPtr(png_textp info_text, double alpha, double beta, int itermax,
                     44:                             double side_len, double offset_x, double offset_y);
                     45: void           DeallocatePNG(png_colorpp p, png_uint_32 height, png_uint_32 width);
                     46: double         PixToCoordX(int x);
                     47: int            CoordXToPix(double x);
                     48: double         PixToCoordY(int y);
                     49: int            CoordYToPix(double y);
                     50: void           SetSide(double l);
                     51: void           SetImageSize(int rows, int columns);
                     52: void           SetOffsetX(double off_x);
                     53: void           SetOffsetY(double off_y);
                     54: void           DrawVertiLine(png_colorpp image, double coord_x, png_color p);
                     55: void           DrawHorizLine(png_colorpp image, double coord_y, png_color p);

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>