Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 1st, 2007, 8:26 AM   #1
Tajinder Singh
Newbie
 
Join Date: Jul 2007
Posts: 16
Rep Power: 0 Tajinder Singh is on a distinguished road
How to save image

Hi all

I have an image withinf Picture Control.
how to save it on Disk at specified location??

Pls help
Tajinder Singh is offline   Reply With Quote
Old Aug 1st, 2007, 8:45 AM   #2
Seif
Hobbyist Programmer
 
Seif's Avatar
 
Join Date: Jan 2006
Location: UK
Posts: 215
Rep Power: 3 Seif is on a distinguished road
Dude, stop spamming this forum with crappy vague help requests. Read the forum rules and try again.

Information such as libraries, what type of picture control you are using etc are all good for starters.
Seif is offline   Reply With Quote
Old Aug 1st, 2007, 8:48 AM   #3
Tajinder Singh
Newbie
 
Join Date: Jul 2007
Posts: 16
Rep Power: 0 Tajinder Singh is on a distinguished road
No Spamming dear....

Unfortunately lot of work has been assigned to me. that i have to accomplised very soon. I am not MFC programmer but i have to it.......
Tajinder Singh is offline   Reply With Quote
Old Aug 1st, 2007, 9:11 AM   #4
Tajinder Singh
Newbie
 
Join Date: Jul 2007
Posts: 16
Rep Power: 0 Tajinder Singh is on a distinguished road
PlaySound has solved my purpose...

:laySound(str,NULL,SND_NOSTOP);
Tajinder Singh is offline   Reply With Quote
Old Aug 1st, 2007, 9:24 AM   #5
Seif
Hobbyist Programmer
 
Seif's Avatar
 
Join Date: Jan 2006
Location: UK
Posts: 215
Rep Power: 3 Seif is on a distinguished road
Of course its spamming. PlaySound has absolutely no relevance to your problem in this thread!

Back to the problem "presented" in this thread. Thank you for informing me that you are using MFC. If you check the documentation, you will see the CImage class has a save member function allowing the image to be saved as one of the following.

ImageFormatBMP An uncompressed bitmap image.
ImageFormatPNG A Portable Network Graphic (PNG) compressed image.
ImageFormatJPEG A JPEG compressed image.
ImageFormatGIF A GIF compressed image.

Further info can be found here:

http://msdn2.microsoft.com/en-us/lib...hw(VS.80).aspx

I highly recomend u using the Microsoft Developer Network. Its there for this purpose.
Seif is offline   Reply With Quote
Old Aug 1st, 2007, 9:26 AM   #6
Tajinder Singh
Newbie
 
Join Date: Jul 2007
Posts: 16
Rep Power: 0 Tajinder Singh is on a distinguished road
Thanks a lot....
Tajinder Singh is offline   Reply With Quote
Old Aug 1st, 2007, 9:28 AM   #7
Tajinder Singh
Newbie
 
Join Date: Jul 2007
Posts: 16
Rep Power: 0 Tajinder Singh is on a distinguished road
I posted wrong thread where i mentioned Playsound Function by Mistake and i am sorry for that
Tajinder Singh is offline   Reply With Quote
Old Aug 1st, 2007, 9:42 AM   #8
Seif
Hobbyist Programmer
 
Seif's Avatar
 
Join Date: Jan 2006
Location: UK
Posts: 215
Rep Power: 3 Seif is on a distinguished road
Yes but please understand, you have created 4 threads askin for help. none of which mention what libraries you are using. For all we know you could be using Win32, wxWidgets, Qt, and so on.

We can't help you if we don't have a clue what you are talking about, and having 4 threads spammed in one day is kind of frustrating. Being a new member, I suggest reading the forum rules and take a moment to think about the problem you require to ask. Especially before Dawei comes on the board :x
Seif is offline   Reply With Quote
Old Aug 1st, 2007, 9:44 AM   #9
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
Omg! I Just Learned How To Program And My Program Won't Compile! Help!!
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline   Reply With Quote
Old Aug 1st, 2007, 11:11 AM   #10
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Oh, DaWei's read 'em all.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
help on save and save as methods Yarvin Python 2 Nov 9th, 2006 8:01 PM
OnlineTextEditor.Com! Sane Show Off Your Open Source Projects 43 Jun 16th, 2006 8:55 AM
Image float, wrap text, oh boy! DaveQB HTML / XHTML / CSS 1 May 20th, 2006 12:34 AM
Image Viewer (Urgent Bèta testing) SoniX Visual Basic .NET 8 Sep 21st, 2005 5:25 PM
Checking source codes of image, audio and video files on_auc C++ 3 Feb 21st, 2005 8:36 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:59 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC