borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2009 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (how to get the current user on a domain)Next Topic (How to rotate a drawing object) New Topic New Poll Post Reply
AndreaVB Forum : API : saving image
Poster Message
Takeshi
Level: Protégé

Registered: 08-09-2008
Posts: 8

icon saving image

Hi, how to save the picture(to BMP, JPG, or GIF) from picture box without using save dialog box  ?
thanks.

05-12-2008 at 06:31 PM
View Profile Send Email to User Show All Posts | Quote Reply
BadaBandar
Level: Protégé


Registered: 08-02-2009
Posts: 6
icon Re: saving image

you use save dialog box for specifying filename. saving is easy with SavePicture method of picturebox control. you can use a default filename if you do not want to use dialog box control. note that specifyin filename extensions is and easy way to save file in different formats(.bmp, .jpg, .ico) with SavePicture method.

08-02-2009 at 02:17 PM
View Profile Send Email to User Show All Posts | Quote Reply
Keithuk
Level: Sage


Registered: 02-11-2006
Posts: 54
icon Re: saving image

quote:
Takeshi wrote:
Hi, how to save the picture(to BMP, JPG, or GIF) from picture box without using save dialog box  ?
thanks.


By default you can only save a picture as a BMP as BadaBandar suggests using the SavePicture function. If you want to save as a jpg then are are some sub classing you can do or use Bmp2jpeg.dll do a web search for this.  

Save As JPG Files

____________________________
http://www.martin2k.co.uk/forums/

I've been programming with VB for 13 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.
27-03-2009 at 12:15 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : API : saving image
Previous Topic (how to get the current user on a domain)Next Topic (How to rotate a drawing object) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2009 Andrea Tincaniborder