Search found 25 matches

by guyanqiu
Wed Aug 31, 2011 5:40 am
Forum: wxWidgets Development (Chinese)
Topic: wxDC上DrawBitmap,怎么保持刷新而不闪烁
Replies: 8
Views: 9400

Re: wxDC上DrawBitmap,怎么保持刷新而不闪烁

我测试了一下,也不可以,擦除背景函数如果为空,界面会显示一些界面窗口后面的窗口里的内容,而且照片在窗口拖到屏幕边缘时,也还是会被擦掉。
by guyanqiu
Wed Aug 31, 2011 12:26 am
Forum: wxWidgets Development (Chinese)
Topic: wxDC上DrawBitmap,怎么保持刷新而不闪烁
Replies: 8
Views: 9400

Re: wxDC上DrawBitmap,怎么保持刷新而不闪烁

我试了,还是不会重绘。窗口拖到屏幕边缘时,照片还是会被擦掉。
by guyanqiu
Tue Aug 30, 2011 4:00 am
Forum: wxDev-C++
Topic: How to update WxWidgets in WxDev-C++?
Replies: 7
Views: 8204

Re: How to update WxWidgets in WxDev-C++?

I complied the wxWidgets2.9.2,and install it to wxDev-C++
I wrote a how to ,but in Chinese,the link is
http://wenku.baidu.com/view/758d56c62cc ... 6bded.html
My English is poor,but hope that can help you.
by guyanqiu
Tue Aug 30, 2011 1:32 am
Forum: wxDev-C++
Topic: How to update WxWidgets in WxDev-C++?
Replies: 7
Views: 8204

Re: How to update WxWidgets in WxDev-C++?

Why do not use the Code::Blocks?It is easy to do so.
I will try wxWidgets2.9.2 in wxDev-C++.
If I am success,I will tell you how to .
by guyanqiu
Mon Aug 29, 2011 9:10 am
Forum: wxDev-C++
Topic: How to update WxWidgets in WxDev-C++?
Replies: 7
Views: 8204

Re: How to update WxWidgets in WxDev-C++?

1) Download the src; http://www.wxwidgets.org/downloads/#latest_dev 2) Comply the src; See the readme file when download the src file 3) Create the DevPackage; Creating a DevPak for wxDev-C++ http://wxdsgn.sourceforge.net/?q=node/9 4) Install the DevPak . I do that OK for wxWidgets2.8.12. Only Insta...
by guyanqiu
Mon Aug 29, 2011 8:55 am
Forum: wxWidgets Development (Chinese)
Topic: =自我介绍=(新人可来这里对自己作自我介绍)
Replies: 150
Views: 379810

Re: =自我介绍=(新人可来这里对自己作自我介绍)

注册好久了,但是不经常来。
学习wxWidgets纯粹业余爱好。
工作是做纯硬件的,分立元件的电路开发,那些电感,电容,电阻,二极管,三极管之类,完全不需要编程…… :oops:
希望能在这里获得帮助,
对你也许很简单,对我可能会很难,谢谢!
by guyanqiu
Fri Aug 26, 2011 9:04 am
Forum: wxWidgets Development (Chinese)
Topic: wxDC上DrawBitmap,怎么保持刷新而不闪烁
Replies: 8
Views: 9400

wxDC上DrawBitmap,怎么保持刷新而不闪烁

类似通讯录,就是一个姓名,对应一个照片。 因为照片有大有小,所以我用wxPanel来显示图片: /* *显示用户照片 */ void TestFrm::DrawImageToWindow(wxImage* image,wxWindow* window) { wxClientDC dc(window); dc.SetBackground(*wxWHITE_BRUSH); dc.Clear(); wxCoord wdwidth,wdheight; dc.GetSize(&wdwidth,&wdheight); int oldwidth = image->GetWidth(); in...
by guyanqiu
Tue Aug 03, 2010 9:12 am
Forum: C++ Development
Topic: Simple program
Replies: 19
Views: 4598

when I search for OpenCV on Ubuntu,I find this: "I presume you compiled the library source on your linux platform. The problem is that when you configured using ./configure, the development lib for gtk2.0 wasn't detected(if it actually existed in your system). so when you ran the make command, ...
by guyanqiu
Tue Aug 03, 2010 6:26 am
Forum: C++ Development
Topic: Simple program
Replies: 19
Views: 4598

You an use the wxThread or wxTimer in the program, use the OpenCV in the thread or with the wxTimerEvent. Oh , my English is very poor . You can download the Example I made. I play a AVI or WebCam in a wxPanel with two wxButtons. The link: http://forums.wxwidgets.org/viewtopic.php?t=27708 I hope you...
by guyanqiu
Tue Aug 03, 2010 5:59 am
Forum: wxWidgets Development (Chinese)
Topic: 如何將OPENCV的程式整合到介面裡面?
Replies: 3
Views: 3771

这个是一个wxWidgets和OpenCV的例子,一个wxPanel

这个是一个在wxWidgets和OpenCV联合的例子,相当简单,一个显示面板Panel,;两个按钮Play和Stop。不过有一点小问题,就是如果从视频文件获取画面的话,关闭程序的时候会报错。如果使用摄像头获取画面的话,就没问题了。
我试验了,使用其他程序,在关闭AVI视频(samples中的tree.avi)的时候也是报错,可能是我哪里处理的不好。如果有人能解决以下,就好了。
附件是两种显示的方法,一种使用wxTimer,一种使用wxThread.