OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
imageExample.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <imageutils.h>
#include <png.h>
Include dependency graph for imageExample.c:

Go to the source code of this file.

Functions

void write_png_file (char *filename, int width, int height, uint8_t *image_data, int num_colors, uint8_t *palette)
 
int main (int c, char *v[])
 

Function Documentation

◆ main()

int main ( int  c,
char *  v[] 
)

An implementation of a Lon/Lat to UTM zone code written by Chuck Gantz chuck.nosp@m..gan.nosp@m.tz@gl.nosp@m.obal.nosp@m.star..nosp@m.com ...in 1998...found on http://www.gpsy.com/gpsinfo/geotoutm/, a site published by Karen Nakamura, last updated 22 June 2000.

Minor modifications to the code were made to eliminate deprecation warnings

Definition at line 60 of file imageExample.c.

◆ write_png_file()

void write_png_file ( char *  filename,
int  width,
int  height,
uint8_t *  image_data,
int  num_colors,
uint8_t *  palette 
)

Definition at line 7 of file imageExample.c.