Search found 150 matches

by rsb
Thu Feb 06, 2020 5:59 pm
Forum: Platform Related Issues
Topic: OpenGL Compile Errors
Replies: 3
Views: 126

Re: OpenGL Compile Errors

Hello, Yes the libraries were built on the virtual machine. wxWidgets was built: ../configure --with-gtk --without-gnomeprint --enable-debug make Also tried the --with-opengl argument but this did not make any difference. The samples work fine so I'm looking to see what is different between them and...
by rsb
Tue Feb 04, 2020 1:38 pm
Forum: Platform Related Issues
Topic: OpenGL Compile Errors
Replies: 3
Views: 126

OpenGL Compile Errors

Host O/S: Windows 10 Guest O/S: Red Hat 7.7 Vmware 15.5.1 build-15018445 File: src\unix\glx11.cpp function: bool wxGLCanvasX11::InitXVisualInfo(const int *attribList, GLXFBConfig **pFBC, XVisualInfo **pXVisual) There is a call to the libGL function: *pFBC = glXChooseFBConfig(dpy, DefaultScreen(dpy),...
by rsb
Fri Jan 10, 2020 3:15 pm
Forum: wxCode
Topic: Problems with Blit
Replies: 8
Views: 779

Re: Problems with Blit

Thanks Utelle, The approach you recommended is what we were doing, it looks good in PDF but not good when drawing to the screen using a wxDC which is why we were looking for a new solution. It's really hard to get the end caps (half circles) to line up with the arc endpoints. So we will just use one...
by rsb
Mon Jan 06, 2020 8:04 pm
Forum: wxCode
Topic: Problems with Blit
Replies: 8
Views: 779

Re: Problems with Blit

See attached file. Basically it draws a filled arc, then sets all pixels inside the arc
outline to transparent.

I was able to get this to work by using DrawBitmap instead of Blit but it's very slow.

Thanks very much.
by rsb
Mon Jan 06, 2020 5:41 pm
Forum: wxCode
Topic: Problems with Blit
Replies: 8
Views: 779

Re: Problems with Blit

Thanks Utelle, Utelle wrote: | Please keep in mind that PDF is a vector graphics format, while on screen you have a pixel graphics format. Okay. Utelle wrote: | Why don't you draw the arc outline directly? We're trying to draw the outline of the arc only as in the second picture with the internal pi...
by rsb
Fri Jan 03, 2020 9:02 pm
Forum: wxCode
Topic: Problems with Blit
Replies: 8
Views: 779

Problems with Blit

Hello, I'm using the wxPdfDC Blit method to print an arc outline. It works perfectly when I print to the screen using wxDC but when I print to a PDF using the wxPdfDC , it displays a black rectangle with the arc inside. How do I blit to pdf so the bitmap rectangle background is transparent. I'm usin...
by rsb
Fri Dec 06, 2019 4:46 pm
Forum: C++ Development
Topic: Drawing an arc using a stipple brush
Replies: 6
Views: 178

Re: Drawing an arc using a stipple brush

Yes, See attached image. The arc is using a wxPen with a stipple fill. The circle is using a wxBrush with the same stipple fill. For the circle, the brush style is set to wxBRUSHSTYLE_STIPPLE_MASK_OPAQUE and the text foreground color is set to green. dc->SetTextForeground( *wxGREEN ); For the arc, t...
by rsb
Thu Dec 05, 2019 9:37 pm
Forum: C++ Development
Topic: Drawing an arc using a stipple brush
Replies: 6
Views: 178

Re: Drawing an arc using a stipple brush

Is this something that could be enhanced in wxWidgets? We really need the primitive lines to have color.

Thanks.
by rsb
Thu Dec 05, 2019 6:56 pm
Forum: C++ Development
Topic: Drawing an arc using a stipple brush
Replies: 6
Views: 178

Re: Drawing an arc using a stipple brush

Yes, I can see the pattern but the color is always white. I noticed the attached in the documentation. The stipple mask and stipple mask opaque entries are not supported. This is what we used when setting a brush when drawing a stipple fill interior. Will this be updated anytime soon or is there any...
by rsb
Thu Dec 05, 2019 5:03 pm
Forum: C++ Development
Topic: Drawing an arc using a stipple brush
Replies: 6
Views: 178

Drawing an arc using a stipple brush

Hello,

Is there a way to draw an arc (not a pie) with a thick line using something other than a solid fill brush?

Thanks.
by rsb
Wed Sep 25, 2019 12:03 pm
Forum: wxCode
Topic: PDF File Size Larger than Expected
Replies: 16
Views: 1510

Re: PDF File Size Larger than Expected

utelle wrote:
I will look into this issue. However, it may take some time to implement the necessary optimizations.
Thank you very much.
by rsb
Tue Sep 24, 2019 7:39 pm
Forum: wxCode
Topic: PDF File Size Larger than Expected
Replies: 16
Views: 1510

Re: PDF File Size Larger than Expected

Ok, Thanks, I'll use GitHub in the future. Here's a 7z file with the three PDF files that we generated. Two use the wxPrinter class and the third uses the wxPdfPrinter class along with the wxPdfDC class. BOARD_wxpdfprinter.pdf (size: 312KB) BOARD_wxprinter_adobe.pdf (size: 47KB) BOARD_wxprinter_bull...
by rsb
Tue Sep 24, 2019 7:00 pm
Forum: wxCode
Topic: PDF File Size Larger than Expected
Replies: 16
Views: 1510

Re: PDF File Size Larger than Expected

This is the wxCode forum. Isn't it?
by rsb
Tue Sep 24, 2019 1:29 pm
Forum: wxCode
Topic: PDF File Size Larger than Expected
Replies: 16
Views: 1510

PDF File Size Larger than Expected

Hello, We're getting file sizes larger than when printing using the wxPrinter class. We have a fairly simple one page design and the size of the file created using wxPdfPrinter and wxPdfDC is 312KB. The size using wxPrinter and output to Adobe is 47KB and the size using wxPrinter and output to BullZ...
by rsb
Wed Sep 04, 2019 9:30 pm
Forum: C++ Development
Topic: Choosing a Network Computer
Replies: 1
Views: 135

Choosing a Network Computer

Hello,

Does wxWidgets have a dialog or a function that can list the names of computers connected to a network?

i.e. Network Computer Chooser Dialog?

I need the list of computer names that you see in Windows Explorer under Network.

Thanks.