Solved

Remove BLACK background from thumbnail image created from 'GetThumbnailImage'

Posted on 2004-03-31
5
824 Views
Last Modified: 2012-08-13
I'm loading an image from a byte array in to a memory-stream and then creating a thumbnail from it using the 'GetThumbnailImage' method

Everything works fine except hte background color of this thumbnail image turns out - black ...

I've png,gif,jpg formats to support and the images are heavy so i need their thumbnails ... but not with BLACK- background ...

Any ideas ...
0
Comment
Question by:S_Hemant
  • 2
5 Comments
 
LVL 20

Expert Comment

by:TheAvenger
ID: 10730792
What does a "black background" mean for a JPEG for example? The JPEG has information about every pixel, so there is no "background". What exactly becomes black?
0
 

Author Comment

by:S_Hemant
ID: 10738425
Just one statement i use the 'GetThumbnailImage' method to get thumbnail image. And i get thumbnail with a BLACK background -

may be the transparent pixels are converted into BLACK so how to stop it ???
0
 
LVL 20

Accepted Solution

by:
TheAvenger earned 50 total points
ID: 10738798
JPEG does not have transparent pixels. GIF has, I don't know about PNG. But if you get black pixels with all of them, maybe the problem is another one...
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

746 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

14 Experts available now in Live!

Get 1:1 Help Now