summaryrefslogtreecommitdiff
path: root/pngfile.h
diff options
context:
space:
mode:
authorJohn Wiseman <john.wiseman@cantab.net>2022-08-28 09:35:46 +0100
committerJohn Wiseman <john.wiseman@cantab.net>2022-08-28 09:35:46 +0100
commite3ea58d23aae3aca6f382c4b95ec31a1f7875cae (patch)
tree6aa82a196df5ce3330d112e047febc348c44dc1d /pngfile.h
Diffstat (limited to 'pngfile.h')
-rw-r--r--pngfile.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/pngfile.h b/pngfile.h
new file mode 100644
index 0000000..10d1491
--- /dev/null
+++ b/pngfile.h
@@ -0,0 +1,23 @@
+//------------------------------------------
+// PNGFILE.H -- Header File for pngfile.c
+//------------------------------------------
+//#define byte short
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+void PngFileInitialize (HWND hwnd) ;
+BOOL PngFileOpenDlg (HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName) ;
+BOOL PngFileSaveDlg (HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName) ;
+
+BOOL PngLoadImage (PTSTR pstrFileName, png_byte **ppbImageData,
+ int *piWidth, int *piHeight, int *piChannels, png_color *pBkgColor);
+BOOL PngSaveImage (PTSTR pstrFileName, png_byte *pDiData,
+ int iWidth, int iHeight, png_color BkgColor);
+
+#if defined(PNG_NO_STDIO)
+static void png_read_data(png_structp png_ptr, png_bytep data, png_size_t length);
+static void png_write_data(png_structp png_ptr, png_bytep data, png_size_t length);
+static void png_flush(png_structp png_ptr);
+#endif
+