Solved

Remove BLACK background from thumbnail image created from 'GetThumbnailImage'

Posted on 2004-03-31
5
836 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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

773 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