python/pypngtile.pyx
changeset 87 ecd87b41e884
parent 83 a1e8fa84a9fb
child 91 0bf7878bdf5c
equal deleted inserted replaced
86:d4a62899587f 87:ecd87b41e884
    51     
    51     
    52     ## functions
    52     ## functions
    53     int pt_image_open (pt_image **image_ptr, pt_ctx *ctx, char *png_path, int cache_mode)
    53     int pt_image_open (pt_image **image_ptr, pt_ctx *ctx, char *png_path, int cache_mode)
    54     int pt_image_info_ "pt_image_info" (pt_image *image, pt_image_info **info_ptr)
    54     int pt_image_info_ "pt_image_info" (pt_image *image, pt_image_info **info_ptr)
    55     int pt_image_status (pt_image *image)
    55     int pt_image_status (pt_image *image)
       
    56     int pt_image_load (pt_image *image)
    56     int pt_image_update (pt_image *image, pt_image_params *params)
    57     int pt_image_update (pt_image *image, pt_image_params *params)
    57     int pt_image_tile_file (pt_image *image, pt_tile_info *info, stdio.FILE *out)
    58     int pt_image_tile_file (pt_image *image, pt_tile_info *info, stdio.FILE *out)
    58     int pt_image_tile_mem (pt_image *image, pt_tile_info *info, char **buf_ptr, size_t *len_ptr)
    59     int pt_image_tile_mem (pt_image *image, pt_tile_info *info, char **buf_ptr, size_t *len_ptr)
    59     void pt_image_destroy (pt_image *image)
    60     void pt_image_destroy (pt_image *image)
    60     
    61     
   142             CACHE_INCOMPAT      - the cache file exists, but is incompatible with this version of the library
   143             CACHE_INCOMPAT      - the cache file exists, but is incompatible with this version of the library
   143         """
   144         """
   144 
   145 
   145         return trap_err("pt_image_status", 
   146         return trap_err("pt_image_status", 
   146             pt_image_status(self.image)
   147             pt_image_status(self.image)
       
   148         )
       
   149     
       
   150 
       
   151     def open (self) :
       
   152         """
       
   153             Open the underlying cache file for reading, if available.
       
   154         """
       
   155 
       
   156         return trap_err("pt_image_load",
       
   157             pt_image_load(self.image)
   147         )
   158         )
   148 
   159 
   149 
   160 
   150     def update (self, background_color = None) :
   161     def update (self, background_color = None) :
   151         """
   162         """