- Input: an XImage of one size - Output: an XImage of another size - method: nearest neighbor resampling ---*/ XImage * resize_XImage( MCW_DC *dc , XImage *image , int new_width , int new_height ) { static int *lt = NULL ; /* lookup table stuff */ static int old_width =...
Likewise, when calling get<your_type>() or get_to(your_type&), the from_json method will be called. Some important things: Those methods MUST be in your type's namespace (which can be the global namespace), or the library will not be able to locate them (in this example, they ...