Thumbnail Viewer

Hi, I'm using VB2010, Winforms. I'm trying to create a Thumbnail Viewer so that I can read the thumbnail from a folder's Thumb.DB file. Has anyone every tried to do that?

If not, is there a way to create an object that will accept a raw image file and produces the image? For example, I'd like to pass to that object the code that makes up an image and have the object (maybe a picture viewer object of some kind) reproduce that image. -- I want to be clear on that I want to pass the "code" that makes up an image and not place an image into a picture box object - that I know how to do. I want to use the actual characters that the image is made of.

Any ideas how this can be done?

Thanks,
Fulano
Mr_FulanoAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

käµfm³d 👽Commented:
I want to use the actual characters that the image is made of.

I *think* you mean the "bytes" that the image is made of, not the "characters." I could be wrong. Assuming I'm not, you can load the bytes into a MemoryStream and then pass that stream to one of the Image class' static methods; namely FromStream().

e.g.
using System.IO;

...

byte[] imgData = <some bytes>;
MemoryStream ms = new MemoryStream(imgData);

using (Image img = Image.FromStream(ms))
{
    // Do something with img
}

Open in new window

0
Mr_FulanoAuthor Commented:
Hi Kaufmed, yes you are correct. I mean the bytes that make up the image. - Let me play around with this for a while and I'll get back soon.

Thanks,
Fulano
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

Mr_FulanoAuthor Commented:
Hi CodeCruiser, hope all is well. - I looked at your suggested links and think this will get me started. I'll work on my project and if I need more help, I'll post another question. Thanks for the info!

Fulano
0
Mr_FulanoAuthor Commented:
Good examples!
0
CodeCruiserCommented:
Glad to help :-)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.