【GUIライブラリ】wxWindowsでのひょーん at TECH
[2ch|▼Menu]
683:思兼 ◆l3iwkTImVo
04/02/10 16:14
>>682
wxBitmapの中のソースは見てないけど,リファレンスには

"under Windows, the data is passed without any changes
to the underlying CreateBitmap() API."

って書いてある.んで,MSDNのCreateBitmap()には,

"The CreateBitmap function can be used to create color bitmaps.
However, for performance reasons applications should use CreateBitmap
to create monochrome bitmaps and CreateCompatibleBitmap to create
color bitmaps. "

って書いてある.Windowsでは,推奨はされていないものの,ちゃんと動く.でもWindows
以外では動かないから,プラットフォーム非依存を目指すならwxImageを使う,もしくは
一旦ファイルに書き出してからwxBitmapで読み込むという手順を取る.


次ページ
続きを表示
1を表示
最新レス表示
スレッドの検索
類似スレ一覧
話題のニュース
おまかせリスト
▼オプションを表示
暇つぶし2ch

5132日前に更新/338 KB
担当:undef