Namespaces
Variants
Actions

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

Jump to: navigation, search
文章信息

测试基于
设备:: Nokia N93

兼容于
平台: S60 3rd Edition

文章
翻译:
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 09:42.
95 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved