|
How I change the bg color of a Static control (on the dlg) to the color of the bitmap ?
|
|
|
|
|
|
erm this doesnt work in VC 6.0
and your "demo" executable wants MFc7.0 dll
Bryce
|
|
|
|
|
bryce wrote:
and your "demo" executable wants MFc7.0 dll
Yes, it was built using VC++ .NET
bryce wrote:
erm this doesnt work in VC 6.0
The source files will work in either VC++ 6 or 7
The class source files I mean
But the sample project is a VC++ 7 project
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
|
|
|
|
|
One thing that is almost always missing from these kinds of options (including that of the Windows Desktop) is the option to stretch with maintaining the aspect ratio. That would make a great additional feature.
Tim Lesher <tim@lesher.ws>
http://www.lesher.ws
|
|
|
|
|
Hear! Hear!
William
|
|
|
|
|
Tim Lesher wrote:
the option to stretch with maintaining the aspect ratio
But then it won't fill up the area, will it? What do we do with the extra space?
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
Easy. You center the bitmap and put a user selected colour in the additional space. And you provide an option for aspect ratio correctness so you lose some data rather than gain some space.
Christian
I am completely intolerant of stupidity. Stupidity is, of course, anything that doesn't conform to my way of thinking. - Jamie Hale - 29/05/2002
|
|
|
|
|
Umm, yeah, what he said. Actually, I hadn't considered the option to crop instead of fill, but that sounds good, too.
Tim Lesher <tim@lesher.ws>
http://www.lesher.ws
|
|
|
|
|
Not to complain too much, but the thread about Old style solution takes up space without adding anything to the article. Shouldn't something like that be in The Lounge?
BTW, the article is nicely written. The subject is frequently asked about.
One last quibble: you could scale down the screenshots so they don't take so long to download on my dial-up connection. No DSL or T1 here.
|
|
|
|
|
Ed Gadziemski wrote:
the thread about Old style solution takes up space without adding anything to the article.
Heheh, ain't it cool though? A broken arc, showing at a glance that it is really two threads, neither having anything to do with the first two posts!
--------
A common man's understanding of science. Not a normal common man's of course. A very smart common man's. -- Nish, on Science Writing
|
|
|
|
|
Shog9 wrote:
Heheh, ain't it cool though? A broken arc, showing at a glance that it is really two threads, neither having anything to do with the first two posts!
Yeah, that's sorta cool. A little weird though for any newcomer to CP. He comes here, reads the threads and is dead confused
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
Ed Gadziemski wrote:
Not to complain too much, but the thread about Old style solution takes up space without adding anything to the article. Shouldn't something like that be in The Lounge?
Sorry! It should have been in the Lounge. But people (self included) just kept replying to mail-notifications by clicking on the direct message-link.
Ed Gadziemski wrote:
One last quibble: you could scale down the screenshots so they don't take so long to download on my dial-up connection. No DSL or T1 here.
This might surprise you. But I barely get 3 KB/s here. That's half the speed of a dial-up modem
Nish
p.s. Point noted anyway. Basically I tried to keep them within 500 pixels width. And since the compression JPEG I thought it'd not matter much.
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
since the compression JPEG I thought it'd not matter much
The 3 pictures together total 80 KB. At 3 KB/s, that's almost half a minute to download. Of course, my download speed is about 5 KB/s here, so I get them in a mere 16 seconds (not counting the text and the advertisements and the CP headers and ...).
|
|
|
|
|
Nish, I made lower-res, scaled versions of your screenshots. You can grab them from http://www.ravib.com/nish if you like.
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Ravi Bhavnani wrote:
Nish, I made lower-res, scaled versions of your screenshots. You can grab them from http://www.ravib.com/nish if you like.
Thanks Ravi!
But are GIF files allowed?
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
I don't see why they'd be disallowed. My WebResourceProvider article uses GIFs because they're smaller.
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
|
I saved them anyway
I wonder whether they are too small!
What did you use to do that?
And stretch.gif looks better than the original
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
I use Photoshop (an older version - 4.0) for all my image editing needs. I'd be happy to post slightly larger ones if you'd like. I can also sharpen them a tad, if you prefer.
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Ravi Bhavnani wrote:
I use Photoshop (an older version - 4.0) for all my image editing needs. I'd be happy to post slightly larger ones if you'd like. I can also sharpen them a tad, if you prefer.
Oh! I have Photoshop 6 here
All I need to do is resize them, right? Or do I have to apply any special filters to prevent quality-loss?
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
Nish - Native CPian wrote:
Oh! I have Photoshop 6 here
<drool>
I just do Image..Size and scale the screen shot to 50% (or less, if you prefer) and then do Filter..Sharpen if necessary. Then, File..Export..Gif89a and you're all set!
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Ravi Bhavnani wrote:
drool
Hehehe. We have a Multimedia team here and they have all these tools. I just borrow the CD for 15 minutes
Ravi Bhavnani wrote:
I just do Image..Size and scale the screen shot to 50% (or less, if you prefer) and then do Filter..Sharpen if necessary. Then, File..Export..Gif89a and you're all set!
Thanks Ravi
For images with so many colors I always thought JPEG was better than GIF.
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|
|
Nish - Native CPian wrote:
We have a Multimedia team here and they have all these tools.
Ah! Reminds me of when I worked at Kodak. They begged the engineers to take preproduction digital cameras on their vacations!
Nish - Native CPian wrote:
For images with so many colors I always thought JPEG was better than GIF.
You're right, but screenshots have very few colors (usually much less than 256).
/ravi
Let's put "civil" back into "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Ravi Bhavnani wrote:
You're right, but screenshots have very few colors (usually much less than 256).
Yeah, in this case true. Though you should see some of those new XP themes and styles. 24 bits barely suffices.
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Buy it, read it and admire me
|
|
|
|