home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / graphic / csg_rt / fio.h < prev    next >
C/C++ Source or Header  |  1993-01-12  |  660b  |  31 lines

  1. /*
  2.  
  3. FIO.H  Interface to new bitmap file IO
  4.  
  5. */
  6.  
  7. typedef void BITMAP;
  8.  
  9. extern void fio_init(void);
  10. extern void fio_deinit(void);
  11. extern BITMAP *fio_create_bitmap(int w, int h);
  12. extern BITMAP *fio_copy_bitmap(BITMAP *bitmap);
  13. extern void fio_destroy_bitmap(BITMAP *bitmap);
  14. extern BITMAP *fio_read_bitmap(char *fn);
  15. extern BOOLEAN fio_write_bitmap(BITMAP *bitmap, char *fn);
  16.  
  17. extern void fio_get_pixel(
  18.     BITMAP *bitmap,
  19.     int x, int y,
  20.     byte *r, byte *g, byte *b
  21.     );
  22.  
  23. extern void fio_set_pixel(
  24.     BITMAP *bitmap,
  25.     int x, int y,
  26.     byte r, byte g, byte b
  27.     );
  28.  
  29. extern int fio_width(BITMAP *bitmap);
  30. extern int fio_height(BITMAP *bitmap);
  31.