[wxruby-users] wxRuby error: Image file is not of type 9

Omar Hernandez lists at ruby-forum.com
Tue Nov 11 19:35:38 EST 2008


> Try adding the type argument to tell wxRuby what type of image file
> you're loading from
> 
> Wx::Bitmap.new("/path/to/icon.ico", Wx::BITMAP_TYPE_ICO)
> 
> See the Wx::Bitmap documentation for a list of supported types. For
> cross-platform use, I'd recommend using PNG over ICO or BMP
> 
> hth
> alex

Thanks, it's working fine.
-- 
Posted via http://www.ruby-forum.com/.


More information about the wxruby-users mailing list