Is it a known issue in wxPDF that the wxBRUSHSTYLE_STIPPLE_MASK_OPAQUE flag is not working? The results to the display in my application are correct, but the objects in the PDF are always solid fill, as if it is always using wxBRUSHSTYLE_SOLID. The dc in the following code is a wxPdfDC when writing a pdf.
Code: Select all
wxPen pen = dc->GetPen();
pen.SetStyle( wxBRUSHSTYLE_STIPPLE_MASK_OPAQUE );
wxBrush brush = dc->GetBrush();
brush.SetStyle( wxBRUSHSTYLE_STIPPLE_MASK_OPAQUE );
Just as a side note: for setting the pen style you should use wxPenStyle values.
Unfortunately wxPdfDC currently only supports solid brush styles. That is, only the color attribute of a brush is used to set the PDF fill color.
wxPdfDocument itself supports various line and fill types including bitmap patterns. However, stencil masking (PDF equivalent of wxBRUSHSTYLE_STIPPLE_MASK_OPAQUE) is currently not supported.
At the moment I have no plans to add stencil masking myself, but contributions are welcome, of course.