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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Transparent Picture DrawImage
  FAQ FAQ  Forum Search   Register Register  Login Login

Transparent Picture DrawImage

 Post Reply Post Reply
Author
Message
redhead View Drop Down
Beginner
Beginner


Joined: 19 Jan 11
Location: Russia
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote redhead Quote  Post ReplyReply Direct Link To This Post Topic: Transparent Picture DrawImage
    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


Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3524
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
redhead View Drop Down
Beginner
Beginner


Joined: 19 Jan 11
Location: Russia
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote redhead Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
redhead View Drop Down
Beginner
Beginner


Joined: 19 Jan 11
Location: Russia
Status: Offline
Points: 8
Post Options Post Options   Thanks (0) Thanks(0)   Quote redhead Quote  Post ReplyReply Direct Link To This Post Posted: 21 Feb 11 at 6:16AM

Anyone help?

Have some ideas? 




Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store