Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
1.1 KiB

  1. //------------------------------------------
  2. // PNGFILE.H -- Header File for pngfile.c
  3. //------------------------------------------
  4. // Copyright 2000, Willem van Schaik.
  5. // This code is released under the libpng license.
  6. // For conditions of distribution and use, see the disclaimer
  7. // and license in png.h
  8. #include <stdio.h>
  9. #include <stdlib.h>
  10. #include <string.h>
  11. #include <windows.h>
  12. void PngFileInitialize (HWND hwnd) ;
  13. BOOL PngFileOpenDlg (HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName) ;
  14. BOOL PngFileSaveDlg (HWND hwnd, PTSTR pstrFileName, PTSTR pstrTitleName) ;
  15. BOOL PngLoadImage (PTSTR pstrFileName, png_byte **ppbImageData,
  16. int *piWidth, int *piHeight, int *piChannels, png_color *pBkgColor);
  17. BOOL PngSaveImage (PTSTR pstrFileName, png_byte *pDiData,
  18. int iWidth, int iHeight, png_color BkgColor);
  19. #ifndef PNG_STDIO_SUPPORTED
  20. static void png_read_data(png_structp png_ptr, png_bytep data, png_size_t length);
  21. static void png_write_data(png_structp png_ptr, png_bytep data, png_size_t length);
  22. static void png_flush(png_structp png_ptr);
  23. #endif