IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 27, 2005, 4:14:38 PM (21 years ago)
Author:
eugene
Message:

added bDrawFunctions to create PNG / PPM images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/kapa/graph/PNGit.c

    r4769 r5610  
    22# include <png.h>
    33
    4 int PNGit () {
     4int PNGit_old () {
    55
    66  FILE *f;
     
    3535  ALLOCATE (rows, png_byte *, dy);
    3636  for (i = 0; i < dy; i++) {
    37     ALLOCATE (rows[i], png_byte, 3*dx);
     37    ALLOCATE (rows[i], png_byte, dx);
    3838  }
    3939
     
    120120            found = TRUE;
    121121            rows[j][i] = k;
    122             /*
    123               rows[j][3*i+0] = palette[k].red;
    124               rows[j][3*i+1] = palette[k].green;
    125               rows[j][3*i+2] = palette[k].blue;
    126             */
    127122          }
    128123        }
Note: See TracChangeset for help on using the changeset viewer.