943,877 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Unsolved
  • Views: 1359
  • C++ RSS
Jan 28th, 2009
0

C++ Screenshot and date/time issue

Expand Post »
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
Similar Threads
Reputation Points: 27
Solved Threads: 2
Posting Whiz in Training
jan1024188 is offline Offline
254 posts
since Aug 2006
Jan 28th, 2009
0

Re: C++ Screenshot and date/time issue

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 ?
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
Jan 28th, 2009
0

Re: C++ Screenshot and date/time issue

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.
Reputation Points: 27
Solved Threads: 2
Posting Whiz in Training
jan1024188 is offline Offline
254 posts
since Aug 2006
Jan 28th, 2009
0

Re: C++ Screenshot and date/time issue

Do you know any place where I could get cool screenshot making sound?
Reputation Points: 27
Solved Threads: 2
Posting Whiz in Training
jan1024188 is offline Offline
254 posts
since Aug 2006
Jan 28th, 2009
0

Re: C++ Screenshot and date/time issue

NVM, I wont complicate with sounds...
Reputation Points: 27
Solved Threads: 2
Posting Whiz in Training
jan1024188 is offline Offline
254 posts
since Aug 2006
Jan 28th, 2009
0

Re: C++ Screenshot and date/time issue

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.
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Array of Aggregate Classes
Next Thread in C++ Forum Timeline: C++ double comparison performance





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC