include/pngtile.h
changeset 18 f92a24ab046e
parent 17 baf3fe7c6354
child 19 ebcc49de97d0
equal deleted inserted replaced
17:baf3fe7c6354 18:f92a24ab046e
    98  * Update the given image's cache.
    98  * Update the given image's cache.
    99  */
    99  */
   100 int pt_image_update (struct pt_image *image);
   100 int pt_image_update (struct pt_image *image);
   101 
   101 
   102 /**
   102 /**
   103  * Render a PNG tile to a stream.
   103  * Render a PNG tile to a FILE*.
   104  *
   104  *
   105  * The PNG data will be written to the given stream, which will be flushed, but not closed.
   105  * The PNG data will be written to the given stream, which will be flushed, but not closed.
   106  */
   106  */
   107 int pt_image_tile (struct pt_image *image, const struct pt_tile_info *info, FILE *out);
   107 int pt_image_tile_file (struct pt_image *image, const struct pt_tile_info *info, FILE *out);
       
   108 
       
   109 /**
       
   110  * Render a PNG tile to memory.
       
   111  *
       
   112  * The PNG data will be written to a malloc'd buffer.
       
   113  *
       
   114  * @param image render from image's cache
       
   115  * @param info tile parameters
       
   116  * @param buf_ptr returned heap buffer
       
   117  * @param len_ptr returned buffer length
       
   118  */
       
   119 int pt_image_tile_mem (struct pt_image *image, const struct pt_tile_info *info, char **buf_ptr, size_t *len_ptr);
   108 
   120 
   109 /**
   121 /**
   110  * Release the given pt_image without any clean shutdown
   122  * Release the given pt_image without any clean shutdown
   111  */
   123  */
   112 void pt_image_destroy (struct pt_image *image);
   124 void pt_image_destroy (struct pt_image *image);