Search found 121 matches

by Everydaydiesel
Thu Apr 23, 2020 7:57 pm
Forum: C++ Development
Topic: C++ Parsing TimeZone From Date String
Replies: 8
Views: 333

Re: C++ Parsing TimeZone From Date String

The api that I invoke returns a date in this similar format "2020-04-17T09:30:00-04:00" and I would like to put that into a unix/epoch form (in my time zone)
by Everydaydiesel
Thu Apr 23, 2020 7:09 pm
Forum: C++ Development
Topic: C++ Parsing TimeZone From Date String
Replies: 8
Views: 333

Re: C++ Parsing TimeZone From Date String

Hello doublemax, You have helped me so much over the years and I thank you! The api returns the data "2020-04-17T09:30:00-04:00" but i could strip the extra : out of what it returns (I didnt write the api, I only invoke/consume) I will be the first to admit, I have alot to learn when its comes to EP...
by Everydaydiesel
Thu Apr 23, 2020 4:36 am
Forum: C++ Development
Topic: C++ Parsing TimeZone From Date String
Replies: 8
Views: 333

Re: C++ Parsing TimeZone From Date String

This value is returned from the api "2020-04-17T09:30:00-04:00" which is EST time zone and I need to convert it to CST but I am unsure really how to do this with built in functions of C++ and/or wxwidgets There is some weird timezone / daylight savings time calculations that apparently makes it 1 ho...
by Everydaydiesel
Sun Apr 19, 2020 6:46 am
Forum: C++ Development
Topic: C++ Parsing TimeZone From Date String
Replies: 8
Views: 333

C++ Parsing TimeZone From Date String

Hello I realize this is not wxWidgets specific but it is C++ and you guys are a lot smarter then I am. I have the following date that I am consuming from an api. string sToParse = "2020-04-17T09:30:00-04:00"; which should be in human form "Friday, April 17, 2020 08:30:00" central time or epoch of 15...
by Everydaydiesel
Sat Apr 18, 2020 6:48 am
Forum: General Development
Topic: Best Graphics Library For Drawing Text/Graphs On Huge Resolution
Replies: 4
Views: 330

Re: Best Graphics Library For Drawing Text/Graphs On Huge Resolution

also that resolution is the equivalent of 16 (4x4) 1920x1080 monitors so I am concerned with refresh performance
by Everydaydiesel
Sat Apr 18, 2020 12:23 am
Forum: General Development
Topic: Best Graphics Library For Drawing Text/Graphs On Huge Resolution
Replies: 4
Views: 330

Re: Best Graphics Library For Drawing Text/Graphs On Huge Resolution

its basically the stock market. I dont really have a frame rate but will need to 'redraw' or update regions of the screen as they come in. Updates could be as fast as 2x a second. It will just be a passive display.
by Everydaydiesel
Fri Apr 17, 2020 9:23 pm
Forum: General Development
Topic: Best Graphics Library For Drawing Text/Graphs On Huge Resolution
Replies: 4
Views: 330

Best Graphics Library For Drawing Text/Graphs On Huge Resolution

Hello, I am working on designing an application that has a resolution of 7680x4320 (its 4 - 4k monitors put together) in a linux environment. The monitors will display very small 8pt font letters and have historical graph information. What is the best graphics library to use for this? I doubt having...
by Everydaydiesel
Mon Apr 06, 2020 9:39 pm
Forum: C++ Development
Topic: wxMemoryDC::getPixel returning null
Replies: 5
Views: 231

Re: wxMemoryDC::getPixel returning null

Thank you so much for the example.

That works. Thanks again for helping me. I really appreciate it
by Everydaydiesel
Mon Apr 06, 2020 8:08 pm
Forum: C++ Development
Topic: wxMemoryDC::getPixel returning null
Replies: 5
Views: 231

Re: wxMemoryDC::getPixel returning null

Thank you for the reply. GetPixels is returning false

I am not sure how to get the RGB of a X,Y pixel of a wxNativePixelData. Do you know how I would do this?


wxNativePixelData npd(m_bmpSelectedWord);
npd.GetPixels() // unsure how this works or if it is even right
by Everydaydiesel
Mon Apr 06, 2020 7:06 pm
Forum: C++ Development
Topic: wxMemoryDC::getPixel returning null
Replies: 5
Views: 231

wxMemoryDC::getPixel returning null

Hello, I recently updated my system (linux) and now wxMemoryDC::getPixel(x, y, wxColour) is returning null. I basically need to check and see if all the verticle pixels of an image are white. wxColour col; wxMemoryDC dc(m_bmpSelectedImg); for(int j = 0; j < m_bmpSelectedImg.GetHeight(); j++) { dc.Ge...
by Everydaydiesel
Mon Jun 03, 2019 4:16 pm
Forum: C++ Development
Topic: Drawing With 'Layers'
Replies: 10
Views: 516

Re: Drawing With 'Layers'

Does it draw a line on yours? When I try it on mine it doesnt draw the red line.

build 2017-09-30, 18:21:54 wx3.0.3 (Linux, unicode) 64 bit
by Everydaydiesel
Mon Jun 03, 2019 3:18 pm
Forum: C++ Development
Topic: Drawing With 'Layers'
Replies: 10
Views: 516

Re: Drawing With 'Layers'

I tried that code but the line is still on top of the text instead of underneath
OutputEnlarged.png
OutputEnlarged.png (4.07 KiB) Viewed 461 times
by Everydaydiesel
Mon Jun 03, 2019 3:00 pm
Forum: C++ Development
Topic: Drawing With 'Layers'
Replies: 10
Views: 516

Re: Drawing With 'Layers'

Thanks. I think I am getting closer. This code creates this but it is not drawing the red line for some reason. (the background is transparent) TestOutput.png wxBitmap bmp(463, 105, 32); bmp.LoadFile("Input.png"); wxMemoryDC memDC(bmp); memDC.SetBackground(*wxTRANSPARENT_BRUSH); memDC.SetBackgroundM...
by Everydaydiesel
Mon Jun 03, 2019 12:59 pm
Forum: C++ Development
Topic: Drawing With 'Layers'
Replies: 10
Views: 516

Re: Drawing With 'Layers'

Thank you for the reply. I thought I was doing that? Maybe LoadFile clears the mask out? wxBitmap bmp(463, 105, 32); wxMask *pmask = new wxMask(bmp, wxColour(255, 255, 255)); bmp.SetMask(pmask); bmp.LoadFile("Input.png"); edit: I tried the DrawBitmap function after DrawLine but it still did not work...
by Everydaydiesel
Mon Jun 03, 2019 5:16 am
Forum: C++ Development
Topic: Drawing With 'Layers'
Replies: 10
Views: 516

Re: Drawing With 'Layers'

Here is the enlarged version of the ouput


Actual Output:
ActualOutputEnlarged.png
ActualOutputEnlarged.png (4.25 KiB) Viewed 511 times

Target Output:
TargetOutputEnlarged.png
TargetOutputEnlarged.png (4.19 KiB) Viewed 511 times