Classes | Defines | Typedefs | Functions

pngdib.h File Reference

Go to the source code of this file.

Classes

struct  PNGD_COLOR_struct
struct  PNGD_D2PINFO_struct
struct  PNGD_IMAGEINFO_struct
struct  PNGD_P2DINFO_struct

Defines

#define PNGDIB_HEADER_VERSION   20200
#define PNGDIB_HEADER_VERSION_STRING   "2.2.0"
#define PNGD_E_SUCCESS   0
#define PNGD_E_ERROR   1
#define PNGD_E_VERSION   2
#define PNGD_E_NOMEM   3
#define PNGD_E_UNSUPP   4
#define PNGD_E_LIBPNG   5
#define PNGD_E_BADBMP   6
#define PNGD_E_BADPNG   7
#define PNGD_E_READ   8
#define PNGD_E_WRITE   9
#define PNGD_INTERLACED   0x00000001
#define PNGD_NO_GAMMA_LABEL   0x00000002
#define PNGD_USE_BKGD   0x00000001
#define PNGD_USE_CUSTOM_BG   0x00000002
#define PNGD_GAMMA_CORRECTION   0x00000004
#define PNGD_USE_HEAPALLOC   0x00000008
#define PNGD_BG_RETURNED   0x00010000
#define PNGD_RES_RETURNED   0x00020000
#define PNGD_GAMMA_RETURNED   0x00040000

Typedefs

typedef struct PNGD_D2PINFO_struct PNGD_D2PINFO
typedef struct
PNGD_IMAGEINFO_struct 
PNGD_IMAGEINFO
typedef struct PNGD_P2DINFO_struct PNGD_P2DINFO

Functions

int read_png_to_dib (PNGD_P2DINFO *p2dinfo)
int write_dib_to_png (PNGD_D2PINFO *d2pinfo)
char * pngdib_get_version_string (void)
int pngdib_get_version (void)

Define Documentation

#define PNGD_BG_RETURNED   0x00010000
#define PNGD_E_BADBMP   6

Referenced by pngd_get_error_message().

#define PNGD_E_BADPNG   7

Referenced by pngd_get_error_message().

#define PNGD_E_ERROR   1

Referenced by pngd_get_error_message().

#define PNGD_E_LIBPNG   5

Referenced by pngd_get_error_message().

#define PNGD_E_NOMEM   3

Referenced by pngd_get_error_message().

#define PNGD_E_READ   8

Referenced by pngd_get_error_message().

#define PNGD_E_SUCCESS   0
#define PNGD_E_UNSUPP   4

Referenced by pngd_get_error_message().

#define PNGD_E_VERSION   2

Referenced by pngd_get_error_message().

#define PNGD_E_WRITE   9

Referenced by pngd_get_error_message().

#define PNGD_GAMMA_CORRECTION   0x00000004

Referenced by read_png_to_dib().

#define PNGD_GAMMA_RETURNED   0x00040000
#define PNGD_INTERLACED   0x00000001

Referenced by write_dib_to_png().

#define PNGD_NO_GAMMA_LABEL   0x00000002

Referenced by write_dib_to_png().

#define PNGD_RES_RETURNED   0x00020000
#define PNGD_USE_BKGD   0x00000001

Referenced by read_png_to_dib().

#define PNGD_USE_CUSTOM_BG   0x00000002

Referenced by read_png_to_dib().

#define PNGD_USE_HEAPALLOC   0x00000008

Referenced by read_png_to_dib().

#define PNGDIB_HEADER_VERSION   20200
#define PNGDIB_HEADER_VERSION_STRING   "2.2.0"

Typedef Documentation


Function Documentation

int pngdib_get_version ( void   ) 
char* pngdib_get_version_string ( void   ) 
int read_png_to_dib ( PNGD_P2DINFO p2dinfo  ) 
int write_dib_to_png ( PNGD_D2PINFO d2pinfo  )