Search found 1043 matches

by utelle
Fri Sep 17, 2021 4:13 pm
Forum: wxCode
Topic: wxPDF wxBRUSHSTYLE substitude
Replies: 17
Views: 1141

Re: wxPDF wxBRUSHSTYLE substitude

You will see that if you display the PDF document in a PDF viewer and set the magnification factor to 800%, for example. You will see that the rectangle is hatched as requested. Yes!!!! I did not think of zooming in, great! Sounds right that the resolution is probably the cause for this very dense ...
by utelle
Fri Sep 17, 2021 2:37 pm
Forum: wxCode
Topic: wxPDF wxBRUSHSTYLE substitude
Replies: 17
Views: 1141

Re: wxPDF wxBRUSHSTYLE substitude

i am confused, so can I use wxDC::DrawRectangle or do I have to use wxPdfDocument::Rect ? The former would be easier, but it does not show wxBRUSHSTYLE_BDIAGONAL_HATCH yet. Well, of course you should be able to use wxDC::DrawRectangle. In my previous post I wrote that the problem seems to be a scal...
by utelle
Fri Sep 17, 2021 9:37 am
Forum: wxCode
Topic: wxPDF wxBRUSHSTYLE substitude
Replies: 17
Views: 1141

Re: wxPDF wxBRUSHSTYLE substitude

unfortunately I could not get it to work with the latest version. Well, all I can tell is that the patterns work in the samples coming with wxPdfDocument. So, most likely there is something wrong in your code. I attached both failures, one from the png pattern and one with wxPDF_PATTERNSTYLE_BDIAGO...
by utelle
Fri Sep 17, 2021 8:31 am
Forum: Compiler / Linking / IDE Related
Topic: Setting up wxWidgets with wxChartDir for Visual Studio 2019.
Replies: 10
Views: 179

Re: Setting up wxWidgets with wxChartDir for Visual Studio 2019.

Ok, I got ChartDirector working, with some tweaking I got one of the samples working, creating a chart and outputting to it PNG, thank you. (By the way, since I have my target platform set to win32, it did not work until I linked the win32 lib instead of the 64 one). Well, in one of your first post...
by utelle
Wed Sep 15, 2021 8:39 pm
Forum: Compiler / Linking / IDE Related
Topic: Setting up wxWidgets with wxChartDir for Visual Studio 2019.
Replies: 10
Views: 179

Re: Setting up wxWidgets with wxChartDir for Visual Studio 2019.

Ok, I've been going through the folder for a while now, and I'm confused as to which files I should grab... At first glance, the folder structure may be a bit confusing. However, I closely followed the folder structure you find in the ChartDirector distribution. The reason for this approach is that...
by utelle
Wed Sep 15, 2021 7:05 pm
Forum: Compiler / Linking / IDE Related
Topic: Setting up wxWidgets with wxChartDir for Visual Studio 2019.
Replies: 10
Views: 179

Re: Setting up wxWidgets with wxChartDir for Visual Studio 2019.

I'm trying to make my own apps, you're telling it's as simple as just adding the source files to my project? Yes, in principle it is as simple as that. Of course, you need to add references to the ChartDirector library (header include path, link libraries etc). Inspect the Visual C++ project and so...
by utelle
Wed Sep 15, 2021 4:36 pm
Forum: Compiler / Linking / IDE Related
Topic: Setting up wxWidgets with wxChartDir for Visual Studio 2019.
Replies: 10
Views: 179

Re: Setting up wxWidgets with wxChartDir for Visual Studio 2019.

I already have wxWidgets up and running, I want to use ChartDirector with it, at the bottom of this (1) page it says ChartDirector is already included within wxChartDir (Well, the trial version is, but that's all I need) so I'll only need to install that, but I don't know how to approach this, the ...
by utelle
Wed Sep 15, 2021 7:19 am
Forum: Announcements and Discoveries
Topic: ANN: wxPdfDocument 1.0.0 released
Replies: 0
Views: 75

ANN: wxPdfDocument 1.0.0 released

Version 1.0.0 of wxPdfDocument has been released. This version is compatible with wxWidgets 3.0.x , and 3.1.x . Sample PDF files created with wxPdfDocument can be found here . Due to the removal of support for wxWidgets 2.8.x there is a change in the major version number this time. A major enhanceme...
by utelle
Tue Sep 14, 2021 10:16 pm
Forum: wxCode
Topic: wxPDF wxBRUSHSTYLE substitude
Replies: 17
Views: 1141

Re: wxPDF wxBRUSHSTYLE substitude

i can confirm that it is not a blank page anymore, but there is no pattern using the code posted previously. I used the graphics pattern file you posted here, and it worked for me. No idea what went wrong in your application. However, it would be nice if you could provide the resulting PDF file (wi...
by utelle
Fri Sep 10, 2021 2:03 pm
Forum: wxCode
Topic: wxPDF wxBRUSHSTYLE substitude
Replies: 17
Views: 1141

Re: wxPDF wxBRUSHSTYLE substitude

For templates it is required to list all resources they depend on. This is done for fonts and images, but unfortunately not for patterns. I will try to fix this issue. However, this may take a few days, because I have a rather tight schedule at the moment. The latest commit (as of today) in the wxP...
by utelle
Thu Sep 09, 2021 5:12 pm
Forum: wxCode
Topic: wxPDF wxBRUSHSTYLE substitude
Replies: 17
Views: 1141

Re: wxPDF wxBRUSHSTYLE substitude

this is the basic level of creating the pdf, the actual drawing happens depp within printToDC [...] is there an easy way to get rid of these tabs when i insert code? i am tired of manually removing the spaces in each line when posting code. This is an issue of the forum software. Unfortunately, I h...
by utelle
Thu Sep 09, 2021 2:02 pm
Forum: wxCode
Topic: wxPDF wxBRUSHSTYLE substitude
Replies: 17
Views: 1141

Re: wxPDF wxBRUSHSTYLE substitude

okay, thank you! i changed the code like this: wxImage img = SystemState::loadImage(wxT("images/pdfhatch.png")); pdfDcmt.AddPattern(wxS("bluehatch"), img, 2, 2); wxPdfArrayDouble dash2; wxPdfLineStyle style2(0.5, wxPDF_LINECAP_BUTT, wxPDF_LINEJOIN_MITER, dash2, 0., wxColour(255, 0, 0)); pdfDcmt.Set...
by utelle
Tue Sep 07, 2021 9:15 pm
Forum: wxCode
Topic: wxPDF wxBRUSHSTYLE substitude
Replies: 17
Views: 1141

Re: wxPDF wxBRUSHSTYLE substitude

thank you! i tried it but only get an empty page without any error message. what I am doing is this after successfully loading via wxImage::LoadFile(path) pdfDcmt.AddPattern(wxS("bluehatch"), img, 32, 32); ... pdfDcmt.SetFillPattern(wxS("bluehatch")); pdfDcmt.Rect(pnt.x, pnt.y, sz.GetWidth(), sz.Ge...
by utelle
Fri Sep 03, 2021 8:31 pm
Forum: wxCode
Topic: wxPDF wxBRUSHSTYLE substitude
Replies: 17
Views: 1141

Re: wxPDF wxBRUSHSTYLE substitude

So I found in some other post that wxBRUSHSTYLE is not supported in wxPDFDoc Yes, that is correct. Support for wxBRUSHSTYLEs in wxPdfDC is currently not implemented. and that wxPdfPattern might be an alternative? I could not find an example on how to do that. Currently only the use of bitmap images...
by utelle
Fri Aug 13, 2021 11:35 am
Forum: wxCode
Topic: wxPDFDocument speed up DrawLines
Replies: 15
Views: 2975

Re: wxPDFDocument speed up DrawLines

Maybe you can use penwidth 1 for displaying on screen? Yes, I will do that for displaying on screen, but it has to be a thicker line in the pdf, otherwise it is too difficult to see. so you think it would be faster in the pdf using direct2D (if it can be used in the pdf at all)? Please try to use w...