Re: [Boa Constr] resizable bitmap
Status: Beta
Brought to you by:
riaan
From: Oleg D. <ru...@kh...> - 2004-04-28 15:06:38
|
Flavio Codeco Coelho wrote: > I want to display bitmap image on a panel. But I would like the bitmaps > to resize to the size of the frame. The only class for bitmaps I found > for displaying bitmaps in Boa was wxStaticBitmap, which doesn't offer a > way to resize it. You can use Scale method of wxImage instead. > Does anyone have a suggestion of a way to include resizable bitmaps in > a Boa app? I do it as such: image = wxImageFromStream( ... ) x, y = staticBitmapControl.GetSizeTuple() staticBitmapControl.SetBitmap(wxBitmapFromImage( image.Scale(x, y) ) ) -- Oleg Deribas, http://copi.ru/14000/ |