Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
Transparent Picture DrawImage |
Post Reply |
Author | |
redhead
Beginner Joined: 19 Jan 11 Location: Russia Status: Offline Points: 8 |
Post Options
Thanks(0)
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 |
|
Ingo
Moderator Group Joined: 29 Oct 05 Status: Offline Points: 3524 |
Post Options
Thanks(0)
|
Hi!
That's not supported. You should convert the images in case of gif with transparency into another (png/jpg) format? Cheers, Ingo |
|
redhead
Beginner Joined: 19 Jan 11 Location: Russia Status: Offline Points: 8 |
Post Options
Thanks(0)
|
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. |
|
redhead
Beginner Joined: 19 Jan 11 Location: Russia Status: Offline Points: 8 |
Post Options
Thanks(0)
|
Anyone help? Have some ideas? |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store