Annotation of QuadraticMandel/mypng.h, revision 1.1
1.1 ! cvsmgr 1: /*******************************************************************************
! 2: +* Soporte para librerķa png.
! 3: +*
! 4: +* 7.07.2005
! 5: +*
! 6: +* $Id: mypng.h,v 1.4 2009/11/25 09:23:03 rduran Exp $
! 7: +* $Name: $
! 8: *******************************************************************************/
! 9: # include "png.h"
! 10:
! 11: # define ERROR 1
! 12: # define OK 0
! 13: # define NUM_COLS (768)
! 14: # define NUM_ROWS (576)
! 15: # define SIDE 10.0
! 16: # define INCR (SIDE/NUM_COLS)
! 17: # define NUM_TEXT 7
! 18: # define TEXT_LENGTH 256
! 19:
! 20: typedef int BOOL;
! 21:
! 22: BOOL ReadPNGText(char *file_name);
! 23: BOOL WritePNG(char *file_name, png_colorpp pixels,
! 24: png_textp text_ptr, int num_text);
! 25: png_colorpp AllocatePNG(png_uint_32 height, png_uint_32 width);
! 26: void BuildTextPtr(png_textp info_text, double alpha, double beta, int itermax,
! 27: double side_len, double offset_x, double offset_y);
! 28: void DeallocatePNG(png_colorpp p, png_uint_32 height, png_uint_32 width);
! 29: double PixToCoordX(int x);
! 30: int CoordXToPix(double x);
! 31: double PixToCoordY(int y);
! 32: int CoordYToPix(double y);
! 33: void SetSide(double l);
! 34: void SetImageSize(int rows, int columns);
! 35: void SetOffsetX(double off_x);
! 36: void SetOffsetY(double off_y);
! 37: void DrawVertiLine(png_colorpp image, double coord_x, png_color p);
! 38: void DrawHorizLine(png_colorpp image, double coord_y, png_color p);
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>