Nafto
02-06-2005, 09:34 PM
Hey everyone,
so i have this program that i have about 3 images for. So i was learning about custom resource files, and I decided to make these 3 images into one. I followed the tutorial on gpwiki.org (good site), but the one thing i don't get is how to convert back from the file into the pictures. I have the info for all the pictures in 3 seperate variables, which i know how to put into an empty file to create the .jpg or whatever but this isn't what i want. I was to use these images as a picture of an image control. So basically to load them into a ipicturedisplay somehow, without creating the file for each picture. So basically when the program loads it decompresses this small resource file and loads the pictures. So how do I do this? the loadpicture only works with an existing file as far as i know, and useing set variable = variable2 doesn't work, where variable is the ipicturedisp and var2 is the var holding the image data. Please tell me what to do it'd be a big help.
so i have this program that i have about 3 images for. So i was learning about custom resource files, and I decided to make these 3 images into one. I followed the tutorial on gpwiki.org (good site), but the one thing i don't get is how to convert back from the file into the pictures. I have the info for all the pictures in 3 seperate variables, which i know how to put into an empty file to create the .jpg or whatever but this isn't what i want. I was to use these images as a picture of an image control. So basically to load them into a ipicturedisplay somehow, without creating the file for each picture. So basically when the program loads it decompresses this small resource file and loads the pictures. So how do I do this? the loadpicture only works with an existing file as far as i know, and useing set variable = variable2 doesn't work, where variable is the ipicturedisp and var2 is the var holding the image data. Please tell me what to do it'd be a big help.