File: image.h

package info (click to toggle)
pngphoon 1.2-1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, stretch
  • size: 552 kB
  • ctags: 106
  • sloc: ansic: 5,533; sh: 33; makefile: 16
file content (21 lines) | stat: -rw-r--r-- 316 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

#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 );

#endif