For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > November 2004 > hai ! I have problem of saving pictures.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author hai ! I have problem of saving pictures.
mohanbeela

2004-11-10, 3:55 pm

hai,

I require to save the picture that is painted in picture box
using following code
Me.pic_back.PaintPicture LoadPicture_(Me.cdlg_image.FileName), 0, 0, 3650,
3650
where pic_back is picturebox and cdlg is common dialog box.. this is how I
loaded picture into picture box now I want to save this back to hard
disk.please help me
Advance thanks to all.

Mohan


ijustok

2004-11-10, 3:55 pm

SavePicture Óï¾ä


´Ó¶ÔÏó»ò¿Ø¼þ£¨Èç¹ûÓÐÒ»¸öÓëÆäÏà¹Ø£©µÄ Picture »ò Image ÊôÐÔÖн«Í¼Ðα£´æµ½Îļþ
ÖС£

Óï·¨

SavePicture picture, stringexpression

SavePicture Óï¾äµÄÓï·¨°üº¬ÏÂÃæ²¿·Ö£º

²ÎÊý ÃèÊö
picture ²úÉúͼÐÎÎļþµÄ PictureBox ¿Ø¼þ»ò Image ¿Ø¼þ¡£
stringexpression Óû±£´æµÄͼÐÎÎļþÃû¡£


˵Ã÷

ÎÞÂÛÔÚÉè¼ÆÊ±»¹ÊÇÔËÐÐʱͼÐδÓÎļþ¼ÓÔØµ½¶Ô
ÏóµÄ Picture ÊôÐÔ£¬¶øÇÒËüÊÇλͼ¡¢Í¼
±ê¡¢ÔªÎļþ»òÔöǿԪÎļþ£¬ÔòͼÐν«ÒÔÔ_ʼÎÄ
¼þͬÑùµÄ¸ñʽ±£´æ¡£Èç¹ûËüÊÇ GIF »ò
JPEG Îļþ£¬Ôò½«±£´æÎªÎ»Í¼Îļþ¡£

Image ÊôÐÔÖеÄͼÐÎ×ÜÊÇÒÔλͼµÄ¸ñʽ±£´æ¶ø²»¹ÜÆä
Ô_ʼ¸ñʽ¡£

"mohanbeela" <mohanbeela@rediffmail.com> wrote in message
news:%23cWl6hvxEHA.3168@TK2MSFTNGP15.phx.gbl...
> hai,
>
> I require to save the picture that is painted in picture box
> using following code
> Me.pic_back.PaintPicture LoadPicture_(Me.cdlg_image.FileName), 0, 0, 3650,
> 3650
> where pic_back is picturebox and cdlg is common dialog box.. this is how I
> loaded picture into picture box now I want to save this back to hard
> disk.please help me
> Advance thanks to all.
>
> Mohan
>
>



Morgan

2004-11-10, 3:55 pm

Making Bitmap Picture Resource with OpenPicture and AddPicture
http://support.microsoft.com/defaul...=kb;en-us;43022

SavePicture Statement
http://msdn.microsoft.com/library/d...savepicture.asp
--
Saludos ... Miguel Angel Martínez Morgan ... 8-)
[ MS - MVP - Visual Basic ] [ Cancún, Quintana Roo, México ]
[ Todas las preguntas al foro, así nos beneficiamos todos ]

DISCLAIMER: «Este mensaje se proporciona "como está" sin garantías de
ninguna indole, y no otorga ningún derecho.»

mohanbeela <mohanbeela@rediffmail.com> wrote:
> hai,
>
> I require to save the picture that is painted in picture box
> using following code
> Me.pic_back.PaintPicture LoadPicture_(Me.cdlg_image.FileName), 0, 0,
> 3650, 3650
> where pic_back is picturebox and cdlg is common dialog box.. this is
> how I loaded picture into picture box now I want to save this back to
> hard disk.please help me
> Advance thanks to all.
>
> Mohan



Andy Xu\(on sina.com\)

2004-11-29, 3:56 pm

Set picture1.picture=picture1.image
picture1.save picture "c:\a.bmp"

"mohanbeela" <mohanbeela@rediffmail.com> wrote in message
news:%23cWl6hvxEHA.3168@TK2MSFTNGP15.phx.gbl...
> hai,
>
> I require to save the picture that is painted in picture box
> using following code
> Me.pic_back.PaintPicture LoadPicture_(Me.cdlg_image.FileName), 0, 0, 3650,
> 3650
> where pic_back is picturebox and cdlg is common dialog box.. this is how I
> loaded picture into picture box now I want to save this back to hard
> disk.please help me
> Advance thanks to all.
>
> Mohan
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com