Black lines and text come out gray Topic is solved

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
Post Reply
rsb
Earned some good credits
Earned some good credits
Posts: 127
Joined: Fri May 29, 2015 7:26 pm

Black lines and text come out gray

Post by rsb » Mon Jan 07, 2019 3:06 pm

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);

Kvaz1r
Knows some wx things
Knows some wx things
Posts: 29
Joined: Tue Jun 07, 2016 1:07 pm

Re: Black lines and text come out gray

Post by Kvaz1r » Mon Jan 07, 2019 4:28 pm

Hello. Can you provide full (but minimal) code for reproducing behaviour?

rsb
Earned some good credits
Earned some good credits
Posts: 127
Joined: Fri May 29, 2015 7:26 pm

Re: Black lines and text come out gray

Post by rsb » Mon Jan 07, 2019 5:04 pm

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.

rsb
Earned some good credits
Earned some good credits
Posts: 127
Joined: Fri May 29, 2015 7:26 pm

Re: Black lines and text come out gray

Post by rsb » Mon Jan 07, 2019 5:31 pm

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.

Post Reply