Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: NameZero912 on April 30, 2011, 10:36:23 am

Title: wxSmith: use wxImage
Post by: NameZero912 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!
Title: Re: wxSmith: use wxImage
Post by: Jenna 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).