Print Page | Close Window

Problem with Fill Color

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=3606
Printed Date: 29 Mar 24 at 3:54PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Problem with Fill Color
Posted By: rweetch
Subject: Problem with Fill Color
Date Posted: 01 Sep 18 at 2:28PM
Can anyone see where I am going wrong here as if if I do more than a single color I get a grey ?

PDF.SetFillColorCMYK(20,100,30,0);
PDF.DrawBox(L, T, W, H, 1); 

if I do 

PDF.SetFillColorCMYK(0,100,0,0);
PDF.DrawBox(L, T, W, H, 1); 

Then I get a magenta box as expected.

Thanks



Replies:
Posted By: rweetch
Date Posted: 04 Sep 18 at 2:41PM
We have made a workaround for this issue, only possible because we are using a box. We have replaced the Box with a pretty fat Line and this displays the colour correctly. Not Ideal, but will do for now.


Posted By: Erhardt
Date Posted: 18 Sep 18 at 11:13AM
Originally posted by rweetch rweetch wrote:

We https://www.muscleandfitness.com/supplements/best-protein-powders-for-building-muscle/" rel="nofollow - know these are the best protein powders and have made a workaround for this issue, only possible because we are using a box. We have replaced the Box with a pretty fat Line and this displays the colour correctly. Not Ideal, but will do for now.

How do you set up a line that's fat enough to look like a box though?


Posted By: rweetch
Date Posted: 18 Sep 18 at 11:22AM
PDF.MeasurementUnits(0);
PDF.SetLineWidth(58);


Posted By: rweetch
Date Posted: 18 Sep 18 at 1:12PM
By the way the values shown in the above example are divided by 100 in code, so 

PDF.SetFillColorCMYK(0.2,1,0.3,0);


Posted By: rweetch
Date Posted: 19 Sep 18 at 11:31AM
Ok, let's just forget this nonsense shall we? Rookie error on my part. it's all fine.



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