mzapo_canvas.c
int LoadPNG2Canvas(const char *filename, Canvas *img_canvas){
	unsigned error;

	error = lodepng_decode24_file(&(img_canvas->img), &(img_canvas->w), &(img_canvas->h), filename);
	if (error) {
		printf("ERROR: %u: %s\n", error, lodepng_error_text(error));
		return -1; // Error
	} else {
		return 1; // Success
	} // free(&(img_canvas->img));
}
/* 
	Load PNG to struct canvas from path 'filename' 
*/
Load PNG to struct canvas from path 'filename'
Load PNG to struct canvas from path ' filename '
int LoadPNG2Canvas(const char *filename, Canvas *img_canvas){
	unsigned error;
	error = lodepng_decode24_file(&(img_canvas->img), &(img_canvas->w), &(img_canvas->h), filename);
	if (error) {
		printf("ERROR: %u: %s\n", error, lodepng_error_text(error));
		return -1; 
	} else {
		return 1; 
	} 
}
int LoadPNG2Canvas ( const char * filename , Canvas * img_canvas ) { unsigned error ; error = lodepng_decode24_file ( & ( img_canvas -> img ) , & ( img_canvas -> w ) , & ( img_canvas -> h ) , filename ) ; if ( error ) { printf ( " \n " , error , lodepng_error_text ( error ) ) ; return -1 ; } else { return 1 ; } }
Load PNG to struct canvas from path 'filename'
Load PNG to struct canvas from path ' filename '
// Error // Success // free(&(img_canvas->img));