Search found 86 matches

by xin.songtao
Mon Sep 01, 2008 5:22 am
Forum: C++ Development
Topic: Search for a solution to drag big picture
Replies: 8
Views: 1647

Search for a solution to drag big picture

Hi,everyone! I'm currently developing an application that likes the ACDSee, it can zoom the picture,and drag the zoomed image easily.(the image is large ,e.g. 8000x4000, or bigger than this.) while, First, I try to use the SetUserScale() to zoom the image,it works well when I zoom the image,also it ...
by xin.songtao
Sat Aug 30, 2008 5:15 am
Forum: wxWidgets Development (Chinese)
Topic: 如何用滚动窗口显示一张大的图片,可以对图
Replies: 5
Views: 3276

对于特别大的图片进行缩放还不是一件很简单的事,最好进行局部缩放
还有,调用SetUserScale可以达到缩放的目的,不用自己来进行Scale。
by xin.songtao
Fri Aug 22, 2008 11:21 am
Forum: wxCode
Topic: wxImage from JPEG memory array
Replies: 11
Views: 6382

thanks a lot! It works!
:D
by xin.songtao
Fri Aug 22, 2008 8:30 am
Forum: wxCode
Topic: wxImage from JPEG memory array
Replies: 11
Views: 6382

sorry,maybe I can make clear for you by the screenshot
by xin.songtao
Fri Aug 22, 2008 2:27 am
Forum: wxCode
Topic: wxImage from JPEG memory array
Replies: 11
Views: 6382

hi,friend! I met a question as yours.My code is below: wxInitAllImageHandlers(); wxString str = wxFileSelector(); //Select a jpeg image from the disk wxImage image(str); image.SetOption(wxIMAGE_OPTION_QUALITY,10); int w =image.GetWidth(); int h = image.GetHeight(); wxMemoryInputStream jpegStream(im...
by xin.songtao
Fri Aug 22, 2008 2:22 am
Forum: wxCode
Topic: wxImage from JPEG memory array
Replies: 11
Views: 6382

hi! Thanks for your reply very very quickly! :) While, I think I have not make clear to you,sorry. I want to decommpress a jpeg image by the API image.SetOption(wxIMAGE_OPTION_QUALITY,10); and then display the image which has decompressed on the screen. I think I have to use the wxInputStream to Cre...
by xin.songtao
Thu Aug 21, 2008 3:56 pm
Forum: wxCode
Topic: wxImage from JPEG memory array
Replies: 11
Views: 6382

hi,friend! I met a question as yours.My code is below: wxInitAllImageHandlers(); wxString str = wxFileSelector(); //Select a jpeg image from the disk wxImage image(str); image.SetOption(wxIMAGE_OPTION_QUALITY,10); int w =image.GetWidth(); int h = image.GetHeight(); wxMemoryInputStream jpegStream(ima...
by xin.songtao
Fri Jun 20, 2008 5:23 am
Forum: C++ Development
Topic: why the Focus always on the Frame?
Replies: 3
Views: 930

I have resolved this
First,I draw a image,then I draw a rectangle
and next I draw a bitmap in the rectangle,this looks like the rectangle is float on the image
by xin.songtao
Thu Jun 12, 2008 4:40 am
Forum: C++ Development
Topic: why the Focus always on the Frame?
Replies: 3
Views: 930

why the Focus always on the Frame?

Hi! wxUsers I Create a wxScrolledWindow and then create a frame with the flag "wxFRAME_FLOAT_ON_PARENT" , set the parent is the ScrolledWindow. In the MainFrame, i use them , the problem is that ,when I click the Scrolledwindow the focus is always on the Float frame, it is crazy! why the frame alway...
by xin.songtao
Tue May 27, 2008 8:07 am
Forum: C++ Development
Topic: May I modefiy my wxCAPTION ? maybe I will use a image
Replies: 2
Views: 698

I will create a window without a bar to deal it ,thanks Auria.
by xin.songtao
Fri May 16, 2008 8:30 am
Forum: C++ Development
Topic: May I modefiy my wxCAPTION ? maybe I will use a image
Replies: 2
Views: 698

May I modefiy my wxCAPTION ? maybe I will use a image

I want to create a frame which will display in my style ,
eg: Change the wxCAPTION to be a image ,the result like the follwing img,may i?
How to do it ?
thanks for anyone who can give me the big idea.
by xin.songtao
Fri May 09, 2008 5:46 am
Forum: C++ Development
Topic: wxScrolledWindow question about Scroll function
Replies: 1
Views: 653

I got it!!

I should set the "Client center line" to be the "baseline".
it will work!
by xin.songtao
Fri May 09, 2008 3:39 am
Forum: C++ Development
Topic: wxScrolledWindow question about Scroll function
Replies: 1
Views: 653

wxScrolledWindow question about Scroll function

I want to create my Ctrl to achieve the picture viewer like the "pictur viewer" on the windows xp. when i zoom out the picture, I can't Scroll the scroollbar to the postion previous. eg. I got the Scrollbar's postion with the function GetViewStart, when I zoom out the picture 2 times, i Scroll the w...
by xin.songtao
Wed Nov 07, 2007 3:34 pm
Forum: C++ Development
Topic: How do I get the absolute position of a ToolBarTool?
Replies: 0
Views: 466

Maybe there will be something can help youhttp://forums.wxwidgets.org/viewtopic.p ... highlight=
by xin.songtao
Fri Jul 20, 2007 7:09 am
Forum: C++ Development
Topic: my last question !
Replies: 1
Views: 496

my last question !

say goodbye to wxWidgets today!
however,I will come back some time.