File: image.h

package info (click to toggle)
pngphoon 1.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 600 kB
  • sloc: ansic: 5,652; sh: 33; makefile: 26
file content (22 lines) | stat: -rw-r--r-- 350 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

#ifndef _IMAGE_H_
#define _IMAGE_H_ _IMAGE_H_

#include <png.h>

struct image_s
{
   png_bytep bitmap;
   png_bytep *rowps;
   int       width;
   int       height;
   int       xbytes;
};

typedef struct image_s image_t;

image_t *imagecreate( int width, int height );
void imagedestroy( image_t *image );
void imageflip( image_t *image );

#endif