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
I live to help wx-kind
I live to help wx-kind
Posts: 170
Joined: Fri May 29, 2015 7:26 pm

Black lines and text come out gray

Post 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);
Kvaz1r
Super wx Problem Solver
Super wx Problem Solver
Posts: 357
Joined: Tue Jun 07, 2016 1:07 pm

Re: Black lines and text come out gray

Post by Kvaz1r »

Hello. Can you provide full (but minimal) code for reproducing behaviour?
rsb
I live to help wx-kind
I live to help wx-kind
Posts: 170
Joined: Fri May 29, 2015 7:26 pm

Re: Black lines and text come out gray

Post 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.
rsb
I live to help wx-kind
I live to help wx-kind
Posts: 170
Joined: Fri May 29, 2015 7:26 pm

Re: Black lines and text come out gray

Post 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.
Post Reply