-
image download program
i want to make a program to replace the camera and scanner wizard in win xp
i want to program to scan in the filenames from a folder in a memery card; for each filename, display the picture (jpg 2048x1536)(fit to about 1/3 screen) give choices for where to copy the file, and then move it to a second folder on the card
i have taken a class in programming in c and have only me text programs that run in a dos like window. i use Dev-C++ on Win XP Home
i could probably figure out the choices and copying the file, but i don't know the best place to start to display to picture
:D if someone could point me to a good totorial or to a program already made that appears to be close to this it would help
-
i put my card into an adapter so the computer sees it as just another drive. i didn't think i would need any other drivers to access another drive.
as an addition to my original post, i would like to be able to add a comment to the jpg exif data. how hard would that be?
-
> i put my card into an adapter so the computer sees it as just another drive
http://faq.cprogramming.com/cgi-bin/...&id=1044780608
> i would like to be able to add a comment to the jpg exif data. how hard would that be?
Do you intend to decode jpg yourself, or would you prefer a library to do all the work for you?
Moved to windows board.
-
[/QUOTE]
> i would like to be able to add a comment to the jpg exif data. how hard would that be?
Do you intend to decode jpg yourself, or would you prefer a library to do all the work for you?
[/QUOTE]
i have no experience decoding jpg's. they will be straight from a camera. i won't be doing any editing in this program, i just want a bigger preview than the scanner and camera wizard offers
how much work would it be to use either method
-
The 'search' function is your friend...
Run a search on the windows board ie 'jpeg'.
Plenty of examples and links have been posted. You should be able to find what you need to open and display an image from a jpeg file.
You will need to get the user to select a folder (code posted for that as well, SHBrowseFolder() I think).
Put all the images in a list / combobox (again code posted, try FindFirstFile() )
When the user selects an image you will need to load and display it.
Then its just setting the client area of your window to the same size as the image with AdjustWindowRect(). Or StretchBlt() the image to the size you want.
-
> how much work would it be to use either method
Who the hell knows.
I've got a rough idea how hard it would be for me, but you're an unknown until you start posting some code.
Sure, I figure if you search the web enough, you'll find enough lego bricks which do all the really hard work and all you need do is plug them together in a rather simple controlling program and claim success.
Or you could buckle down, do some of the hard work yourself and really learn something in the process.
It's your call.
Personally, since you're only just out of the simple console programming stage, I think you're way out of your depth on this one.
-
GDI+ will probably be your best friend with this project. :D