Search found 1125 matches
- Mon Oct 04, 2021 3:13 pm
- Forum: wxCode
- Topic: wxPDF: brush & pen funky with multiple rotated rectangles
- Replies: 13
- Views: 14683
Re: wxPDF: brush & pen funky with multiple rotated rectangles
I am not sure if forgetting the settings is the problem here, because I apply the settings before each paint action? The problem is that wxPdfDC tries to be smart and actually only sets the brush color for the PDF document, if the brush color differs from the previous. This is not the case, therefo...
- Sat Oct 02, 2021 5:19 pm
- Forum: wxCode
- Topic: wxPDF: brush & pen funky with multiple rotated rectangles
- Replies: 13
- Views: 14683
Re: wxPDF: brush & pen funky with multiple rotated rectangles
I see that you apply the rotation directly to the PDF document instance, not to the drawing context. At least there is a chance that this causes the trouble. That you are applying rotation directly to the PDF document is at least part of the problem. If the fill color is set after a transformation ...
- Fri Oct 01, 2021 2:23 pm
- Forum: wxCode
- Topic: wxPDF: brush & pen funky with multiple rotated rectangles
- Replies: 13
- Views: 14683
Re: wxPDF: brush & pen funky with multiple rotated rectangles
i hope it helps when i concatenate the parts of my code that lead to drawing the rectangle: Thanks for providing the code. I see that you apply the rotation directly to the PDF document instance, not to the drawing context. At least there is a chance that this causes the trouble. When you apply rot...
- Thu Sep 30, 2021 7:42 pm
- Forum: wxCode
- Topic: wxPDF: brush & pen funky with multiple rotated rectangles
- Replies: 13
- Views: 14683
Re: wxPDF: brush & pen funky with multiple rotated rectangles
this is really weird and it is very hard to produce a minimal example, so maybe someone knows a solution without having to. i attached a picture of how the pdf page is supposed to look like and the produced pdf. brushed and pens get mixed up, but only if the rectangles are rotated. i found some hin...
- Sun Sep 19, 2021 11:27 am
- Forum: wxCode
- Topic: wxPDF wxBRUSHSTYLE substitude
- Replies: 20
- Views: 22154
- Sat Sep 18, 2021 4:19 pm
- Forum: wxCode
- Topic: wxPDF wxBRUSHSTYLE substitude
- Replies: 20
- Views: 22154
Re: wxPDF wxBRUSHSTYLE substitude
In the latest wxPdfDocument version on GitHub I adjusted the scaling applied to hatch patterns, so that it should work now as expected. Please give it a try, and report back the results. Thanks in advance.
- Sat Sep 18, 2021 4:02 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Setting up wxWidgets with wxChartDir for Visual Studio 2019.
- Replies: 12
- Views: 4396
Re: Setting up wxWidgets with wxChartDir for Visual Studio 2019.
Well that was odd, it worked, in fact I actually only had to include wxChartViewer.cpp for it to work, you can't fault me for not knowing that though, I don't understand why this file is a special case, I didn't have to add any of the other files logically... Well, only if you set up a project for ...
- Fri Sep 17, 2021 4:13 pm
- Forum: wxCode
- Topic: wxPDF wxBRUSHSTYLE substitude
- Replies: 20
- Views: 22154
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 ...
- Fri Sep 17, 2021 2:37 pm
- Forum: wxCode
- Topic: wxPDF wxBRUSHSTYLE substitude
- Replies: 20
- Views: 22154
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...
- Fri Sep 17, 2021 9:37 am
- Forum: wxCode
- Topic: wxPDF wxBRUSHSTYLE substitude
- Replies: 20
- Views: 22154
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...
- Fri Sep 17, 2021 8:31 am
- Forum: Compiler / Linking / IDE Related
- Topic: Setting up wxWidgets with wxChartDir for Visual Studio 2019.
- Replies: 12
- Views: 4396
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...
- Wed Sep 15, 2021 8:39 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Setting up wxWidgets with wxChartDir for Visual Studio 2019.
- Replies: 12
- Views: 4396
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...
- Wed Sep 15, 2021 7:05 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Setting up wxWidgets with wxChartDir for Visual Studio 2019.
- Replies: 12
- Views: 4396
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...
- Wed Sep 15, 2021 4:36 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Setting up wxWidgets with wxChartDir for Visual Studio 2019.
- Replies: 12
- Views: 4396
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 ...
- Wed Sep 15, 2021 7:19 am
- Forum: Announcements and Discoveries
- Topic: ANN: wxPdfDocument 1.0.0 released
- Replies: 0
- Views: 16047
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...