Remove BLACK background from thumbnail image created from 'GetThumbnailImage'

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 ...
S_HemantAsked:
Who is Participating?
 
TheAvengerConnect With a Mentor Commented:
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
 
TheAvengerCommented:
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
 
S_HemantAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.