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!
![]() |
Is alpha transparent supported in NewPagFromCanvDC |
Post Reply ![]() |
Author | |
cathyling ![]() Beginner ![]() Joined: 17 Sep 13 Status: Offline Points: 2 |
![]() ![]() ![]() ![]() ![]() Posted: 17 Sep 13 at 4:37PM |
Hi, I am tring to use gdiplus create a transparent brush. The NewPageFromCanvasDC can't fill if the Color alpha value <255. Codes: HDC dc = QP.GetCanvasDC(1000,800); REAL positions[] = { 0.0f, 0.3f, 1.0f}; LinearGradientBrush linGrBrush3( Point(0, 0), Point(300, 0),Color(255, 0, 0, 0), Color(255, 255, 255, 255)); linGrBrush3.SetInterpolationColors(colors, positions, 3); QP.NewPageFromCanvasDC(300, -1); Can anyone help me? Thanks.
|
|
![]() |
|
AndrewC ![]() Moderator Group ![]() ![]() Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
![]() ![]() ![]() ![]() ![]() |
cathylin, I have had a quick look at the source code. The Gradient fills are supported but brush transparency is not supported. This could get quite complex to implement as it is not always easy to map GDI+ calls to PDF. I will add it to the todo list for the GDI+ metafile code. Andrew. |
|
![]() |
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