Search found 867 matches

by utelle
Thu Aug 08, 2019 7:43 pm
Forum: Announcements and Discoveries
Topic: ANN: wxSQLite3 4.4.5 released
Replies: 0
Views: 101

ANN: wxSQLite3 4.4.5 released

Version 4.4.5 of wxSQLite3 has been released. It supports version 3.29.0 of SQLite . This version is compatible with wxWidgets 2.8.12, wxWidgets 3.0.x, and wxWidgets 3.1.x. What's new in this release Upgrade to SQLite version 3.29.0 Added SQLite logging support Added build support for VS2019 Added C...
by utelle
Thu Aug 01, 2019 3:27 pm
Forum: wxCode
Topic: draw rotated bitmap with wxGCDC
Replies: 17
Views: 488

Re: draw rotated bitmap with wxGCDC

Unfortunately, the sample file is missing from the post. maybe it works this time, only attached and not placed inline? Yes, it worked. - AFAIK the forum supports only attachments not inline graphics. But like I wrote, I do not need this anymore, rotating the whole wxPdcDocument works great and lea...
by utelle
Thu Aug 01, 2019 1:35 pm
Forum: wxCode
Topic: draw rotated bitmap with wxGCDC
Replies: 17
Views: 488

Re: draw rotated bitmap with wxGCDC

Could you show a sample drawing? Here is one, it is 600dpi, only the circles bitmap took 7.7 seconds to draw to wxPdfDC. As you can see not everything on the page needs to be rotated. sampleOver7sec.zip Unfortunately, the sample file is missing from the post. :( I still think that creating a PDF te...
by utelle
Wed Jul 31, 2019 6:05 pm
Forum: wxCode
Topic: draw rotated bitmap with wxGCDC
Replies: 17
Views: 488

Re: draw rotated bitmap with wxGCDC

So I could reduce draw time by reducing the resolution (obviously), but I noticed one funny thing: wxMask does only work in my app 209dpi upwards. This is not the case with the sample code in the previous post. Is there any restriction, maybe bitmap size? Sorry, I don't know the answer to this ques...
by utelle
Wed Jul 31, 2019 5:59 pm
Forum: wxCode
Topic: draw rotated bitmap with wxGCDC
Replies: 17
Views: 488

Re: draw rotated bitmap with wxGCDC

You may have reasons for your approach to create a bitmap of a whole page first, but then you don't take advantage of the PDF vector drawing capabilities. Well, yes, as we discussed in this thread, I need to rotate everything I draw, but wxPdfDC does not support wxGCDC so I have to use wxGCDC with ...
by utelle
Wed Jul 31, 2019 11:39 am
Forum: wxCode
Topic: draw rotated bitmap with wxGCDC
Replies: 17
Views: 488

Re: draw rotated bitmap with wxGCDC

Hmmmm, the pdf hast a 600dpi resolution, so a standard din a 4 page results in this bitmap size. In fact, PDF files don't have a single DPI value, because PDF is a vector format. That is, vector objects like text have no resolution at all. Only bitmap objects have an associated resolution. Generati...
by utelle
Wed Jul 31, 2019 9:09 am
Forum: wxCode
Topic: draw rotated bitmap with wxGCDC
Replies: 17
Views: 488

Re: draw rotated bitmap with wxGCDC

One more question about wxPdfDC: DrawBitmap takes ~7 seconds for a 4700x5800px bitmap. Is there any way to speed it up? Well, your bitmap seems to be rather large. And unfortunately bitmaps can't be transferred to PDF directly. They have to be converted to a known graphics format like PNG or JPEG. ...
by utelle
Mon Jul 29, 2019 8:39 pm
Forum: wxCode
Topic: wxPdfDocument wich fonts can I use?
Replies: 9
Views: 271

Re: wxPdfDocument wich fonts can I use?

The problem is that the installed system fonts include also bitmap fonts which can't be used by wxPdfDocument. The wxPdfFontManager emits warning messages, when it tries to register such a bitmap font. When registering a single font file it is certainly useful to get a warning message on registerin...
by utelle
Tue Jul 23, 2019 6:37 pm
Forum: wxCode
Topic: draw rotated bitmap with wxGCDC
Replies: 17
Views: 488

Re: draw rotated bitmap with wxGCDC

What I mean is I cannot create a wxGCDC from a wxPdfDC. And it is very unlikely that this will ever be possible, because wxGCDC is part of wxWidgets itself while wxPdfDocument is not. Up to now support for manipulating the transformation matrix was not added to wxPdfDC. The only two things I do wit...
by utelle
Sat Jul 20, 2019 11:49 am
Forum: wxCode
Topic: draw rotated bitmap with wxGCDC
Replies: 17
Views: 488

Re: draw rotated bitmap with wxGCDC

I fail to be able to use wxGCDC with a wxPdfDC. wxGCDC uses a wxGraphicsContext internally, but provides a wxDC API externally. wxPdfDC is derived from wxDC and therefore lacks support for the wxGraphicsContext API. There were plans to implement a wxPdfGraphicsContext derived from wxGraphicsContext...
by utelle
Wed Jul 17, 2019 9:41 pm
Forum: Database Related
Topic: Catching SQLITEFULL exception
Replies: 2
Views: 348

Re: Catching SQLITEFULL exception

Currently our application has several exception catch blocks like this: catch (wxSQLite3Exception& e) { // log the exception message } I read in the documentation that SQLITE_FULL exception can occur even when writing to temporary files like journal files. Yes, that is correct. Now, i need a way to...
by utelle
Sun Jul 14, 2019 5:43 pm
Forum: Database Related
Topic: Another wxSQLite3 Installation Question
Replies: 17
Views: 282

Re: Another wxSQLite3 Installation Question

I tried it and wxSQLite3 can't be build with GCC 5.1.0. Unfortunately this is true for wxSQLite3 version 4.0.0 and above. The reason is that the SQLite encryption extension uses a Windows system function for generating random numbers, but the definition of that function is missing from the header f...
by utelle
Sun Jul 14, 2019 5:39 pm
Forum: Database Related
Topic: Another wxSQLite3 Installation Question
Replies: 17
Views: 282

Re: Another wxSQLite3 Installation Question

I actually have MinGW 8.2.0. But I had to resort to the MinGW 5.1.0 compiler that came with Code::Blocks to compile wxWidgets. Why? When installing Code::Blocks you can choose between a setup with and a setup without bundled C++ compiler. You should have used the setup without bundled compiler, and...
by utelle
Sun Jul 14, 2019 9:57 am
Forum: Database Related
Topic: Another wxSQLite3 Installation Question
Replies: 17
Views: 282

Re: Another wxSQLite3 Installation Question

Personally, I prefer to build wxSQLite3 as a separate library (either static or shared/DLL) and I'd recommend to follow that route. That's my problem, utelle: I don't know how to do this. Since you use a Mingw compiler you can use the makefile coming with wxSQLite3 to build wxSQLite3. This will req...
by utelle
Sun Jul 14, 2019 9:43 am
Forum: Database Related
Topic: Another wxSQLite3 Installation Question
Replies: 17
Views: 282

Re: Another wxSQLite3 Installation Question

In addition to what Ulrich (the author of wxSQLite3) said, forget what i wrote about just adding all the source files. I just tried it and this method doesn't work any more, at least not as easily. So you have to try to build wxSQLite3 "the hard way". I really wouldn't call it " the hard way ". Usi...