wxBitmap中不推荐使用的方法?

问题描述 投票:0回答:1

使用wxWidgets 3.1时,我通过wxBitmap收到以下弃用警告:

'wxGDIImage::SetWidth': was declared deprecated
'wxGDIImage::SetHeight': was declared deprecated

由于我无法在源代码中的相关位置找到合适的提示:这是什么替代品?现在应该如何设置位图的宽度和高度?

谢谢!

c++ wxwidgets
1个回答
0
投票
dimensions and depth can only be set at construction timecommit。使用这些功能的AFAIU从未更改位图结构,因此使用它们只会产生误导。

[如果您想走得更远,甚至不希望使用不推荐使用的功能,则可以将WXWIN_COMPATIBILITY_3_0设置为0来构建您的库和应用程序。

© www.soinside.com 2019 - 2024. All rights reserved.