Search found 45 matches

by bertolino
Tue Apr 17, 2018 8:43 pm
Forum: C++ Development
Topic: From wxMemoryDC to wxGraphicsContext with a small issue
Replies: 8
Views: 770

Re: From wxMemoryDC to wxGraphicsContext with a small issue

Sorry, I was not clear. I want to draw some text over an image, so I use a bitmap for it. With the wxMemoryDC dc, I used to attach the dc to the bitmap: wxBitmap myBitmap = wxBitmap(myWxImage, -1) ; wxMemoryDC dc ; dc.SelectObject(myBitmap) ; ... dc.DrawText(...) ; ... myWxImage = myBitmap.ConvertTo...
by bertolino
Tue Apr 17, 2018 8:10 pm
Forum: C++ Development
Topic: From wxMemoryDC to wxGraphicsContext with a small issue
Replies: 8
Views: 770

From wxMemoryDC to wxGraphicsContext with a small issue

Hello, I recently changed my code that used wxMemoryDC to use wxGraphicsContext and get anti-aliasing support. It works great and the change from wxMemoryDC to wxGraphicsContext is quite simple since the methods are rather similar. Everything was fine until I made the changes on text drawing: My pro...
by bertolino
Thu Apr 12, 2018 7:01 am
Forum: C++ Development
Topic: Is Control key down?
Replies: 11
Views: 1560

Re: Is Control key down?

Hi,
I use Parallels and yes, there are hooks for several keys.
I have to look into this.
Thanks for your suggestion,

Pascal
by bertolino
Wed Apr 11, 2018 8:26 pm
Forum: C++ Development
Topic: Is Control key down?
Replies: 11
Views: 1560

Re: Is Control key down?

Hello OneEyeMan, BootCamp : Windows 7 Pro / Visual Studio Pro 2012. VM (Parallels): Windows 10 Pro / Visual Studio Pro 2015. The program that works correctly on a regular PC was compiled in the VM, so it seems that the problem doesn't come from the compiler itself but from the execution environment....
by bertolino
Wed Apr 11, 2018 7:53 am
Forum: C++ Development
Topic: Is Control key down?
Replies: 11
Views: 1560

Re: Is Control key down?

What a good question you asked! It allowed me to find the origin of the problem: I'm developing Windows applications using 2 MacBook Pro , one with BootCamp , the other one with a virtual Windows machine and the issue I encountered was with both of them (until now, I never had any strange behavior i...
by bertolino
Tue Apr 10, 2018 4:01 pm
Forum: C++ Development
Topic: Is Control key down?
Replies: 11
Views: 1560

Re: Is Control key down?

Thanks for your answer Doublemax. Actually, I didn't mention it in my post but I already tested wxGetKeyState(WXK_CONTROL) and wxGetKeyState(WXK_RAW_CONTROL) without any success. That is, the behavior is still the same that I described in my previous post. I wonder what I'm doing wrong or maybe ther...
by bertolino
Tue Apr 10, 2018 3:38 pm
Forum: C++ Development
Topic: Is Control key down?
Replies: 11
Views: 1560

Re: Is Control key down?

Thanks for the idea OneEyeMan!
I just compiled and run the keyboard sample:
When pressing Control, nothing happens.
When releasing Control, Hook, KeyDown and KeyUp events (in this order) occur.

Pascal
by bertolino
Tue Apr 10, 2018 2:36 pm
Forum: C++ Development
Topic: Is Control key down?
Replies: 11
Views: 1560

Is Control key down?

I want to know if Control key is down when moving the mouse but I can't make it work in all cases (and I get the same behavior with the Shift key ). - It works if Control key is pressed then mouse is moved with left button down. - It doesn't work if Control key is pressed then mouse is moved without...
by bertolino
Tue Oct 22, 2013 8:05 pm
Forum: Announcements and Discoveries
Topic: Sensarea: video object editing application
Replies: 7
Views: 3363

Re: Sensarea: video object editing application

Version 1.0.1 of Sensarea was recently released. It contains some bug fix and a better interpolation algorithm. Feel free to download it at http://www.gipsa-lab.grenoble-inp.fr/~pascal.bertolino/software.html and to visit our new facebook page that shows some results obtained with Sensarea: https://...
by bertolino
Fri Aug 30, 2013 7:07 am
Forum: The Code Dump
Topic: Load, display, process and save an image with wxWidgets
Replies: 2
Views: 4430

Re: Load, display, process and save an image with wxWidgets

Thanks for sharing. But a small advice: Converting the raw data to a wxImage and then to wxBitmap on each paint event is very inefficient and will lead to a noticeable slowdown with bigger images. You should keep a wxBitmap for display at all times and only update it when the image data changes. Th...
by bertolino
Thu Aug 29, 2013 5:06 pm
Forum: The Code Dump
Topic: Load, display, process and save an image with wxWidgets
Replies: 2
Views: 4430

Load, display, process and save an image with wxWidgets

Here is a small self-sufficient piece of code that shows how to deal with image files: load the image, display it, process it (I mean modify the pixels the way you like) and then save it. It can easily be extended to deal with many image processing. The code is just one file with some comments. Enjo...
by bertolino
Thu Aug 29, 2013 4:48 pm
Forum: Announcements and Discoveries
Topic: Sensarea: video object editing application
Replies: 7
Views: 3363

Re: Sensarea: video object editing application

evstevemd wrote:congrats. its great step!
I wish you all the best!
Thank you, I really need it
by bertolino
Wed Aug 14, 2013 6:54 pm
Forum: Announcements and Discoveries
Topic: Sensarea: video object editing application
Replies: 7
Views: 3363

Re: Sensarea: video object editing application

eranon wrote:Extra :idea: Wishing you to find your industrial partner...
Thanks for your kind comment!
by bertolino
Wed Aug 14, 2013 6:52 pm
Forum: Announcements and Discoveries
Topic: Sensarea: video object editing application
Replies: 7
Views: 3363

Re: Sensarea: video object editing application

doublemax wrote:Very nice.

Out of interest: How did you integrate ffmpeg? Did you use one of the available wrappers or do you "talk" to the dlls directly?
Thanks for your comment doublemax. We found easier to write our own wrapper to communicate with the FFMPEG dlls.
by bertolino
Wed Aug 14, 2013 8:32 am
Forum: Announcements and Discoveries
Topic: Sensarea: video object editing application
Replies: 7
Views: 3363

Sensarea: video object editing application

We are proud to annouce the first release of or wxWidgets based application named Sensarea: it is a software to make objet editing in videos: Select objects, track them, apply them effects and save the edited video. You can see a demo and downoad it (for Windows) at http://www.gipsa-lab.grenoble-inp...