Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

在Nokia N93上使用nullpen时,SetAlpha方法将无效

From Wiki
Jump to: navigation, search
Article Metadata

测试基于
设备:: Nokia N93

兼容于
平台: S60 3rd Edition
S60 3rd Edition (initial release)

文章
翻译:
hoolee
最后由 hamishwillee 在 09 Aug 2012 编辑
  • 详细描述

如果设置penstyle为ENullPen,则SetAlpha方法将不起任何作用。


SetAlpha是用来设置透明度的。但是当在N93上设置SetPenStyle为ENullPen时,颜色的透明度将不会有任何变化。


  • 如何重演

下列代码片段演示了这一问题:

 TRgb col2 = KRgbYellow;
col2.SetAlpha(75);
gc.SetBrushColor(col2);
gc.SetPenStyle(CGraphicsContext::ENullPen);
gc.SetBrushStyle(CGraphicsContext::ESolidBrush);
gc.DrawRect(rect);


  • 解决方案

暂无解决方案

This page was last modified on 9 August 2012, at 06:42.
111 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×