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!
![]() |
FillColor is always white |
Post Reply ![]() |
Author | |
Sykh ![]() Beginner ![]() Joined: 17 Sep 20 Location: Germany Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() Posted: 17 Sep 20 at 10:56AM |
Hi everyone,
im using V18 with c# and im trying to draw a colored box...i got the box on the right position, right size but the fill color is always white even tho i called SetFillColor with a 0-1 double and not 0-255 int ![]() Any clues? SetFillColor returns 1, the Box gets drawn, i see the outline but the inside is always white.
Thanks. |
|
![]() |
|
tfrost ![]() Senior Member ![]() Joined: 06 Sep 10 Location: UK Status: Offline Points: 437 |
![]() ![]() ![]() ![]() ![]() |
If you run the DebenuPDFLibraryDemo program and run the Vector Graphics/DrawShapes script, do you get green circles? If so, I would try moving the SetFillColor to inside your loop, but I do not know why that would be necessary, if it is.
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Sykh,
i think it's your SetFillColor. The first line with SetFillColor is deactivated with the doubled slashes. The second SetFillColor is only in the WriteLine-syntax. I think a "tempQp.SetFillColor(0.93, 0.29, 0.42)" alone on a single code line will work. Cheers and welcome here, Ingo |
|
Cheers,
Ingo |
|
![]() |
|
Sykh ![]() Beginner ![]() Joined: 17 Sep 20 Location: Germany Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() |
Hey Ingo,
this shouldn't and doesn't matter, i run the command in that WriteLine to see if it returns 1 or 0 (it returns 1)
Still creates white blocks over the blue ones i want to paint over. Moving it into the loop didn't change it either :( |
|
![]() |
|
tfrost ![]() Senior Member ![]() Joined: 06 Sep 10 Location: UK Status: Offline Points: 437 |
![]() ![]() ![]() ![]() ![]() |
You did not mention earlier that you were trying to overwrite other blocks. Are you sure that the blocks are being rendered in the sequence you expect? It is not an area I am used to dealing with, but might the blue blocks somehow be configured to render on top? Someone else may be able to say how this could happen.
|
|
![]() |
|
Sykh ![]() Beginner ![]() Joined: 17 Sep 20 Location: Germany Status: Offline Points: 8 |
![]() ![]() ![]() ![]() ![]() |
Na the blue block is gone, thats how i know it's "working" :D
I set the mode to 3, there is a white block with black border exactly at the location i want it to be, it just needs a different fill color.
|
|
![]() |
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