include/pngtile.h
changeset 91 0bf7878bdf5c
parent 86 d4a62899587f
equal deleted inserted replaced
90:1c317e0628a7 91:0bf7878bdf5c
   165 
   165 
   166 /**
   166 /**
   167  * Render a PNG tile to a FILE*.
   167  * Render a PNG tile to a FILE*.
   168  *
   168  *
   169  * The PNG data will be written to the given stream, which will be flushed, but not closed.
   169  * The PNG data will be written to the given stream, which will be flushed, but not closed.
       
   170  *
       
   171  * Tile render operations are threadsafe as long as the pt_image is not modified during execution.
   170  */
   172  */
   171 int pt_image_tile_file (struct pt_image *image, const struct pt_tile_info *info, FILE *out);
   173 int pt_image_tile_file (struct pt_image *image, const struct pt_tile_info *info, FILE *out);
   172 
   174 
   173 /**
   175 /**
   174  * Render a PNG tile to memory.
   176  * Render a PNG tile to memory.
   175  *
   177  *
   176  * The PNG data will be written to a malloc'd buffer.
   178  * The PNG data will be written to a malloc'd buffer.
       
   179  *
       
   180  * Tile render operations are threadsafe as long as the pt_image is not modified during execution.
   177  *
   181  *
   178  * @param image render from image's cache
   182  * @param image render from image's cache
   179  * @param info tile parameters
   183  * @param info tile parameters
   180  * @param buf_ptr returned heap buffer
   184  * @param buf_ptr returned heap buffer
   181  * @param len_ptr returned buffer length
   185  * @param len_ptr returned buffer length