C++ Screenshot and date/time issue

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Aug 2006
Posts: 254
Reputation: jan1024188 is an unknown quantity at this point 
Solved Threads: 2
jan1024188's Avatar
jan1024188 jan1024188 is offline Offline
Posting Whiz in Training

C++ Screenshot and date/time issue

 
0
  #1
Jan 28th, 2009
Hello guys,
I have 2 questions....
1. I don't know what format is the best for saving screenshots in. I have tried .BMP, its good quality, but 5MB per screenshot is just not acceptable.
I have tried .JPG, but quality is too low. TGA is crap (you need apple quicktime crappy viewer which costs money, also too big in size).
I was thinking about PNG? Is it good format in both, quality and size, but I am wondering about compatibility...
a) Is it supported by all versions of windows Image Viewer? Is it compatible with also older versions of Windows Explorer? Does it have any limitations?

2. I make screenshots save as hour/minute/second (day/month/year).
I would like to use ":" between hour, minute etc, but I cant, since Windows does not let filename include ":".
So, instead of 15:47:12 what could it be so people wouldnt be confused and understand its time info...

Thanks in advance,

Jan
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: C++ Screenshot and date/time issue

 
0
  #2
Jan 28th, 2009
Yes, PNG is a good format.
Yes, you will have compatibility problems with standard MS tools if you go far enough back in versions.

> So, instead of 15:47:12
Maybe HH_MM_SS format ?
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 254
Reputation: jan1024188 is an unknown quantity at this point 
Solved Threads: 2
jan1024188's Avatar
jan1024188 jan1024188 is offline Offline
Posting Whiz in Training

Re: C++ Screenshot and date/time issue

 
0
  #3
Jan 28th, 2009
Thanks salem,

I will try .png, (even if Windows Vista image viewer cant load it). Paint opens it perfectly, so its OK.

HH_MM_SS isnt very helpful. I decided to save as:
3DMV_194903 (28-01-2009)
As you can see, its 3DMV_HHMMSS (date).
I think it doesnt really matter the filename, since screenshot thumb tells everything.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 254
Reputation: jan1024188 is an unknown quantity at this point 
Solved Threads: 2
jan1024188's Avatar
jan1024188 jan1024188 is offline Offline
Posting Whiz in Training

Re: C++ Screenshot and date/time issue

 
0
  #4
Jan 28th, 2009
Do you know any place where I could get cool screenshot making sound?
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 254
Reputation: jan1024188 is an unknown quantity at this point 
Solved Threads: 2
jan1024188's Avatar
jan1024188 jan1024188 is offline Offline
Posting Whiz in Training

Re: C++ Screenshot and date/time issue

 
0
  #5
Jan 28th, 2009
NVM, I wont complicate with sounds...
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 5,850
Reputation: Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute Salem has a reputation beyond repute 
Solved Threads: 749
Team Colleague
Salem's Avatar
Salem Salem is offline Offline
Void main'ers are DOOMed

Re: C++ Screenshot and date/time issue

 
0
  #6
Jan 28th, 2009
Vista will be fine.
I thought you meant something like W2K or 98.
Find libpng to do all the heavy work, it should be pretty easy from there.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC