Page 1 of 1

Black lines and text come out gray

Posted: Mon Jan 07, 2019 3:06 pm
by rsb
Hello,

When plotting using wxPDFDocument, we set the wxPen and wxBrush color to black as well
as the text background color, but when we plot the color is a light gray. Is this by design or
is there something I need to do to make sure the plot color is a true black?

Thanks,

Regards,
Bob Bachman

wxColour foregroundColour = *wxBLACK;
dc->SetTextForeground( foregroundColour );
brush.SetColour(foregroundColour);
pen.SetColour( foregroundColour );
dc->SetPen(pen);
dc->SetBrush(brush);

Re: Black lines and text come out gray

Posted: Mon Jan 07, 2019 4:28 pm
by Kvaz1r
Hello. Can you provide full (but minimal) code for reproducing behaviour?

Re: Black lines and text come out gray

Posted: Mon Jan 07, 2019 5:04 pm
by rsb
I can't provide the full code, it would be too much. I did include the lines of code I'm using
to set the wxPdfDC in the original post.

The same code works correctly using the wxPrinterDC class. i.e. lines and text are black.

Re: Black lines and text come out gray

Posted: Mon Jan 07, 2019 5:31 pm
by rsb
Looks like it was in our code after all. The ROP setting was different between our printer and our pdf.

Sorry for bringing this up.