Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

need higher quality stretchblt (downsizing)

Posted on 2006-05-12
4
Medium Priority
?
1,078 Views
Last Modified: 2010-05-18
I have a bunch of 1000x1000 grayscale images, and I display thumbnails of them by using StretchBlt, setting the mode to HALFTONE. While you can tell what the thumbnails are of, they have, well, sort of a "denim" (yeah, like your jeans) quality/texture look to them which I've been told "is not good enough"

ha! so anyway, I've tried some of the other stretchblt modes and none of them make good looking images (I'm taking them from 1000x1000 down to about 85x85, and even smaller as the number of thumbnails I have to display in the given area increases)

Can somebody recommend an alternative to stretchblt that will give me quality thumbnails?

thanks!
0
Comment
Question by:PMH4514
  • 3
4 Comments
 
LVL 22

Accepted Solution

by:
grg99 earned 500 total points
ID: 16669494
You need the function DWIWNWCBDBAC(), sometimes known as "Do What I Want, Not What Can BE Done By A Computer".

You're asking a computer to shrink a picture by a factor of 125, but keep the important details.
I suspect that falls into the category of "hard AI".  I'm not sure you could give arbitrary images to,
say a Leo DaVinci and get him to be generate a thumbnail that is "good".

That said, you can eliminate the "jaggies" by filtering the image with a low-pass filter.
Try some of the "demoire" options in your favorite graphics program and see if that helps.
Note that this will smooth things out, making it look a bit better, but the resolution will still be fuzzy compared to the original.
0
 

Author Comment

by:PMH4514
ID: 16669564
hah! I get DWIWNWCBDBAC requests daily :)

I can't use graphics editors, I have to do this with code as the user captures images.  problem is, the folks making those requests are aware of what Photoshop and such can do for them off-line. "It's just code right??"

0
 

Author Comment

by:PMH4514
ID: 16669704
0
 

Author Comment

by:PMH4514
ID: 16669774
well, that codegury article solved my question, but your response made me laugh so I'm going to give you the points :)
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
Suggested Courses

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question