Black lines and text come out gray  [SOLVED]

Talk here about issues with one of the components hosted at wxCode, or suggest features for it.
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  [SOLVED]

Postby 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
Earned a small fee
Earned a small fee
Posts: 20
Joined: Tue Jun 07, 2016 1:07 pm

Re: Black lines and text come out gray

Postby 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

Postby 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

Postby 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.


Return to “wxCode”

Who is online

Users browsing this forum: No registered users and 0 guests