bitmap.h 732 B

12345678910111213141516171819202122232425
  1. #ifndef GRASS_BITMAPDEFS_H
  2. #define GRASS_BITMAPDEFS_H
  3. /* bitmap.c */
  4. struct BM *BM_create(int, int);
  5. int BM_destroy(struct BM *);
  6. int BM_set_mode(int, int);
  7. int BM_set(struct BM *, int, int, int);
  8. int BM_get(struct BM *, int, int);
  9. size_t BM_get_map_size(struct BM *);
  10. int BM_file_write(FILE *, struct BM *);
  11. struct BM *BM_file_read(FILE *);
  12. /* sparse.c */
  13. struct BM *BM_create_sparse(int, int);
  14. int BM_destroy_sparse(struct BM *);
  15. int BM_set_sparse(struct BM *, int, int, int);
  16. int BM_get_sparse(struct BM *, int, int);
  17. size_t BM_get_map_size_sparse(struct BM *);
  18. int BM_dump_map_sparse(struct BM *);
  19. int BM_dump_map_row_sparse(struct BM *, int);
  20. int BM_file_write_sparse(FILE *, struct BM *);
  21. #endif /* GRASS_BITMAPDEFS_H */