Solved

Creating a Thumbnail View in GUI

Posted on 1998-02-17
3
178 Views
Last Modified: 2010-04-10
I having a problem to create thumbnail views of the images open in the GUI. In my GUI, the thumbnail view is a small version of the image opened. When it is clicked, it will display the actual image. May I ask how can go about creating thumbnails. I currently using visual C++ to code my GUI.
0
Comment
Question by:Yinteo
  • 2
3 Comments
 
LVL 22

Accepted Solution

by:
nietod earned 100 total points
ID: 1182455
Answer coming.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1182456
There's a lot of different steps to this and I'm not exactly sure It you are asking about a particular procedure or the whole thing.  So let me outline the whole proceddure and then if there are areas you need more details let me know.

First you will need to create the image to be shrunken.  You will need the whole image, so if only a portion is vissible on the screen (and scrolls) you will have to create the image in a memory device context.  We will call this the source device context.

Then you will create a bitmap in memory the size of the thumbnail and compatible with the source device context.  You will create a memory device context compatible with the source device context and select the bitmap in.  Let's call this the destination device context.

Then you copy and shrink the image from the source to the destination device contexts using StretchBlt().

Then you save the destination bitmap as your thumb nail.  You probably want to convert it to a device independant bitmap and save that.

That's the general idea.  Questions anyone?
0
 

Expert Comment

by:kraphics
ID: 1182457
This sounds neet, and compact, but can you post code to do exactly what you outlined ?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
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 concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now