Author Topic: wxSmith: use wxImage  (Read 3994 times)

Offline NameZero912

  • Single posting newcomer
  • *
  • Posts: 7
wxSmith: use wxImage
« on: April 30, 2011, 10:36:23 am »
Hi.

I am new to wxWidgets development (using C++). I'd like to develop an application where I load an image file, display it, and then do operations on it (using other libraries) and display the output again. From what I understand, using wxImage is a good way to display those images. But I don't seem to be able to find this element in the wxSmith palettes (or am I just blind?). In the board here I read that apparently there is a wxSmithImage plugin, but I can't seem to find a way to get it from anywhere... Could you help me out please?

Cheers!

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: wxSmith: use wxImage
« Reply #1 on: April 30, 2011, 04:18:27 pm »
If you read the wxWidgets docu, you would see, that you can not directly display an image with wxImage.
You can use wxBitmap to draw it in a wxDC or use wxStaticBitmap to display it (for example).