Search found 81 matches

by Everydaydiesel
Thu May 10, 2018 4:41 am
Forum: C++ Development
Topic: help drawing this on device context
Replies: 19
Views: 435

Re: help drawing this on device context

So I was able to get AA to work properly but not on this code.. code from other thread wxPaintDC pdc(this); #if wxUSE_GRAPHICS_CONTEXT wxGCDC gdc( pdc ) ; wxDC &dc = m_useContext ? (wxDC&) gdc : (wxDC&) pdc ; #else wxDC &dc = pdc ; #endif PrepareDC(dc); my code using wxMemoryDC (draw...
by Everydaydiesel
Mon Apr 23, 2018 5:29 am
Forum: C++ Development
Topic: help drawing this on device context
Replies: 19
Views: 435

Re: help drawing this on device context

Maybe I should have done that from the start? When I search google and docs.wxwidgets.org i dont see any wxGLPanel documentation? Do you know how I would do this? Drawing with opengl seems to be pretty straight foward using glVertex2f https://www.ntu.edu.sg/home/ehchua/programming/opengl/CG_Introduc...
by Everydaydiesel
Sun Apr 22, 2018 11:48 pm
Forum: C++ Development
Topic: help drawing this on device context
Replies: 19
Views: 435

Re: help drawing this on device context

Is it possible to draw with opengl inside of a wxwidgets wxPanel?
by Everydaydiesel
Sun Apr 22, 2018 10:37 pm
Forum: C++ Development
Topic: help drawing this on device context
Replies: 19
Views: 435

Re: help drawing this on device context

Thank you for helping.

wx-config --version 3.0.2
uname -a Linux user-desktop 4.13.0-38-generic #43~16.04.1-Ubuntu SMP Wed Mar 14 17:48:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
os: linux mint 18.3 - kde plasma: 5.8.8
compiler: codeblocks 16.01
by Everydaydiesel
Sun Apr 22, 2018 6:25 pm
Forum: C++ Development
Topic: help drawing this on device context
Replies: 19
Views: 435

Re: help drawing this on device context

Now it is working! Other then graphing more coordinates. Does anyone have any advice on smoothing the rough edges of the lines? https://i.imgur.com/uwCTd2g.png Edit: I see this post https://forums.wxwidgets.org/viewtopic.php?p=66885#66885 I linked gdiplus but the #if wxUSE_GRAPHICS_CONTEXT is grayed...
by Everydaydiesel
Sun Apr 22, 2018 1:11 pm
Forum: C++ Development
Topic: help drawing this on device context
Replies: 19
Views: 435

Re: help drawing this on device context

This one looks closer but is still missing something https://i.imgur.com/XlnB4lR.png vector<int> lssX; vector<int> lssY; int iOldX = 0; int iOldY = 100; wxColor colWhite = wxColor(255, 255, 255); wxColor colRed = wxColor(255, 0, 0); wxPaintDC dc(Panel1); wxRect rect = Panel1->GetClientRect(); lssX.p...
by Everydaydiesel
Sun Apr 22, 2018 1:02 pm
Forum: C++ Development
Topic: help drawing this on device context
Replies: 19
Views: 435

Re: help drawing this on device context

Thanks to everyone who has helped me. I seem to be missing something still because it is not drawing correctly. The top image is what it looks like when I comment out // dc.SetDeviceClippingRegion(myRegion); The bottom is with the dc.SetDeviceClippingRegion(myRegion); https://i.imgur.com/2eDUDKj.png...
by Everydaydiesel
Sun Apr 22, 2018 2:18 am
Forum: C++ Development
Topic: help drawing this on device context
Replies: 19
Views: 435

Re: help drawing this on device context

Thank you for the reply and please excuse my ignorance. The size_t is the array length? I would expect the points to be an array or vector but I dont think it is. So how do I put multiple values in a wxPoint * wxRegion::wxRegion ( size_t n, const wxPoint * points, wxPolygonFillMode fillStyle = wxODD...
by Everydaydiesel
Sat Apr 21, 2018 10:44 pm
Forum: C++ Development
Topic: help drawing this on device context
Replies: 19
Views: 435

Re: help drawing this on device context

Thank you for replying. I cannot find any info on the wxClippingRegion. Could you please show me how I would change this code to draw using the SetDeviceClippingRegion? It seems that SetDeviceClippingRegion only takes a single coordinate? How would I map multiple like in this example? vector<int> ls...
by Everydaydiesel
Sat Apr 21, 2018 2:32 am
Forum: C++ Development
Topic: help drawing this on device context
Replies: 19
Views: 435

help drawing this on device context

Hello,

Does anyone have any advice on how I can draw this image?

stk.png
stk.png (18.46 KiB) Viewed 335 times


I know how to draw the line and I know how to draw the gradient but how do you only have the gradient below the line?

Thanks for any help you can give
by Everydaydiesel
Fri Apr 20, 2018 9:14 pm
Forum: wxCode
Topic: compiling wxpdfdocument on linux
Replies: 4
Views: 243

Re: compiling wxpdfdocument on linux

The build system of wxPdfDocument uses libtool. If you link against libwxcode_gtk3u_pdfdoc-3.0.la , all should work, since this libtool file contains references to all required dependencies like wxWidgets libraries and fontconfig library. Regards, Ulrich Thank you!!! and thank you to everyone that ...
by Everydaydiesel
Fri Apr 20, 2018 4:07 pm
Forum: wxCode
Topic: compiling wxpdfdocument on linux
Replies: 4
Views: 243

compiling wxpdfdocument on linux

Hello I am trying to get wxPdfDocument addon to work but I cannot quite get it. Here is what I have done. Downloaded https://github.com/utelle/wxpdfdoc/archive/master.zip I extracted the zip file and ran these commands ../configure checking for a BSD-compatible install... /usr/bin/install -c checkin...
by Everydaydiesel
Mon Feb 19, 2018 3:04 am
Forum: C++ Development
Topic: Loading A wxAnimationControl With A String
Replies: 5
Views: 225

Re: Loading A wxAnimationControl With A String

Hello, I am now trying to do this through a wxPaintDC DrawBitmap but it draws the background as hot pink? The gif contains a transparent background. The commented code is stuff I have tried but doesnt seem to make any difference. wxPaintDC dc(pnIcon); // dc.SetBrush(colBackground); // dc.SetPen( wxP...
by Everydaydiesel
Thu Feb 15, 2018 3:55 pm
Forum: C++ Development
Topic: Loading A wxAnimationControl With A String
Replies: 5
Views: 225

Re: Loading A wxAnimationControl With A String

thank you for helping me. in the example you posted they delete the char array there is no need for me to do that since i am using a std::string right? wxMemoryInputStream stream(m_sRawMapData.c_str(), m_sRawMapData.size()); AnimationCtrl1->Load(stream, wxANIMATION_TYPE_GIF); AnimationCtrl1->Play();
by Everydaydiesel
Thu Feb 15, 2018 3:11 pm
Forum: C++ Development
Topic: Loading A wxAnimationControl With A String
Replies: 5
Views: 225

Loading A wxAnimationControl With A String

Hello, I have an two network applications the 'server' take an image (gif) and transmits that image over the network connection as a string. Basically I have a string that contains the gif information and I want to load that into a wxAnimationControl. m_sRawMapData is the string containing the gif d...

Go to advanced search