To do this, you must specify the file type in the first parameter:
loadimage (JPG, # Image_0 [0] [0], "C:\ris_jpg.jpg");
loadimage (PNG, # Image_0 [0] [0], "C:\ris_png.png");
Example:
CODE:
int Image_0 [500] [500];
loadimage (JPG, # Image_0 [0] [0], "C:\ris_jpg.jpg");
saveimage (# Image_0 [0] [0], "C:\5.bmp");
loadimage (JPG, # Image_0 [0] [0], "C:\ris_jpg.jpg");
saveimage (# Image_0 [0] [0], "C:\5.bmp");