To render a loaded image to a VB5/VB6 PictureBox control, look at the
HTML help file page for "Convert_ImageToPicture". It includes source
code on how to use it. Set the PictureBox.Picture property equal to
the result of the "Convert_ImageToPicture" function.
Or, you can load the image using "IO_LoadImage" and then use
the "Render_Transparent" function to render that image to a
PictureBox. If you use this method, remember that the PictureBox.Image
property contains the image once you render to it. See the HTML help
file for these functions for more information and sample code.
As far as keeping the images so that you can re-save them later without
change... just store the resulting "hIMG" from the "IO_LoadImage"
function... then use that to call the "IO_SaveImage" function. See the
HTML help file for these functions for more information and sample code.
- Kevin
> Hello!
>
> I just obtained this great tool and can't wait to try it out, but I
> have a very simple beginner's question:
>
> Can someone please tell me how to load an image into a picturebox in
> VB6 usig AIL? For now, I just want to be able to load various image
> types (one at a time) and then save them as the original file type
> without any changes.
>
> If I load a JPG then save it again, will it be altered in any way? VB6
> converts everything to bitmaps, but I'm not sure if this happens when
> you just load into a picturebox. I think it is just when you save.
>
> Thanks!
>