Search the web
Sign In
New User? Sign Up
AIL_Development · AIL Developer's Forum
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Loading images into VB6 Picture box   Message List  
Reply | Forward Message #77 of 125 |
Re: Loading images into VB6 Picture box

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!
>





Mon Jun 30, 2008 1:00 am

kwilson1997
Offline Offline
Send Email Send Email

Forward
Message #77 of 125 |
Expand Messages Author Sort by Date

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...
asbaran333
Offline Send Email
Jun 30, 2008
12:51 am

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...
Kevin Wilson
kwilson1997
Offline Send Email
Jun 30, 2008
1:01 am

Thanks!...
asbaran333
Offline Send Email
Jul 11, 2008
8:55 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help