Print Page | Close Window

Transparent Picture DrawImage

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1741
Printed Date: 21 Sep 24 at 4:16AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Transparent Picture DrawImage
Posted By: redhead
Subject: Transparent Picture DrawImage
Date Posted: 16 Feb 11 at 8:41PM
Hi all.

When creating a PDF I am using the function "DrawImage". But I use a picture with a transparent background. However, after applying the function instead of the picture remains black area. Just in the size of the picture.
Is there an option to save the image with a transparent background?

Best regards





Replies:
Posted By: Ingo
Date Posted: 16 Feb 11 at 9:53PM
Hi!

That's not supported.
You should convert the images in case of gif with transparency into another (png/jpg) format?

Cheers, Ingo



Posted By: redhead
Date Posted: 17 Feb 11 at 6:43AM
Hello 

This is part of my code:

MemoryStream arrowMS = new MemoryStream();
arrowBmp.Save(arrowMS, ImageFormat.Png);
arrowBmp.Save("arrow " + (ctln) + ".png");
res = qp.AddImageFromVariant(arrowMS.GetBuffer(), 0);
res = qp.SelectImage(res);
res = qp.DrawImage(0, 0, this.Width, this.Height);

I'll try to use Bitmap.MakeTransparent() metod. But same result.
Method GetPixel(1,1) was returns full transparent - (0,0,0,0).

It mean that picture is transparent.


Posted By: redhead
Date Posted: 21 Feb 11 at 6:16AM

Anyone help?

Have some ideas? 







Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk